Create a token

Create a new access token based on client ID and client secret.

Headers

x-monite-versionstringRequired

Request

This endpoint expects an object.
client_idstringRequiredformat: "uuid"

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_secretstringRequired

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_typeenumRequired

The type of the access token to generate:

  • client_credentials - partner-level access token,
  • entity_user - entity user token.
Allowed values:
entity_user_idstringOptionalformat: "uuid"

ID of the entity user to generate the access token for. Used only if grant_type is entity_user.

Response

Successful Response
access_tokenstring

The access token. Send it in the Authorization: Bearer ACCESS_TOKEN header in subsequent API calls.

expires_ininteger
The token expiration time, in seconds.
token_typestring
Always "Bearer".

Errors