Scopes
A scope is a single permission — one thing you are allowed to do, written as
resource:action (for example, sms:send). It controls what you can do, not
how you connect: the same scope allows the same thing whether you use REST or
MCP.
Ask for only the scopes you need — listed with spaces between them in an OAuth authorize request, or ticked for each key in the admin center.
| Scope | Grants | Spends money |
|---|---|---|
sms:read | Texting settings — which numbers can text, blocked senders, saved replies, schedules. Not the actual text of any message (reading those needs messages:read). | No |
sms:write | Resolve and assign conversations, cancel scheduled texts, and manage blocked senders, templates and drafts. Cannot send messages. Deleting templates and drafts needs "Delete templates and drafts" (sms:delete). | No |
sms:delete | Delete templates and drafts — delete the account's saved SMS templates and drafts. | No |
sms:send | Send SMS from the account's numbers, and schedule one to go out later | Yes |
messages:read | Read message content — the inbox, a thread's text and media, delivery receipts, unread counts | No |
messages:write | Mark messages read or unread. Deleting needs "Delete messages" (messages:delete). | No |
messages:delete | Delete messages — permanently delete SMS and MMS messages or whole conversations. This cannot be undone. | No |
users:read | The account's users — names, emails, extensions. Personal data. | No |
profile:read | Read your profile and phone line logins — read your own profile and your own phone lines, including each line's SIP username and password, so an app can register as your phone. Only your own lines, never other users'. | No |
recordings:read | Call recordings and transcripts — the contents of conversations | No |
recordings:delete | Delete call recordings — permanently delete the account's call recordings. Only works when the key's user is the account owner. This cannot be undone. | No |
webhooks:read | List and view webhook subscriptions | No |
webhooks:write | Create, edit, enable and disable webhook subscriptions. Deleting needs "Delete webhooks" (webhooks:delete). | No |
webhooks:delete | Delete webhooks — delete the account's webhook subscriptions. | No |
reports:read | Call history — who called whom, when, how long, how it ended — and agents' queue and hunt group sign-in and pause history | No |
fax:read | Sent and received faxes — the list, each fax's delivery status, and the fax documents themselves | No |
fax:send | Send faxes from the account's fax numbers | Yes |
calls:make | Place click-to-call calls — ring a phone, then connect it to a number | Yes |
flows:call | Place an outbound call into one of the account's Flows — the flow call trigger, outside the REST API. API keys only. | Yes |
The live list is scopes_supported in the
discovery document. It lists only scopes OAuth can grant,
so flows:call (key-only, below) is not in it.
Why texting is six scopes
Because they are six different decisions:
- An app that just lists your numbers (
sms:read) should not also be able to spend money. - A help-desk tool that only closes conversations (
sms:write) should not be able to text customers. - A send-only tool (
sms:send) should not be able to list out all of the account's numbers. - Reading message content needs its own permission.
messages:readis kept separate fromsms:readfor the same reasonrecordings:readis separate from everything else: a conversation thread is the actual content of people's messages, not just settings about them. If reading messages were bundled intosms:read, every token ever handed out just to list numbers would suddenly also be able to read the account's entire message history. - Deleting is kept apart from everyday changes. Everything under
sms:writeandmessages:writecan be undone — a conversation can be reopened, an assignment changed, a message marked unread again. A delete cannot, so it needs its own scope:messages:deletefor messages and conversations,sms:deletefor templates and drafts.
Only ask for a scope if your app actually does that thing.
Every delete has its own scope
Any endpoint that destroys something needs a :delete scope, separate from
the resource's :write scope. An app that may edit something cannot also erase
it unless it was given delete on purpose.
| To delete | Scope | Not enough on its own |
|---|---|---|
| A message or a whole conversation | messages:delete | messages:write |
| A saved SMS template or a draft | sms:delete | sms:write |
| A webhook subscription | webhooks:delete | webhooks:write |
| A call recording | recordings:delete | recordings:read |
Two endpoints use DELETE but stay on sms:write, because they undo
something rather than destroy it: cancelling a scheduled text and
unblocking a sender. Nothing is lost either way.
Keys and app approvals made before the delete scopes existed do not have them. To delete with one, edit the key (or have the user re-approve the app) and add the delete scope.
recordings:delete only works when the user behind the credential — a key's
run-as user, or the person who approved an OAuth app — is on the Account
Owner role. Anyone else gets 403 permission_denied. The recording must also
be one the credential can read: a key's phone number limits apply, and accounts
with sensitive-content re-verification on cannot reach recordings over the API
at all. See Call recordings.
Why faxing is two scopes
For the same reasons, split the same way. fax:read is the contents of
communications — a fax document is as sensitive as a message thread or a
recording — and is its own consent. fax:send spends money and reaches someone
outside the account, so an archiving integration that only reads fax history
must not be able to send one. See Faxes.
Why placing a call is its own scope
calls:make spends money and reaches someone outside the account, like
sms:send and fax:send. An integration that reads call history
(reports:read) must not also be able to dial. A key with calls:make must
also list the phones it may ring, or it cannot place calls at all. See
Click to call.
messages:delete lets you call the message delete endpoints, but it is not the only
check. If the account has restrict deleting SMS turned on, those calls still
fail with 403 — that setting lets an account owner stop their own staff and
integrations from destroying message history, and no scope can override it.
Why phone line logins are their own scope
A line's SIP password is a long-lived phone login: whoever has it can make
calls on the account from anywhere. So profile:read is its own checkbox, off by
default, and is never folded into users:read — the staff directory never
carries passwords.
It only ever returns the caller's own lines: the lines owned by a key's
run-as user, or by the person who approved an OAuth app. A credential not tied
to a user gets 403 permission_denied. Every read is recorded. See
Build your own web phone.
A scope is a ceiling, not a key
Having a scope does not automatically give you everything it covers.
For an OAuth token, the permissions of the person who approved your app still apply on top. A scope can only shrink what that person was already allowed to do in the portal — it can never give them more.
| Endpoint | Scope | …and the authorizing user's portal permission |
|---|---|---|
GET /users | users:read | Users — you see the users they can see, no more |
GET /me | profile:read | None — but only their own profile and lines, whatever their role |
GET /sms/lines | sms:read | Phone numbers — only the numbers assigned to them |
POST /sms/messages | sms:send | Phone numbers — from must be one of theirs |
POST /sms/conversations/…/resolve, …/assign | sms:write | Phone numbers — the line must be one of theirs |
GET /sms/conversations, GET /sms/conversations/{line}/{number} | messages:read | Phone numbers — only threads on lines that are theirs |
DELETE /sms/conversations/… | messages:delete | Phone numbers, plus the account's restrict-deleting-SMS setting |
POST /calls/search, GET /calls/{id} | reports:read | Call reports — only the calls their role exposes |
GET /queues/agent-sessions | reports:read | User Events on and Call reports not Block — only the users, queues and hunt groups their role can see. Applies to API keys too (the run-as user's role). |
GET /calls/{id}/recordings, .../transcripts | recordings:read | The user's role needs Call reports → allow recordings turned on — without it, you get 403 even when the token has the scope |
DELETE /calls/{id}/recordings/{uniqueid}[/{recordingid}] | recordings:delete | Account Owner role only, and the recording must be one they can read |
GET /faxes, GET /faxes/{id} | fax:read | Fax History not Block, and Phone numbers — only faxes on their numbers |
GET /faxes/{id}/file | fax:read | Fax History → Allow with View Fax — without it, 403 even with the scope |
POST /faxes | fax:send | TeleConsole → Fax, and Phone numbers — from must be one of theirs |
POST /calls | calls:make | Their own phones only; Phone numbers — a callerId number must be one of theirs |
So the exact same request can honestly return different results for two different users' tokens on the same account. If your app sees less than you expect, check the approving user's role in the portal before assuming it is a bug.
The two failures look alike and are fixed in different places:
error.type | What is wrong | Fixed by |
|---|---|---|
insufficient_scope | The credential lacks the scope | Your code — re-authorize |
permission_denied | The scope is fine; the role lacks the permission | Their admin, in the portal |
API keys are different: for now, a key is limited by its scopes alone — no person's role narrows it further. So within what its scopes allow, a key can reach the whole account. See What a key can reach.
:::note The fax and call endpoints already apply a role to keys
On /faxes, a key is held to the role of the user it runs as (set on the key
in the admin center), using the permissions in the table above. A key whose user
has Fax History set to Block gets 403 permission_denied, whatever its
scopes. See Faxes.
On POST /calls, a callerId number must be among that user's role numbers.
The phone to ring is not taken from the role: a key may ring only the
phones selected on it, and a key with no phones cannot place calls. See
Click to call.
:::
Scopes a key can hold but OAuth cannot
flows:call — ringing a number and running one of the account's Flows when it
answers — is key-only and can never be granted through the user-consent flow:
it places billable calls that reach people outside the account, so no delegated
third-party app may ask for it. Your own systems use it through a key you create.
It is the only scope for POST /api/v1/flows/{flowId}/calls
(see Calling into a Flow), and that endpoint accepts
nothing else — no REST endpoint accepts flows:call, and no other scope can
place a flow call. Two things narrow it:
- Flow grants. A key with
flowresource grants may call only those flows. Without them it may call every flow on the account. - Allowed IPs, as for any key.
The key's run-as user's role is not consulted on this endpoint — not even the Flows permission. Narrow the key itself.