Skip to main content

Get OAuth2 Access Token

For OAuth2-type secrets, returns the current access token. If the token has expired, KnoxCall will automatically refresh it before returning.

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.

Path Parameters

Query Parameters

Response

Errors