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
Key | Datatype | Required | Description |
---|---|---|---|
grant_type | string | (Required) Either refresh_token or authorization_code . | |
client_id | string | (Required) The client ID you created for your application. | |
client_secret | string | (Required) The client secret you created for your application. | |
refresh_token | string | Required if grant_type is refresh_token . | |
code | string | Required if grant_type is authorization_code . | |
redirect_uri | string | Required 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"}