Permissions and API keys
Understand personal identity, service scopes, and operation authorization.
Authentication establishes an actor and organization. Authorization checks the operation's required permission and the ownership of its resources. Use authentication to configure a key; this page explains how access is determined.
Personal identity and service scopes
A personal key uses the bound user's current organization membership and role permissions on every verified request. Removing membership, disabling the user or changing roles can remove access. Changing the Dashboard workspace does not move the key to another organization.
A service key has explicit scopes selected when it is created. Those scopes are independent of its issuer's subsequent membership. Creation cannot delegate permissions beyond the issuer's grants. Use service keys for application workloads and personal keys when the operation needs a human identity.
Operation requirements
Domain permissions have resource/action names, such as gateway:execute, knowledge:search and prompt:publish. A workflow can need several grants: creating an evaluation suite, running it and inspecting results are different operations. Cache reads, writes and invalidation have separate permissions.
Organization/member/role administration requires a personal identity as well as the applicable grants. Assigned evaluation reviews require that identity and the correct assignment. Adding a review or administration scope to a service key does not create a user identity.
Resource ownership is checked separately. A grant does not authorize access to another organization's IDs. Your application must also authorize its own end users before spending a service key's permissions on their behalf.
Inspect and diagnose access
auth.getContext() returns safe organization, key-type, role and effective-permission information, including for keys without product grants. It does not return the secret. The access-control guide shows inspection and supported role administration.
For 401, check the key's validity, expiry and revocation. For 403, inspect permissions, identity requirements and organization scope. A 404 can also mean an inaccessible resource. Use troubleshooting without logging keys or private inputs.