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
| Scope | Sensitive | Includes |
|---|---|---|
account:read | ||
account:write | account:read | |
activity_logs:read | Yes | |
analytics:read | ||
analytics:write | analytics:read | |
annotations:read | ||
annotations:write | annotations:read | |
api_keys:read | Yes | |
api_keys:revoke | Yes | api_keys:read |
audits:read | ||
billing:read | Yes | |
buckets:read | ||
buckets:write | buckets:read | |
chat_channels:read | Yes | |
chat_channels:write | Yes | chat_channels:read |
connectors:read | Yes | |
connectors:write | Yes | connectors:read |
contacts:delete | contacts:read | |
contacts:read | ||
contacts:write | contacts:read | |
custom_fields:admin | Yes | custom_fields:read |
custom_fields:import | ||
custom_fields:read | ||
custom_fields:write | custom_fields:read | |
dataviews:read | ||
dataviews:run | dataviews:read | |
dataviews:write | dataviews:read | |
document_templates:read | ||
document_templates:write | document_templates:read | |
documents:delete | documents:read | |
documents:download | ||
documents:read | documents:download, documents:search | |
documents:search | ||
documents:write | documents:read | |
email_rules:read | ||
email_rules:write | email_rules:read | |
email_templates:read | ||
email_templates:write | email_templates:read | |
folders:delete | folders:read | |
folders:read | ||
folders:write | folders:read | |
forge:deploy | Yes | forge:read |
forge:read | Yes | |
graph:read | ||
keystore:read | Yes | |
keystore:write | Yes | keystore:read |
locations:read | ||
locations:write | locations:read | |
lookup_lists:read | ||
lookup_lists:write | lookup_lists:read | |
ocr:read | ||
ocr:write | ocr:read | |
oliver:read | Yes | |
oliver:run | ||
oliver:write | Yes | oliver:read |
permissions:admin | Yes | |
plugins:read | Yes | |
plugins:write | Yes | plugins:read |
project_schedules:read | ||
project_schedules:write | project_schedules:read | |
projects:delete | projects:read | |
projects:read | ||
projects:write | projects:read | |
records:read | ||
records:write | records:read | |
reference_numbers:read | ||
reference_numbers:write | reference_numbers:read | |
registers:read | ||
registers:write | registers:read | |
reviews:read | ||
reviews:write | reviews:read | |
settings:read | ||
settings:write | Yes | settings:read |
signatures:read | ||
signatures:sign | signatures:read | |
stamps:read | ||
stamps:write | stamps:read | |
users:admin | Yes | users:read |
users:read | ||
workflow_setup:read | ||
workflow_setup:write | workflow_setup:read | |
workflows:author | workflows:read | |
workflows:decide | workflows:read | |
workflows:manage | workflows:read | |
workflows:read | ||
workflows:write | workflows: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.