Code Exchange
Request
URL
Data
Name
Value
Response
Name
Description
Documentation
Body
client_idstringRequired
Your OAuth2 client id
client_secretstringRequired
Your OAuth2 client secret
codestringOptional
The OAuth code used for retrieving a bearer token
grant_typestringRequired
Grant type
partner_session_idstringOptional
Any session ids you want us to persist on the session
redirect_uristringOptional
The OAuth2 redirect URI
refresh_tokenstringOptional
The OAuth refresh token.
Responses
200
tokens
application/json
access_tokenstringOptionalExample:
fiatz2H1kXuV59EdN_jeCA32qHuBOz...expires_inintegerOptionalExample:
3600id_tokenstringOptionalExample:
eyJhbGciOiJFZERTQSIsIdsdjfbgksu...refresh_tokenstringOptionalExample:
firt6tsF90LTf8LYCYPtdh8q4qr3c...token_typestringOptionalExample:
Bearer400
Bad request
application/json
401
Forbidden
application/json
404
Not Found
application/json
429
Rate Limited
application/json
500
Internal error
application/json
post
/api/oauth2/tokenLast updated