Scopes
What each scope lets a key read or change.
A scope says what a key may do with one kind of record. It is written resource:read or resource:write, for example buyers:read. A write scope includes read of the same resource.
A key without the scope a route needs gets scope_missing, and errors.scope names the scope. Every reference page lists the scope its route needs.
The scopes of the Buyer API
Scopes marked "in use" are needed by a route that exists today. The others are for routes in later releases; a key can hold them already.
| Resource | Read | Write |
|---|---|---|
| Profile | profile:read (in use) | None |
| Campaigns | campaigns:read (in use) | None |
| Bids and budgets | bids:read (in use) | bids:write |
| Leads | leads:read (in use) | leads:write |
| Calls | calls:read (in use) | calls:write |
| Returns and disputes | returns:read (in use) | returns:write |
| Balance and invoices | billing:read (in use) | None |
| Destinations | destinations:read (in use) | destinations:write |
| Orders | orders:read (in use) | orders:write |
| Webhooks | webhooks:read (in use) | webhooks:write |
Presets
When you make a key on the Developers page you pick a preset or tick scopes one by one.
- Read only. Every
readscope. - Full access. Every scope except the high-risk ones.
- Custom. Only the scopes you tick.
High-risk scopes move money, buy numbers or issue keys. They are never part of a preset, each must be ticked on its own, and a key that holds one must have an IP allow-list.
Give each system only what it needs
A dashboard needs reports:read. A system that copies your calls needs calls:read. Neither needs write. Narrow keys limit what a leaked key can do.