Authenticate Account API Requests
Quick answer
Send an API key from API & MCP in the X-API-KEY header on every request. All Account API paths start with https://traffic-creator.com/api/v1/account .
Steps#
- Create a key under API & MCP → Create a key (see Create, use and revoke API keys).
- Store it as an environment variable, for example
TRAFFIC_CREATOR_API_KEY. - Test it with a balance request:
curl https://traffic-creator.com/api/v1/account/balance \
-H "X-API-KEY: $TRAFFIC_CREATOR_API_KEY"
A working key returns your credits per wallet. Then build the rest of your integration.
Read-Only and Full-Access Keys#
A read-only key can call every GET route and the cost preview. Creating, changing, pausing or resuming a campaign, or opening, answering or closing a support ticket, returns 403. Use a full-access key for those.
Server-Side Only#
Call the API from your server or script, never from browser code: anything in a web page is visible to its visitors, and a full-access key can spend your credits.
IP Restriction#
If our team has limited your account to approved server IP addresses, API & MCP shows them under Server access. Requests from any other address return 403. Contact support to add your server's public outbound IP address.
Troubleshooting#
| Problem | What to check |
|---|---|
| 401 | The X-API-KEY header is missing or misspelled, the key was revoked, or it is an older read-only key (those only work on the Reporting API). Changing or resetting your password, or signing out everywhere, revokes all keys. |
| 403 | The key is read only for this action, the account's API access is switched off, the server's IP address is not approved, or, when creating or resuming, your e-mail address isn't verified yet. |
| 429 | Too many requests. Wait for the time in the Retry-After header. |
Was this article helpful?
Still need help?
Open a ticket from your dashboard. Include your project ID and a screenshot for the fastest help.