Authentication
API keys, where to create them, and what they can do.
Send your API key on every request:
Authorization: Bearer pk_company_…X-Api-Key: pk_company_… works too. A request without a valid key gets 401.
Create a key
Sign in to TrackCrest, then:
| Account | Where |
|---|---|
| Network | Integrations → API Keys |
| Affiliate | Affiliate portal → Settings → API Keys |
| Advertiser | Advertiser portal → API Keys, or the network creates one on the advertiser's page |
The full key is shown once, when it's created. Store it somewhere safe, like a secrets manager, and never put it in a web page or mobile app.
Scopes
Each key has scopes in the form resource:read or resource:write. A call that needs a scope the key lacks gets 403 with code scope_missing.
| Scope | Network | Affiliate | Advertiser |
|---|---|---|---|
offers:read | ✓ | ✓ | ✓ |
offers:write | ✓ | ✓ (apply only) | |
affiliates:read / affiliates:write | ✓ | ||
advertisers:read / advertisers:write | ✓ | ||
reports:read | ✓ | ✓ | ✓ |
clicks:read | ✓ | ✓ | |
conversions:read | ✓ | ✓ | ✓ |
conversions:write | ✓ | ✓ | |
payouts:read | ✓ | ✓ | ✓ |
invoices:read | ✓ | ✓ | ✓ |
invoices:write | ✓ | ||
postbacks:read / postbacks:write | ✓ | ✓ | ✓ |
webhooks:write | ✓ | ✓ | ✓ |
A network key can't do more than the employee who created it. You can only give it scopes your role allows in the app.
Revoking
Revoke a key from the same page where you created it. It stops working immediately.