If you use one of the Chift SDKs, token acquisition and refresh are handled for you — you only configure the three credentials below. The rest of this page is for direct HTTP integrations.
1. What you need
An API key gives you three values, used together on every token request:
Create and manage keys from the API Keys page — see Create and manage API keys for key creation, rotation, and restricting a key to specific consumers.
2. Base URL and environments
All requests go to the same base URL:401.
Build against Sandbox first, then create a separate key in Production when going live. Sub-environments under Sandbox and Production are available on request — see Multiple environments.
3. Get a token
POST /token is the only Chift endpoint that does not require authentication.
expires_in— token lifetime in seconds.expires_on— expiry as a Unix timestamp in seconds.
4. Token lifetime and refresh
A token is valid for 30 minutes. There is no refresh token — you request a new one fromPOST /token.
Cache the token in your application and reuse it until it expires. Do not call POST /token before every API request.
A workable strategy:
- Store the token together with its
expires_on. - Reuse it while
now < expires_on, ideally with a small safety margin (e.g. 60 seconds) to absorb clock skew and in-flight requests. - Request a new token when it is about to expire, or when a call returns
401.
The Chift SDKs already implement this: you configure
clientId, clientSecret, and accountId once, and the SDK fetches, caches, and renews the token internally. Don’t build it twice.5. Call the API
Send the token in theAuthorization header of every other request:
Bearer (JWT). Requests without a valid token are rejected.
You can also try endpoints without writing code using the API Explorer in the platform.
6. Troubleshooting
Full list of codes: Error codes.
Chift does not rate-limit your calls, so token renewal will not be throttled — see Rate limits.
7. Security
- Store credentials in a secret manager or environment variables, never in source control.
- Rotate keys regularly; see Create and manage API keys.
- Restrict a key to a single consumer when an integration only needs that consumer’s data.
Next steps
Connect a consumer
Create a consumer and link it to a connector.
SDKs and tools
Python and Node.js SDKs, and the OpenAPI file for Postman.
API Explorer
Try endpoints from the platform, no code required.
Error codes
Full reference of Chift error codes.