Authentication
Keep your key on your server.
Bearer authentication
Request headers
Authorization: Bearer ek_test_YOUR_KEY
Content-Type: application/jsonTest and live
| Field | Type | Required | Description |
|---|---|---|---|
ek_test_ | string | — | Isolated test environment; no real money. |
ek_live_ | string | — | Live environment; keep the key on your server. |
Your key selects the workspace and environment. Do not add a workspace ID or environment to these endpoints.
Keep keys safe
- Copy the full key when it is shown once.
- Store it in server environment variables, never browser code or Git.
- Rotate or revoke exposed keys in your workspace.