Authentication
Every request must carry anAuthorization: Bearer <token> header.
Key format
Live keys produce real side effects. Test-mode keys are reserved for the future public sandbox and currently return
401 invalid_token.
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 keys return
401 invalid_tokenon the next request. - 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.