Client Auth
Exchange grant for access token
OAuth 2.0 token endpoint supporting three grant types: authorization_code (standard OAuth flow with Basic auth), urn:ietf:params:oauth:grant-type:device_code (RFC 8628 device authorization for CLI clients), and refresh_token (rotate refresh token and obtain a new access token). The device_code and refresh_token grants authenticate via the privy-app-id header.
post/api/oauth/v2/token
Headers
privy-app-idstring
ID of your Privy app.
Request body
Response
Token issued successfully.