I’ve been stuck on this for a while and starting to wonder if I’m missing something really small. I’m integrating Maya Checkout in sandbox, and I keep getting “invalid API key” / authentication failed responses.
It seems you may be referring to the endpoint /checkout/v1/checkouts, which is the correct path for creating a checkout in Maya Checkout. Your current endpoint /checkout is invalid and causes authentication to fail even with correct keys, as documented in the API reference.
You are using the Public Key (pk-...) for this endpoint (correct in your code).
The redirectUrl object is included — it is required.
You are not using a Secret Key for this endpoint.
The “invalid API key” error is misleading — it occurs because the endpoint doesn’t exist, triggering a generic auth validation failure (error code K004). Once the endpoint is corrected, authentication should work as expected.
For Sandbox concerns and other technical implementation inquiries, please get in touch with us via:
Sandbox Health Page: Check real-time service status updates.
Maya Developer Hub Service Desk: File
a ticket in Sandbox.
To Know More:
We value your input and would love to hear your insights. Please submit you feedback here.