Get OAuth2 Access Token
Required scope
secrets:oauth_token (or secrets:*).
This endpoint returns a live upstream credential and refreshes it at the provider, so it is
deliberately not covered by secrets:read, whose scope is secret metadata. If you authenticate
with an OAuth access token that was deliberately narrowed, its grant must include
secrets:oauth_token; a token narrowed to secrets:read receives 403 insufficient_scope and the
WWW-Authenticate header names the scope to request. API keys (tk_/AKE) and key-mirrored OAuth
clients carry no scope grant and are unaffected.
Changed 2026-08-26 — see the changelog.