> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gochameleon.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication and environments

> Use organization API keys from your backend.

Send your secret key in the standard Authorization header:

```http theme={null}
Authorization: Bearer gck_test_REPLACE_ME
```

The key determines the organization. Payment creation and retrieval do not require an `X-Organization` header or a dashboard login token.

| Environment | API origin | Key prefix | Dashboard |
| - | - | - | - |
| Sandbox | `https://sandbox-api.gochameleon.xyz` | `gck_test_` | [Sandbox](https://sandbox.gochameleon.xyz) |
| Production | `https://api.gochameleon.xyz` | `gck_live_` | [Production](https://beta.gochameleon.xyz) |

The deployments use separate accounts and data. A sandbox key cannot authenticate against production. Sandbox creation responses have `livemode: false`.

## API playground

Choose a server in the API reference and paste your key into the bearer-token input without adding a second `Bearer` prefix. Start with sandbox. Playground requests are actual API requests, not mocked examples.

## Protect and rotate keys

Store keys in server environment variables or a secret manager. Never put them in frontend code, mobile app bundles, checkout URLs, screenshots, or source control. Owners and admins manage credentials through the dashboard; merchant API keys are not dashboard administration credentials.

When rotating a key, update your server and revoke the old key. Idempotency keys are scoped to the organization, so an identical retry can still resolve to the original payment after API-key rotation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.