Authentication
Every request must carry anAuthorization: Bearer <token> header.
Key format
New keys use the formatck_live_<prefix>_<secret>.
Keys issued earlier in the format
cope_sk_live_<key_id>_<secret> keep working unchanged. You do not need to replace them.
Live keys produce real side effects. Test-mode keys are reserved for the future public sandbox and are not accepted yet.
Clerk tokens
When using a Clerk bearer token, include the business ID explicitly:X-Cope-Business-Id return 401 business_required.
Getting a key
- Sign in to the COPE vendor dashboard.
- Open Settings → API Keys.
- Click Create API key, give the key a name, and copy the secret token that appears.
- The secret is shown only once — store it securely. It cannot be retrieved later.
Rotation and revocation
- Issue a new integration, switch the client to the new key, then deactivate the previous one from the same dashboard view.
- Deactivated and deleted keys stop authenticating within 60 seconds.
- Keys are scoped to one business. Use separate integrations for separate businesses rather than sharing a key across them.
- Clerk tokens are scoped by the
X-Cope-Business-Idheader after ownership validation.