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 Account 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 |
|---|---|---|
| Account | account:read (in use) | None |
| Campaigns | campaigns:read (in use) | campaigns:write |
| Buyers | buyers:read (in use) | buyers:write |
| Publishers | publishers:read (in use) | publishers:write |
| Numbers | numbers:read (in use) | numbers:write |
| Buying numbers | numbers-purchase:read (in use) | numbers-purchase:write (high risk) |
| Calls | calls:read (in use) | calls:write |
| Leads | leads:read (in use) | leads:write |
| Reports | reports:read (in use) | None |
| Statements and payouts | money:read (in use) | money:write (high risk) |
| Suppression | suppression:read (in use) | suppression:write |
| Webhooks | webhooks:read (in use) | webhooks:write |
| Events | events:read (in use) | None |
| Audit log | audit:read (in use) | None |
| Routing | routing:read (in use) | routing:write |
| Lead delivery | delivery:read | delivery:write |
| Partner keys | partner-keys:read (in use) | partner-keys:write (high risk) |
| Lead orders and wallets | orders:read (in use) | orders: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.