API v1 · 4xx
admin_required
| HTTP | When |
|---|---|
| 403 | The caller holds the right scope but is not an admin of the workspace the action's shared data belongs to, or the workspace is analytics only and the caller is not one of its admins. |
Some destructive actions need more than a scope: they need proven workspace-admin authority. Deleting a workspace-wide knowledge document — one every project in the workspace can see — is admin-only; project-scoped documents are not affected. Two verbs reach that rule:
delete_knowledge_doc(MCP), on a document whosescopeisWORKSPACE.delete_source(MCP) andDELETE /v1/sources/{sourceId}(REST) — the only REST endpoint that can raise this — when the source's knowledge-base copy of its transcript was shared with the whole company. Deleting the source deletes that copy for everyone, so it carries the same requirement. The proposal returned by phase one counts those documents indata.toDelete.workspaceSharedKnowledgeDocuments, and both confirmation phases enforce the rule, so a caller who would be refused cannot mint a proposal either.
{
"error": {
"code": "admin_required",
"message": "Deleting a workspace-wide knowledge document requires an admin of the workspace that document is shared with.",
"request_id": "req_…",
"docs_url": "https://scripe.io/developers/api/v1/errors#admin_required"
}
}Two ways to hit this:
- The OAuth grant belongs to a member, not an admin, of the workspace that document is shared with. That is usually the workspace you are working in, but not always: moving a project between workspaces leaves its company-shared documents behind in the old one, so a source can carry a shared copy that belongs elsewhere. Have an admin of that workspace run the action, or ask them to promote the account.
- The call came from an API key. A key carries no acting user, so
admin authority can never be established for it. (In practice a key
cannot reach this at all: the
*:destroyfamily is not grantable to API keys — see auth.md §1.2.)
A tool limited to workspace admins answers it too. On MCP, the five
tools whose availability is admin-only — update_positioning,
update_global_tone_of_voice, draft_positioning_from_website,
update_personal_dna and update_icp — refuse a connection whose
Scripe user is not an admin of the workspace with this code,
details.reason: "role" and details.retryable: false, before anything
is read or written. Before 2026-10-29 that refusal answered
invalid_request.
An analytics-only workspace answers it to everybody but its admins. A workspace that is analytics only (set up that way by Scripe, or on the Analytics plan) can be connected to an app or an AI assistant by its workspace admins alone. The check is made when the connection is granted and again on every call, on MCP and REST alike, so a person who stops being an admin loses the connection within a minute:
- The consent screen does not offer such a workspace to a member, and a consent for one is not granted.
- A call from a member's OAuth token answers this code with
details.reason: "analytics_only_admin_required"anddetails.retryable: false, on every analytics tool and route. Nothing is read.list_workspaces,switch_workspaceandGET /v1/workspacesstill answer, so the connection can move to another workspace. switch_workspaceinto such a workspace answers it too.- The cross-workspace analytics calls do not fail: they leave the
workspace out and name it in
meta.skippedwith the same reason.
An API key is not affected: only a workspace admin can create one. What
an admin's connection reaches there is still analytics only: see
feature_unavailable (ANALYTICS_ONLY).
Retrying without changing who is calling will always fail the same way.