Skip to content
Reading with an AI assistant?View as MarkdownOpen in ClaudeOpen in ChatGPT

Get started

API scopes and permissions

Updated

API scopes and permissions set what an API key, OAuth token or MCP tool can do. A request needs a scope on the token and the member's own access to the action.

Browse docs

How do API scopes and permissions work together?#

A scope names what the credential may do; a permission names what the member may do. SkedCast checks both on every request, in this order, and stops at the first failure (RFC 6749, section 1.4).

  • Credential valid: a missing, expired or revoked key or token is a 401.
  • Route declares a scope: a route with none is closed to tokens, 403 token_scope_required.
  • Token holds a scope the route accepts: otherwise 403 insufficient_scope.
  • Member holds the permission the route needs: otherwise 403 rbac_permission_denied.
  • Client is inside the member's access: otherwise 403 rbac_scope_denied.
Diagram: a request arrives with a token, SkedCast checks the token holds the route's scope, then the member's role, then their access to the client or channel, and only then runs the request.
How SkedCast checks every API request.

Scope reference#

SkedCast has 22 scopes in 9 groups. 12 end in .read and can never change anything; they are what the Read-only preset selects.

Scopes#

Scopes
ScopeAccessGrants
agency.readreadRead workspace profile
clients.readreadRead clients
accounts.readreadRead connected social accounts
posts.readreadRead posts and schedule
analytics.readreadRead analytics
reports.readreadRead reports
besttimes.readreadRead best-time recommendations
media.readreadRead content library
webhooks.readreadRead webhook endpoints and delivery logs
approvals.readreadRead the approval queue
campaigns.readreadRead campaigns
posts.composewriteCreate and schedule posts
approvals.decidewriteApprove or reject pending posts
media.managewriteUpload and manage library assets
clients.managewriteCreate and manage clients
accounts.connectwriteGenerate account connect links
webhooks.managewriteCreate and manage webhook endpoints
webhooks.deletewriteDelete webhook endpoints
campaigns.managewriteCreate and manage campaigns
inbox.readreadRead inbox conversations, messages, labels and saved replies
inbox.replywriteReply to conversations and triage them (status, assignee, labels)
inbox.moderatewriteHide, like, delete or block on the platforms

Every scope an API key, OAuth token or MCP tool can hold.

Scope groups#

Scope groups
GroupScopesCount
Posts & scheduleposts.read, posts.compose2
Clients & accountsclients.read, accounts.read, clients.manage, accounts.connect4
Content librarymedia.read, media.manage2
Analytics & reportsanalytics.read, reports.read, besttimes.read3
Approvalsapprovals.read, approvals.decide2
Campaignscampaigns.read, campaigns.manage2
Inboxinbox.read, inbox.reply, inbox.moderate3
Webhookswebhooks.read, webhooks.manage, webhooks.delete3
Workspaceagency.read1

The same 9 groups the API key dialog uses.

Write scopes#

Write scopes
ScopeWhat a token holding it can do, when the member can too
posts.composeCreate, edit, publish, delete, reschedule, cancel and retry posts; bulk updates; edit a published post's text; send a post for approval
approvals.decideApprove, reject or request changes
media.manageUpload, import, edit, delete and restore library files
clients.manageCreate, edit and delete clients; create or cancel connect links
accounts.connectGenerate an account connect link
webhooks.manageCreate, edit and test endpoints; rotate a signing secret; redeliver an event
webhooks.deleteDelete a webhook endpoint
campaigns.manageCreate, edit and delete campaigns; shift dates; assign posts
inbox.replyReply to, edit, assign and archive a conversation; add internal notes
inbox.moderateModerate comments, including comments held for review

Write scopes and the actions they can carry. A scope never adds an action the member cannot take.

Recommended scopes by integration
IntegrationScopes to requestWhy these
Reporting dashboardanalytics.read, reports.read, posts.read, clients.readReads results and the clients they belong to, and changes nothing
Publishing pipelineaccounts.read, clients.read, posts.composeFinds the channels to post to, then creates and schedules posts
Pipeline that uploads filesThe publishing scopes plus media.manageAdds the right to put files in the content library
Approval bridgeapprovals.read, approvals.decide, posts.readLists posts waiting for a decision, then records approve, reject or request changes
Webhook receiverwebhooks.manage, webhooks.readRegisters the endpoint and reads delivery logs, without the right to delete it
Partner onboardingclients.manage, accounts.connect, accounts.read, posts.composeCreates a client, generates its connect link, checks what connected, then posts
Inbox assistantinbox.read, inbox.replyReads conversations and replies, without the right to hide or delete comments

Scope sets for common jobs. Add a scope only when the integration fails without it.

Choose scopes#

Request the minimum: OWASP's OAuth 2.0 guidance restricts an access token's privileges to what is required, which limits a leaked token, and the MCP specification asks the same of clients.

  • List each call the integration makes (API reference), look up its scope in the table above, and start with .read scopes.
  • Add a write scope only for a call that changes something, the narrowest that covers it, such as webhooks.manage without webhooks.delete.
  • Test with the key: a 403 insufficient_scope names the scope the route accepts, so add that one and no more.

How a credential gets its scopes#

How a credential gets its scopes
CredentialHow scopes are setDetails
API keyTick them in Settings → Developer. Owner or Manager only. Presets: Read-only (selected first), Full access, Custom.The dialog offers only scopes your access can use. An unknown scope is 400 invalid_scope; one beyond your access is 403 insufficient_role_for_scope. Names are matched exactly, so Posts.Read is unknown. Expires after 90 days unless you choose otherwise, at most 365. See authentication.
OAuth tokenThe scope parameter of the authorization request: space-delimited and case-sensitive, as in scope=posts.read posts.compose (RFC 6749, section 3.3).An unknown scope returns invalid_scope to your app. With none named, SkedCast uses the client's registered scope or four read scopes: posts.read, accounts.read, analytics.read, media.read. Only scopes the signed-in person's access allows are granted; none left returns access_denied; the token response lists what was granted. A refresh re-checks the person's access. See OAuth for SkedCast, OAuth for social media and social media API authentication.
MCP clientThrough its OAuth connection to the MCP server, which lists the same 22 scopes in its protected-resource metadata.Each of the 81 tools needs one scope. A refused tool returns an error result with the REST code, insufficient_scope or rbac_permission_denied. See the MCP tools list and the MCP page.

One list of scopes, three ways to receive them.

Errors#

A 401 means the credential was not accepted. A 403 means it was understood but is not allowed. Only an insufficient_scope refusal carries the WWW-Authenticate scope attribute, which lists the scopes the route accepts (RFC 6750, section 3.1).

Table
Status and codeMeaningFix
403 insufficient_scopeThe token lacks the scope the route requires.Create a key with the scope the header names, or send the person through consent again.
403 rbac_permission_deniedThe member's access does not allow the action.Give the member more access. A wider scope cannot fix it.
403 rbac_scope_deniedThe client is outside the member's access.Use a client the member can reach.
403 token_scope_requiredThe route is closed to API keys and OAuth tokens, because it declares no scope.None: the route is not open to tokens.
400 invalid_scopeA key or request named a scope that is not on the list.Use the exact name from the table above.
403 insufficient_role_for_scopeA key was requested with a scope the creator's own access cannot use.Choose a scope the creator's access allows.
401 unauthenticatedNo credential was sent, or the key or token is not valid.Get a new credential or refresh the token.

insufficient_scope and its 403 status follow RFC 6750, section 3.1.

http
HTTP/1.1 403 Forbidden
WWW-Authenticate: Bearer error="insufficient_scope", scope="posts.compose"
Content-Type: application/problem+json
A refusal for a missing scope. The scope attribute lists what the route accepts.

When a member's access changes#

A narrower role or a removed client grant narrows every key and token the member owns, with no key edit. An OAuth app sees it at the next refresh.

Not controlled by scopes#

A scope is not a plan setting or a request limit.

  • Plan limits and quotas: the plan's cap and per-minute budget apply whatever the scope (pricing).
  • Which clients or channels a request may touch: the member's access decides.
  • API access itself: a scope does not switch it on.
  • Billing, the team and removing a connected account: no token can do them.

Pages that cover the rest of the API.

Sources