---
title: "Get Account Token"
method: POST
path: "/api/v1/oauth/account/token"
tags: ["Authentication"]
---

# Get Account Token

`POST /api/v1/oauth/account/token`

## Request

- Base URL: `https://api.sahha.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sahha.ai/api/v1/oauth/account/token`
- Auth: API key in header `Authorization`

Returns an Account access token when provided with a valid ClientId and ClientSecret. This token is used to perform administrative tasks like creating / modifying end user profiles and reporting.

## Request body

- RetrieveClientTokenRequest
  - `clientId` string: ClientId retrieved from logging in to https://app.sahha.ai.
  - `clientSecret` string, nullable: Client Secret retrieved from logging in to https://app.sahha.ai.

## Response `200`

Returns a token response

- RetrieveClientTokenCommandResult
  - `accountToken` string, nullable
  - `tokenType` string, nullable

## Other responses

- `400`: Returned if the ClientId or ClientSecret is invalid, or if the X-Environment header is missing.

---

[API](https://skmtc.dev/sahha/apis/sahha-platform-v1.md) - [All operations](https://skmtc.dev/sahha/apis/sahha-platform-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/sahha/apis/sahha-platform-v1/revisions/c7f918b46707?raw)
