Exchange for access_token (authorization_code or refresh_token)
OAuth
Exchange for access_token
Exchange an authorization code or refresh token for an access_token. client_id + client_secret are required.
Exchange for access_token (authorization_code or refresh_token)
Body
application/json
Grant type
Available options:
authorization_code, refresh_token Required when grant_type=authorization_code
Required when grant_type=authorization_code; matches the PKCE code_challenge
Required when grant_type=authorization_code; must match the value sent to /authorize
Required when grant_type=refresh_token
Response
Tokens issued
JWT access token
Example:
"Bearer"
access_token lifetime in seconds
Example:
86400
refresh_token lifetime in seconds
Example:
2592000
Space-separated list of scopes
Example:
"form:read entry:read"
Last modified on May 14, 2026