Skip to main content

Scopes

A scope names what a key may do. Each operation needs one scope, or none, and its page names it. A request whose key does not hold the scope is refused before the operation runs.

Scope names​

A scope name is an area and an action, written <area>:<action>, for example documents:read.

Scopes that include others​

Some scopes include others. A key that holds documents:write also holds documents:read, and through it documents:download and documents:search. The table below lists what each scope includes.

Sensitive scopes​

A sensitive scope reaches company administration, such as the activity log or the company's API keys. The table below marks each one. A scope that is not sensitive never includes a sensitive one.

The scopes​

ScopeSensitiveIncludes
account:read
account:writeaccount:read
activity_logs:readYes
analytics:read
analytics:writeanalytics:read
annotations:read
annotations:writeannotations:read
api_keys:readYes
api_keys:revokeYesapi_keys:read
audits:read
billing:readYes
buckets:read
buckets:writebuckets:read
chat_channels:readYes
chat_channels:writeYeschat_channels:read
connectors:readYes
connectors:writeYesconnectors:read
contacts:deletecontacts:read
contacts:read
contacts:writecontacts:read
custom_fields:adminYescustom_fields:read
custom_fields:import
custom_fields:read
custom_fields:writecustom_fields:read
dataviews:read
dataviews:rundataviews:read
dataviews:writedataviews:read
document_templates:read
document_templates:writedocument_templates:read
documents:deletedocuments:read
documents:download
documents:readdocuments:download, documents:search
documents:search
documents:writedocuments:read
email_rules:read
email_rules:writeemail_rules:read
email_templates:read
email_templates:writeemail_templates:read
folders:deletefolders:read
folders:read
folders:writefolders:read
forge:deployYesforge:read
forge:readYes
graph:read
keystore:readYes
keystore:writeYeskeystore:read
locations:read
locations:writelocations:read
lookup_lists:read
lookup_lists:writelookup_lists:read
ocr:read
ocr:writeocr:read
oliver:readYes
oliver:run
oliver:writeYesoliver:read
permissions:adminYes
plugins:readYes
plugins:writeYesplugins:read
project_schedules:read
project_schedules:writeproject_schedules:read
projects:deleteprojects:read
projects:read
projects:writeprojects:read
records:read
records:writerecords:read
reference_numbers:read
reference_numbers:writereference_numbers:read
registers:read
registers:writeregisters:read
reviews:read
reviews:writereviews:read
settings:read
settings:writeYessettings:read
signatures:read
signatures:signsignatures:read
stamps:read
stamps:writestamps:read
users:adminYesusers:read
users:read
workflow_setup:read
workflow_setup:writeworkflow_setup:read
workflows:authorworkflows:read
workflows:decideworkflows:read
workflows:manageworkflows:read
workflows:read
workflows:writeworkflows:read

Operations that name no scope​

GET /me, GET /company and the OpenAPI document need no scope.

GET /tasks/{task_id} names no scope of its own. It needs the status scope of the task's kind, for example documents:read for a document_delete task. Only the key that started a task can read it.

Keys created in API Key Management​

A key created in API Key Management holds no scope names. It passes every scope check, so each operation is limited by the Portal permissions of the key's user, which the operation's page lists under Portal permissions, and by what that user can see.

Keys with the earlier scope names​

A key created earlier in API Key Management may hold the scope names of the earlier API, such as documents_read. These names have no colon. Each one counts as holding some v1 scopes, and reaches only the v1 operations that match what it reached before v1. The inclusions in the table above are not applied to the earlier names.

A key holds either v1 names or earlier names, never both. A key that holds both grants nothing.

When a scope is missing​

An operation that needs a scope the key does not hold answers 403 with the code insufficient_scope. The problem's scope member names the scope, and the response carries the header:

WWW-Authenticate: Bearer error="insufficient_scope", scope="<scope>"

When the key holds the scope through an earlier name that does not reach the operation, the problem also has legacy_restricted: true. A key created in API Key Management is not limited by scopes.