Create a token
Create a new access token based on client ID and client secret.
Headers
x-monite-version
Request
This endpoint expects an object.
client_id
Your partner client ID obtained from the “API Credentials” section of Monite Partner Portal. Note that the sandbox and production environment use different client IDs.
client_secret
Your partner client secret obtained from the “API Credentials” section of Monite Partner Portal. Note that the sandbox and production environment use different client secrets.
grant_type
The type of the access token to generate:
client_credentials
- partner-level access token,entity_user
- entity user token.
Allowed values:
entity_user_id
ID of the entity user to generate the access token for. Used only if grant_type
is entity_user
.
Response
Successful Response
access_token
The access token. Send it in the Authorization: Bearer ACCESS_TOKEN
header in subsequent API calls.
expires_in
The token expiration time, in seconds.
token_type
Always "Bearer".