---
title: "Generate Auth token"
method: POST
path: "/admin/api/v1/Token"
tags: ["Auth token"]
---

# Generate Auth token

`POST /admin/api/v1/Token`

Get a short lived token for initializing request calls for Registered client API.

## Request body

- ClientAdminTokenRequest — Generate Auth token.
  - `clientId` string, required — Contact Mesh to get client Id.
  - `clientSecret` string, required — Contact Mesh to get Client Secret for Account Management API.

## Response `200`

Token created

- OAuthTokenResponseApiResult
  - `status` 'ok' | 'serverFailure' | 'permissionDenied' | 'badRequest' | 'notFound' | 'conflict' | 'tooManyRequest' | 'locked' | 'unavailableForLegalReasons'
  - `message` string, nullable — A message generated by the API
  - `displayMessage` string, nullable — User-friendly display message that can be presented to the end user
  - `errorHash` string, nullable — An error grouping hash from string components and caller information. Used by bugsnag on FE for correct error grouping
  - `teamCode` string, nullable — Opaque team code for error routing. Resolved from exception origin or caller file path via CODEOWNERS. Format: 2-character code (e.g., "7K", "M2"). Use for alerting/routing, not display.
  - `errorType` string, nullable — Strictly-typed error type that is explaining the reason of an unsuccessful status of the operation. All possible error types are available in the documentation.
  - `errorData` unknown
  - `content` OAuthTokenResponse
    - `id_token` string, nullable — Authentication token.
    - `expires_in` integer, nullable — Expiration time in seconds.
    - `status` 'failed' | 'succeeded' | 'mfaRequired' | 'available'

## Other responses

- `400` — Token request is not correct
- `403` — Permission denied: Client Id or Client Secret are not correct or missing

---

[API](https://skmtc.dev/meshconnect/apis/admin-api.md) · [All operations](https://skmtc.dev/meshconnect/apis/admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/meshconnect/admin-api/revisions/9beb45cfe6f6/schema)
