---
updatedAt: 2026-08-10T12:21:58.000Z
agentTools:
  projectIndex: https://monta-partner-api.readme.io/llms.txt
---

# Obtain your `accessToken`

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Monta API",
    "description": "\n             see https://docs.partner-api.monta.com\n             ",
    "contact": {
      "name": "Monta API Support",
      "url": "https://www.monta.com/uk/contact",
      "email": "partner-api@monta.com"
    },
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://partner-api.monta.com",
      "description": "Production"
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "Authentication"
    }
  ],
  "paths": {
    "/api/v1/auth/token": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Obtain your `accessToken`",
        "operationId": "get-access-token-with-client-credentials",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "required": [
                  "clientId",
                  "clientSecret"
                ],
                "type": "object",
                "properties": {
                  "clientId": {
                    "type": "string"
                  },
                  "clientSecret": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successfully created access token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Token"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "status": "BAD_REQUEST",
                    "message": "Invalid request",
                    "errorCode": "BAD_REQUEST"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Consumer with provided credentials was not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "status": "UNAUTHORIZED",
                    "message": "Consumer with given `clientId` and `clientSecret` not found",
                    "errorCode": "CONSUMER_NOT_FOUND"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Token": {
        "required": [
          "accessToken",
          "accessTokenExpirationDate",
          "refreshToken",
          "refreshTokenExpirationDate"
        ],
        "type": "object",
        "properties": {
          "accessToken": {
            "type": "string",
            "description": "Access token, required to interact with our endpoints.",
            "example": "5a6d4da1-6af3-420b-9c15-6ecb5f6de199"
          },
          "refreshToken": {
            "type": "string",
            "description": "Refresh token, required to get a new access token.",
            "example": "83b766d4-476e-4dd1-b11e-f57e856c890d"
          },
          "accessTokenExpirationDate": {
            "type": "string",
            "description": "Expiration date of access token (1 hour)",
            "format": "date-time",
            "example": "2022-05-11T07:03:04.675035Z"
          },
          "refreshTokenExpirationDate": {
            "type": "string",
            "description": "Expiration date of refresh token (24 hours)",
            "format": "date-time",
            "example": "2023-05-12T07:03:04.675055Z"
          }
        }
      }
    }
  },
  "x-stability-level": "stable"
}
```