A scope is a permission a credential carries. Two disjoint sets exist, one per authentication model: user-consent scopes that a signed-in user grants to an OAuth app, and organization scopes that an admin assigns to an API key. Always request the least privilege the integration needs.
User-delegated scopes (OAuth consent)
Request these in the scope parameter of the authorize request, space-delimited. They must be a subset of the client’s allowed scopes, and the user approves them on the consent screen. If you omit scope, the default is openid profile email.
| Scope | Grants |
|---|---|
openid | Identity: the sub claim, an id_token, and access to UserInfo. Required for OIDC. |
profile | The name and picture claims. |
email | The email and email_verified claims. |
offline_access | A rotating refresh token, so you can obtain fresh access tokens without re-prompting. |
passes:read | View the user’s guest passes (GET /api/v1/passes). |
passes:write | Create and revoke the user’s guest passes (POST / DELETE /api/v1/passes). |
invites:read | View organization invitations addressed to the user (GET /api/v1/invites). |
members:read | Read the organization’s member directory — additionally gated on the user’s live employee-view role. |
A typical resident-app request:
openid profile email offline_access passes:read passes:write invites:readConsent is remembered per user, client, and scope: requesting the same or a narrower set stays silent, while requesting a superset re-prompts. Send prompt=consent to force the consent screen every time.
Organization API-key scopes
These are assigned when an admin mints an API key in Settings → API keys. They act across the whole organization, not on behalf of a single user, and gate the /api/v1/org/* endpoints.
| Scope | Grants |
|---|---|
org:passes:read | Read every pass in the organization (GET /api/v1/org/passes). |
org:passes:write | Create and revoke any pass in the organization (POST / DELETE /api/v1/org/passes). |
org:facilities:read | List the organization’s facilities (GET /api/v1/org/facilities). |
org:members:read | Read the member directory — basic fields (GET /api/v1/org/members). |
org:members:contact:read | Add the contact tier (email, phone) to member reads. |
org:members:write | Create, change, deactivate and delete members. |
org:credentials:read | Read members’ cards and licence plates, and where each stands on the controllers. |
org:credentials:write | Issue, change, suspend and delete cards and licence plates. |
org:access:read | Read access groups: which doors each opens, and when. |
org:access:write | Create, change and delete access groups, their doors and schedules. |
org:facilities:write | Create, change and deactivate facilities, their hours and guest doors. |
org:controllers:read | List controllers, their doors and whether each is online. |
org:doors:open | Momentarily open a door. |
org:doors:write | Rename a door and change how long it stays released. |
org:relays:open | Switch a relay on or off for a bounded time. |
org:events:read | Read access events. |
org:webhooks:read | List the webhook endpoints that receive access events. |
org:webhooks:write | Register and delete those endpoints. |
The endpoints behind the write scopes are on Managing people, access and sites.
Enforcement
Scopes are checked on every request. A token that lacks a required scope is rejected with 403 insufficient_scope, and the WWW-Authenticate: Bearer response header names the scope that was missing:
HTTP/1.1 403 Forbidden
WWW-Authenticate: Bearer error="insufficient_scope", scope="passes:write"For user-delegated calls, the acting user must also still hold the underlying organization role — a revoked resident cannot keep acting through an old grant, even if the token’s scope is intact. See Errors for how to react.