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.
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#
| Scope | Access | Grants |
|---|---|---|
agency.read | read | Read workspace profile |
clients.read | read | Read clients |
accounts.read | read | Read connected social accounts |
posts.read | read | Read posts and schedule |
analytics.read | read | Read analytics |
reports.read | read | Read reports |
besttimes.read | read | Read best-time recommendations |
media.read | read | Read content library |
webhooks.read | read | Read webhook endpoints and delivery logs |
approvals.read | read | Read the approval queue |
campaigns.read | read | Read campaigns |
posts.compose | write | Create and schedule posts |
approvals.decide | write | Approve or reject pending posts |
media.manage | write | Upload and manage library assets |
clients.manage | write | Create and manage clients |
accounts.connect | write | Generate account connect links |
webhooks.manage | write | Create and manage webhook endpoints |
webhooks.delete | write | Delete webhook endpoints |
campaigns.manage | write | Create and manage campaigns |
inbox.read | read | Read inbox conversations, messages, labels and saved replies |
inbox.reply | write | Reply to conversations and triage them (status, assignee, labels) |
inbox.moderate | write | Hide, like, delete or block on the platforms |
Scope groups#
| Group | Scopes | Count |
|---|---|---|
| Posts & schedule | posts.read, posts.compose | 2 |
| Clients & accounts | clients.read, accounts.read, clients.manage, accounts.connect | 4 |
| Content library | media.read, media.manage | 2 |
| Analytics & reports | analytics.read, reports.read, besttimes.read | 3 |
| Approvals | approvals.read, approvals.decide | 2 |
| Campaigns | campaigns.read, campaigns.manage | 2 |
| Inbox | inbox.read, inbox.reply, inbox.moderate | 3 |
| Webhooks | webhooks.read, webhooks.manage, webhooks.delete | 3 |
| Workspace | agency.read | 1 |
Write scopes#
| Scope | What a token holding it can do, when the member can too |
|---|---|
posts.compose | Create, edit, publish, delete, reschedule, cancel and retry posts; bulk updates; edit a published post's text; send a post for approval |
approvals.decide | Approve, reject or request changes |
media.manage | Upload, import, edit, delete and restore library files |
clients.manage | Create, edit and delete clients; create or cancel connect links |
accounts.connect | Generate an account connect link |
webhooks.manage | Create, edit and test endpoints; rotate a signing secret; redeliver an event |
webhooks.delete | Delete a webhook endpoint |
campaigns.manage | Create, edit and delete campaigns; shift dates; assign posts |
inbox.reply | Reply to, edit, assign and archive a conversation; add internal notes |
inbox.moderate | Moderate comments, including comments held for review |
Recommended scopes by integration#
| Integration | Scopes to request | Why these |
|---|---|---|
| Reporting dashboard | analytics.read, reports.read, posts.read, clients.read | Reads results and the clients they belong to, and changes nothing |
| Publishing pipeline | accounts.read, clients.read, posts.compose | Finds the channels to post to, then creates and schedules posts |
| Pipeline that uploads files | The publishing scopes plus media.manage | Adds the right to put files in the content library |
| Approval bridge | approvals.read, approvals.decide, posts.read | Lists posts waiting for a decision, then records approve, reject or request changes |
| Webhook receiver | webhooks.manage, webhooks.read | Registers the endpoint and reads delivery logs, without the right to delete it |
| Partner onboarding | clients.manage, accounts.connect, accounts.read, posts.compose | Creates a client, generates its connect link, checks what connected, then posts |
| Inbox assistant | inbox.read, inbox.reply | Reads conversations and replies, without the right to hide or delete comments |
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
.readscopes. - Add a write scope only for a call that changes something, the narrowest that covers it, such as
webhooks.managewithoutwebhooks.delete. - Test with the key: a 403
insufficient_scopenames the scope the route accepts, so add that one and no more.
How a credential gets its scopes#
| Credential | How scopes are set | Details |
|---|---|---|
| API key | Tick 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 token | The 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 client | Through 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. |
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).
| Status and code | Meaning | Fix |
|---|---|---|
403 insufficient_scope | The 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_denied | The member's access does not allow the action. | Give the member more access. A wider scope cannot fix it. |
403 rbac_scope_denied | The client is outside the member's access. | Use a client the member can reach. |
403 token_scope_required | The route is closed to API keys and OAuth tokens, because it declares no scope. | None: the route is not open to tokens. |
400 invalid_scope | A key or request named a scope that is not on the list. | Use the exact name from the table above. |
403 insufficient_role_for_scope | A key was requested with a scope the creator's own access cannot use. | Choose a scope the creator's access allows. |
401 unauthenticated | No credential was sent, or the key or token is not valid. | Get a new credential or refresh the token. |
HTTP/1.1 403 Forbidden
WWW-Authenticate: Bearer error="insufficient_scope", scope="posts.compose"
Content-Type: application/problem+jsonWhen 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.
Related reference#
Pages that cover the rest of the API.
- Authentication: create and protect each credential.
- Conventions: the error format and rate limits.
- API error catalogue: every error code.
- Quickstart: a first scheduled post.
- Webhooks: the events and their scopes.
- Developer documentation: every other part of the API.