v1

latestOpenAPI 3.0.3MIT2026-07-1373217576.0 KB
OAuth

OAuth Token Generate

Once you have retrieved the code from the user callback, you will need to exchange it for an access token via a backend call.

post/oauth/token

Request body

client_idstring required

The client id of the app requesting authorization.

client_secretstring required

The secret token of your app.

codestring required

The code passed to your callback when the user granted access.

grant_typestring required

When generating a new token use authorization_code.

statestring required

Same as the state you specified earlier.

Response

successful operation

access_tokenstring
token_typestring
refresh_tokenstring
expires_ininteger

Number of seconds until the access_token expires. Uses epoch time.

statestring nullable