Token Endpoint

POST {{baseUrl}}/1/oauth/access_token?grant_type=refresh_token&client_id=nostrud cillum sed in&client_secret=nostrud cillum sed in&refresh_token=nostrud cillum sed in&code=nostrud cillum sed in&redirect_uri=nostrud cillum sed in

After you have obtained a verification code or refresh token, you can exchange it for an access token via a POST request to this endpoint.

Request Params

KeyDatatypeRequiredDescription
grant_typestring(Required) Either refresh_token or authorization_code.
client_idstring(Required) The client ID you created for your application.
client_secretstring(Required) The client secret you created for your application.
refresh_tokenstringRequired if grant_type is refresh_token.
codestringRequired if grant_type is authorization_code.
redirect_uristringRequired if grant_type is authorization_code. Must match the redirect_uri supplied when requesting that authorization code.

RESPONSES

status: OK

{"access_token":"Excepteur dolore reprehenderit","expires_in":46275427,"refresh_token":"occaecat officia","scope":"est","token_type":"Bearer"}