OAuth

Exchange authorization code for tokens

Standard OAuth 2.0 token endpoint. Exchanges an authorization code for an access token and optional OIDC ID token. Supports PKCE via code_verifier.

post/v1/oauth/token

Request

  • Base URL: https://api.1claw.co
  • URL: https://api.1claw.co/v1/oauth/token
  • Auth: none required

Request body

grant_type'authorization_code' required
codestring required
client_idstring required
redirect_uristring uri required
code_verifierstring

PKCE code verifier (required — PKCE S256 is mandatory for all code grants)

Response

Token response

access_tokenstring required
token_type'Bearer' required
expires_ininteger required

Token lifetime in seconds

refresh_tokenstring nullable

Refresh token for obtaining new access tokens (when offline_access scope was granted)

id_tokenstring nullable

OIDC ID token (when openid scope was granted)

scopestring required

Changes

No recorded changes to this operation across all 1 revision of this API.