Skip to main content
POST
/
auth
/
token
curl --request POST \
  --url https://api.sandbox.monite.com/v1/auth/token \
  --header 'Content-Type: application/json' \
  --header 'x-monite-version: <x-monite-version>' \
  --data '
{
  "grant_type": "client_credentials",
  "client_id": "eb959578-a74d-4ac3-8b25-bf0910027857",
  "client_secret": "14c84a34-282b-4fd8-8af6-86b5b5f2c212"
}
'
{
  "access_token": "<string>",
  "expires_in": 123,
  "token_type": "<string>"
}

Headers

x-monite-version
string<date>
required

Body

application/json
client_id
string<uuid>
required

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.

Example:

"eb959578-a74d-4ac3-8b25-bf0910027857"

client_secret
string
required

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.

Example:

"14c84a34-282b-4fd8-8af6-86b5b5f2c212"

grant_type
enum<string>
required

The type of the access token to generate:

  • client_credentials - partner-level access token,
  • entity_user - entity user token.
Available options:
client_credentials,
entity_user
entity_user_id
string<uuid> | null

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

Example:

"7abd8744-507c-40e6-a5ca-34aa480b3991"

Response

Successful Response

access_token
string
required

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

Example:

"L8qq9PZyRg6ieKGEKhZolGC0vJWLw8iEJ88DRdyOg"

expires_in
integer
required

The token expiration time, in seconds.

Example:

86400

token_type
string
required

Always "Bearer".

Example:

"Bearer"