After obtaining an authorization code, an access token can be requested on https://developer.mostwanted.io/api/v1/oauth/tokenThis request will result in an access token and a refresh token.The refresh token can also be used on this endpoint to create a new access token and refresh token.
WARNING
The refresh token cannot be used more than once.
Request
Body Params application/x-www-form-urlencoded
client_id
stringÂ
required
Client ID of the app
client_secret
stringÂ
required
Client Secret of the app
redirect_uri
string <uri>
required
A valid, TLS secured, redirect URI
grant_type
enum<string>Â
required
Grant Type for the token request
Allowed values:
authorization_coderefresh_token
code
stringÂ
optional
Authorization code for the token request
refresh_token
stringÂ
optional
Refresh Token for the token request
state
stringÂ
optional
Unique state, to prevent man-in-the-middle attacks
Access token to authenticate with the external applicationAn access token is typically valid for a short period of time. The token is a JWT token, they payload contains the exp field specifying the date and time the token will expire.
Refresh token that can be used to obtain a new access_token.Be sure to store this token securely, a refresh token ensures renewal of an expired access token. The refresh token is valid for 1 year, and only has a single use. Every request to the token endpoint ensures the creation of a new access token and a new refresh token.