Last updated: October 24, 2026

Authorization code token

Exchange the authorization code for tokens.

Request

POSThttps://test.miniorange.in/moas/rest/oauth/token

Authentication headers (required on every request)

Customer-Key
Integer — your account customer key
Timestamp
Milliseconds since epoch (e.g. Date.now())
Authorization
SHA-512 of customerKey + timestamp + apiKey

Parameters

NameTypeRequiredDescription
grant_typeStringRequiredauthorization_code
codeStringRequiredCode from the authorize response
redirect_uriStringRequiredSame callback URL
client_idStringRequiredOAuth client ID
client_secretStringRequiredOAuth client secret

Response

{
    "access_token": "2f6fyjXdQRgVU9w",
    "refresh_token": "def50200",
    "id_token": "eyJhbGciOiJSUzI1NiJ9",
    "token_type": "bearer",
    "expires_in": 3600
}
Copied