API key
All requests require theAuthorization header.
1
Get your key
Open the partner cabinet and go to Tools -> API (partners.onlytraffic.com/tools/api). The page lists your keys: up to 5 active keys per account, each with a name.Click Create key and choose a name, an access level (Full or Read-only) and an expiry (30, 90, 180 or 365 days, or never). The key is shown once, right after creation: copy it immediately. Later the page shows only its prefix (
ot_partners_ab12…), access level, expiry and last use.Keys look like ot_partners_ followed by 40 hex characters. You can revoke a key at any time: integrations using it stop working immediately, and revoking frees one of the 5 slots.If your account still has an older single key (format XXXXX-XXXXX-XXXXX-XXXXX), it is listed on the same page as Legacy key. It keeps working with full access until you delete it there.2
Add the header
Include the key in every request:The
Bearer form is accepted too:AI assistants
Keys are also what AI assistants use. When you connect Claude or ChatGPT to your account, you pick one of these keys (or create a new one) on the consent page, without pasting it anywhere. The assistant gets exactly that key’s access level, and revoking the key disconnects it. See AI assistants.Access levels
Expired or revoked keys are rejected like unknown keys:
error_code 403, message Error! Access denied.
Rate limits are per account, not per key: all keys of an account share the same 120 reads / 30 writes per minute.
Base URL
Example request
Rate limits
Limits apply per account and are shared by all its keys: 120 requests per minute for read endpoints and 30 per minute for write endpoints. When you hit a limit the response carrieserror_code 429 and a Retry-After header with the number of seconds to wait.
Errors
All responses return HTTP200. Check the status field for the actual result.
403 — Access denied
403 — Access denied
404 — Not found
404 — Not found
422 — Invalid parameters
422 — Invalid parameters
429 — Rate limit
429 — Rate limit
500 — Server error
500 — Server error