Skip to main content

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.

ScopeGrantsSpends money
sms:readTexting settings — which numbers can text, blocked senders, saved replies, schedules. Not the actual text of any message (reading those needs messages:read).No
sms:writeResolve 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:deleteDelete templates and drafts — delete the account's saved SMS templates and drafts.No
sms:sendSend SMS from the account's numbers, and schedule one to go out laterYes
messages:readRead message content — the inbox, a thread's text and media, delivery receipts, unread countsNo
messages:writeMark messages read or unread. Deleting needs "Delete messages" (messages:delete).No
messages:deleteDelete messages — permanently delete SMS and MMS messages or whole conversations. This cannot be undone.No
users:readThe account's users — names, emails, extensions. Personal data.No
profile:readRead 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:readCall recordings and transcripts — the contents of conversationsNo
recordings:deleteDelete 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:readList and view webhook subscriptionsNo
webhooks:writeCreate, edit, enable and disable webhook subscriptions. Deleting needs "Delete webhooks" (webhooks:delete).No
webhooks:deleteDelete webhooks — delete the account's webhook subscriptions.No
reports:readCall history — who called whom, when, how long, how it ended — and agents' queue and hunt group sign-in and pause historyNo
fax:readSent and received faxes — the list, each fax's delivery status, and the fax documents themselvesNo
fax:sendSend faxes from the account's fax numbersYes
calls:makePlace click-to-call calls — ring a phone, then connect it to a numberYes
flows:callPlace 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:read is kept separate from sms:read for the same reason recordings:read is 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 into sms: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:write and messages:write can 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:delete for messages and conversations, sms:delete for 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 deleteScopeNot enough on its own
A message or a whole conversationmessages:deletemessages:write
A saved SMS template or a draftsms:deletesms:write
A webhook subscriptionwebhooks:deletewebhooks:write
A call recordingrecordings:deleterecordings: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.

Deleting a recording needs the account owner

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.

Deleting messages has a second gate that scopes do not override

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.

EndpointScope…and the authorizing user's portal permission
GET /usersusers:readUsers — you see the users they can see, no more
GET /meprofile:readNone — but only their own profile and lines, whatever their role
GET /sms/linessms:readPhone numbers — only the numbers assigned to them
POST /sms/messagessms:sendPhone numbers — from must be one of theirs
POST /sms/conversations/…/resolve, …/assignsms:writePhone numbers — the line must be one of theirs
GET /sms/conversations, GET /sms/conversations/{line}/{number}messages:readPhone numbers — only threads on lines that are theirs
DELETE /sms/conversations/…messages:deletePhone numbers, plus the account's restrict-deleting-SMS setting
POST /calls/search, GET /calls/{id}reports:readCall reports — only the calls their role exposes
GET /queues/agent-sessionsreports:readUser 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, .../transcriptsrecordings:readThe 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:deleteAccount Owner role only, and the recording must be one they can read
GET /faxes, GET /faxes/{id}fax:readFax History not Block, and Phone numbers — only faxes on their numbers
GET /faxes/{id}/filefax:readFax History → Allow with View Fax — without it, 403 even with the scope
POST /faxesfax:sendTeleConsole → Fax, and Phone numbers — from must be one of theirs
POST /callscalls:makeTheir 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.typeWhat is wrongFixed by
insufficient_scopeThe credential lacks the scopeYour code — re-authorize
permission_deniedThe scope is fine; the role lacks the permissionTheir 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 flow resource 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.