> ## Documentation Index
> Fetch the complete documentation index at: https://808-labs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication and API keys

> Keep machine keys, customer login and shopper sessions separate.

Credentials
Server keys authorize integrations. Human logins and restricted shopper sessions have separate roles.

> [!NOTE]
>
> Server keys are secrets. Use only restricted shopper credentials in browser/mobile clients; human dashboard tokens and staff identities are separate.

## Server integrations

Send your scoped API key as `Authorization: Bearer <key>`. Create, rotate and revoke keys from the platform dashboard with an authorized workspace role. New dashboard-issued keys support later copying by an authorized member after recent sign-in verification; every retrieval is audited. Historical hash-only keys must be rotated first. Revoked, expired and replaced keys cannot be copied. Store keys in your server secret manager, never browser bundles, mobile apps, analytics or logs.

### Choose least-privilege scopes

| Work | Scope |
| - | - |
| Merchant directory and catalog | `catalog:read` |
| Merchant enrollment changes | `merchants:manage` |
| Cart mutations | `cart:write` |
| Quote and submission | `checkout:write` |
| Issue a full-checkout cart session | Both `cart:write` and `checkout:write` |
| Purchase inspection | `orders:read` |
| Refund/order actions | `orders:write` |
| Event feed | `events:read` |
| Webhook inspection | `webhooks:read` or `webhooks:manage` |
| Webhook configuration and replay | `webhooks:manage` |
| Scoped finance reads | `finance:read` |

A key scope does not enable a missing plan feature or grant access to another company's merchants. Check the API reference for each operation's current requirements.

### Test a key in the Sandbox dashboard

Sandbox testing offers **Dashboard session** (the default) and **Sandbox API key** authentication.
A dashboard-session test checks your signed-in role; it does not establish that an integration key
works. With the matching dashboard build, choose API key mode and an active key for the selected
Sandbox app. The screen shows its label and masked prefix. Key selection and retrieval require
current workspace authority and recent sign-in verification. Older hash-only keys must be rotated.

In key mode, identity, catalog, cart, quote, submission, payment-handoff and purchase-status calls
use that actual key on the same public endpoints. The server retrieves it through the audited key
lifecycle; its secret is never returned to the test screen or kept in browser storage. A complete
checkout test needs `catalog:read`, `cart:write`, `checkout:write` and `orders:read`. Revocation,
expiry or missing permissions stop the request; the dashboard does not substitute its user token.

Review **API activity** for the authentication mode, method, endpoint, response status, request ID
and cart/quote/purchase/order references. Activity omits credentials, shopper details and payment
payloads. An accepted submission is separate from confirmed payment and placed merchant orders.
The full dashboard order page remains a separate session-authenticated view, not proof of a key's
finance or order-servicing permissions.

Start a fresh test before changing credentials. In-flight or uncertain writes keep the original
credential context locked; reconcile the original cart or purchase instead of submitting a
replacement. Completed test references remain visible in the current workspace/app session.
This mode is restricted to Sandbox and does not grant Live access.

## Dashboard login and shopper sessions

Human dashboard access uses the configured customer login and workspace membership, with recent verification where required. Customer tokens are distinct from server keys and staff identities.

In a Sandbox configured for email-code login, Platform and Merchant users verify by email for
regular sign-in and any action that needs recent verification. If the verification window ends,
sign in again with a fresh email code. Role, membership and environment checks still apply.

The prepared dashboard policy defaults to a configurable 24-hour login window for tenants
and merchants. Short-lived API tokens are renewed through a brief identity-provider SSO redirect
without repeating password/OTP while the approved session remains valid. This requires matching
provider configuration and reviewed rollout; source changes alone do not enable it on a hosted
dashboard. The original maximum is retained. Expired writes are not automatically retried. Logout,
revoked membership and session expiry end browser access; sensitive actions retain recent sign-in requirements.

A short-lived cart token uses `X-Ignite-Cart-Token` and is bound to its cart and allowed origin. It cannot manage keys, merchant access or commercial policy. Use only the credential alternatives documented for the endpoint.

`POST /v1/carts/{cart_id}/session-tokens` requires both `cart:write` and `checkout:write` on the issuer.
A cart-only key cannot delegate checkout authority; insufficient scope returns `403` without issuing
a session. Cart tokens cannot mint more tokens and must satisfy each route's required scopes.
Existing sessions retain their original expiry; deploying this fix does not revoke them automatically.

## Rotate without interrupting your integration

Store the replacement securely, update your server integration and verify it before retiring the old key according to your configured rotation flow. Revoked or expired credentials cannot authorize new requests. Never send a key in a URL or share it in support messages.

## Related guides

> [card] [Apps and environments](https://808-labs.mintlify.site/apps-and-environments.md)
>
> Separate integration identities and Sandbox/Live credentials.

> [card] [Verify a request](https://808-labs.mintlify.site/quickstart.md)
>
> Make your first authenticated Sandbox call.


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