Base URL
https://api.staging.toktra.io/v1 for testing integrations before you go live.
Authentication
The API uses OAuth 2.0 Bearer tokens obtained via theclient_credentials grant. Pass your token in the Authorization header on every request:
Rate limiting
The API enforces a limit of 1,000 requests per minute per API key. Every response includes rate limit headers so you can track your consumption:
When you exceed the limit, the API returns a
429 Too Many Requests response along with a Retry-After header indicating how many seconds to wait before retrying.
Pagination
List endpoints use cursor-based pagination. This approach is stable and efficient for large datasets — pages don’t shift when records are added or removed. Passcursor and limit as query parameters:
Every paginated response includes:
next_cursor is null, you have reached the last page. See Pagination for a full walkthrough.
Response format
All responses are JSON withContent-Type: application/json. Successful responses return the resource directly or a paginated wrapper object.
Errors
The API returns standard HTTP status codes. Error bodies follow this schema:Versioning
The current stable version is/v1, which is generally available (GA). Breaking changes will only be introduced in a new major version (/v2, etc.). Additive changes — new fields and new optional parameters — may be made to /v1 at any time without notice.
Pin your integrations to
/v1 explicitly. The unversioned base URL https://api.toktra.io is not supported.