---
title: "POST /api/token"
method: POST
path: "/api/token"
---

# POST /api/token

`POST /api/token`

Generates authentication tokens for a client using clientId and clientSecret.

## Request body

- object
  - `clientId` string, required — The client ID of the organization
  - `clientSecret` string, required — The client secret of the organization

## Response `200`

Authentication tokens generated successfully

- object
  - `accessToken` string — Access token to use in your API request
  - `refreshToken` string — Refresh token to refresh your access token
  - `expiresAt` string, date-time — Date and timestamp at which the access token will expire
  - `refreshTokenExpiresAt` string, date-time — Date and timestamp at which the refresh token will expire

## Other responses

- `401` — Invalid credentials provided

---

[API](https://skmtc.net/cairhealth/apis/cair-health-apis.md) · [All operations](https://skmtc.net/cairhealth/apis/cair-health-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cairhealth/cair-health-apis/revisions/dfc60069747b/schema)
