Skip to main content

API Key

All requests require the X-API-Key header.
1

Get your key

Go to studio.onlytraffic.com/api and create an API key.
2

Add the header

Include the key in every request:
X-API-Key: your-api-key-here

Base URL

https://studio-api.onlytraffic.com/api/external/v1

Example Request

curl https://studio-api.onlytraffic.com/api/external/v1/subscribers \
  -H "X-API-Key: your-api-key-here"

Rate Limits

1,000 requests per hour per account. Exceeding the limit returns 429 with a Retry-After header.

Errors

ErrorMessage
missing_api_keyX-API-Key header is required
invalid_api_keyInvalid API key
api_key_inactiveAPI key is inactive
api_key_revokedAPI key has been revoked
api_key_expiredAPI key has expired
account_not_foundAccount not found for this API key
ErrorMessage
access_deniedAccess denied to this account
ErrorMessage
rate_limit_exceededToo many requests