Skip to main content
This page is the developer-reference companion to Usage / Authentication. It documents the exact endpoint shapes, header names, error codes, and edge cases.

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

Response:

Refresh

The response may rotate the refresh token — always overwrite your stored value with the latest.

Revoke

Idempotent. Revoking an already-revoked token returns success.

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