---
title: "Create a token"
method: POST
path: "/auth/token"
tags: ["Access tokens"]
---

# Create a token

`POST /auth/token`

## Request

- Base URL: `https://api.sandbox.monite.com/v1`
- URL: `https://api.sandbox.monite.com/v1/auth/token`
- Auth: none declared. Required headers: `x-monite-version`

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

## Headers

- `x-monite-version` string, required

## Request body

- object
  - `client_id` string, uuid, required
  - `client_secret` string, required
  - `entity_user_id` string, uuid
  - `grant_type` 'client_credentials' | 'entity_user', required

## Response `200`

Successful Response

- AccessTokenResponse
  - `access_token` string, required
  - `expires_in` integer, required
  - `token_type` string, required

## Other responses

- `401`: Unauthorized
- `422`: Validation Error
- `500`: Internal Server Error

---

[API](https://skmtc.dev/monite/apis/monite-3.md) - [All operations](https://skmtc.dev/monite/apis/monite-3/llms.txt) - [OpenAPI document](https://skmtc.dev/monite/apis/monite-3/revisions/c13be6f83ce9?raw)
