Skip to main content
POST
/
auth
/
token
Create a 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 '
{
  "client_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "client_secret": "<string>",
  "grant_type": "client_credentials",
  "entity_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "access_token": "<string>",
  "expires_in": 123,
  "token_type": "<string>"
}

Headers

x-monite-version
string<date>
required

Body

application/json
client_id
string<uuid>
required
client_secret
string
required
grant_type
enum<string>
required
Available options:
client_credentials,
entity_user
entity_user_id
string<uuid> | null

Response

Successful Response

access_token
string
required
Example:

"L8qq9PZyRg6ieKGEKhZolGC0vJWLw8iEJ88DRdyOg"

expires_in
integer
required
Example:

86400

token_type
string
required
Example:

"Bearer"