Endpoint summary
Headers
Pass either
Authorization or x-api-key, never both. Sending both returns ERROR_CODE_INVALID_REQUEST.
OAuth — wire-level
Authorization request
code_challenge_method=S256 is required. The legacy plain method is rejected.
Token exchange
Refresh
Revoke
Token introspection
AuthService includes TokenInfo for inspecting the active token’s scopes and expiration when needed. See sdk/auth/v1/token_info.proto.
Edge cases
Related
- Usage / Authentication — narrative walkthrough.
- OAuth Scopes — what each scope grants.
- API Keys — server-to-server credential lifecycle.
- Errors — error code reference.