Skip to main content
The Clients API uses OAuth-style client credentials. You exchange a client_id and client_secret for a short-lived token and send that token as a Bearer token in the Authorization header.

Get a token

The token is a signed JWT. Its lifetime is fixed when it is issued, so request a new token shortly before expires_in elapses. Clock differences of up to 30 seconds are tolerated.
Do not request a token on every API call. Token requests are limited to 60 per minute per client_id and the token is valid for up to 24 hours. Cache it.

Use the token

Send it on every other request:
The header name is case-insensitive. The scheme must be Bearer.

Store access

An API account is linked to one or more stores. Endpoints that take a store_id only answer for stores the account can access; asking for another store returns 401, the same as a bad token. If you integrate several stores, use the same token and change store_id.

Unauthorized responses

All authentication failures return HTTP 401 with this body:
Credentials belong to a company, not to a person. If a secret leaks, regenerate the credentials in the Cubbo app: open Integrations and click Regenerate Credentials on your Open API integration. The current credentials stop working immediately, so update your system right away.