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.
Authentication
AuthorizationBasic
Basic authentication of the form Basic <username:password>.
OR
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
client_id
The client id of the app requesting authorization.
client_secret
The secret token of your app.
code
The code passed to your callback when the user granted access.
grant_type
When generating a new token use authorization_code.
state
Same as the state you specified earlier.
Response headers
X-RateLimit-Limit
The maximum number of requests per hour that you can make.
X-RateLimit-Remaining
The number of requests remaining in the current rate limit window.
X-Ratelimit-Reset
The Unix time at which the rate limit will reset to its maximum.
Response
successful operation
access_token
token_type
refresh_token
expires_in
Number of seconds until the access_token expires. Uses epoch time.
state