Common scopes
A key cannot expand its own scopes. Create a new key when a workload needs a different boundary.
OAuth tokens from Connect
A Connect application uses an OAuth access token after a user completes Sign in with Darwin. The token identifies the application and user, while a live linked-agent grant controls the agents and scopes available now. Do not turn a Product API key into a shared Connect credential. If your product serves multiple customers, register a Connect application and use Sign in with Darwin.Security
- Keep API keys and refresh tokens out of browser storage, model prompts, logs, and source control.
- Validate OAuth state and complete PKCE when using Connect.
- Treat
401as an invalid principal and403as a missing current scope or agent grant. - Use an
Idempotency-Keyfor money movement and other retried writes.