---
title: "Login For Access Token"
method: POST
path: "/api/v0/auth/token"
---

# Login For Access Token

`POST /api/v0/auth/token`

## Request

- Base URL: `https://healthharbor.co` (the document declares no server; this is the origin it was published from)
- URL: `https://healthharbor.co/api/v0/auth/token`
- Auth: none declared

## Request body `application/x-www-form-urlencoded`

- BodyLoginForAccessTokenApiV0AuthTokenPost
  - `grant_type` string, nullable
  - `username` string, required
  - `password` string, password, required
  - `scope` string
  - `client_id` string, nullable
  - `client_secret` string, password, nullable

## Response `200`

Successful Response

- Token
  - `access_token` string, required
  - `token_type` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-23** `43aa00c67b8c`: 6 info
  - request property `client_id` list-of-types was widened by adding types `null` to media type `application/x-www-form-urlencoded`
  - request property `client_secret` list-of-types was widened by adding types `null` to media type `application/x-www-form-urlencoded`
  - request property `grant_type` list-of-types was widened by adding types `null` to media type `application/x-www-form-urlencoded`
  - removed the pattern `^password$` from the request property `grant_type`
  - …2 more
- **2026-07-13** `9963d12064f3`: 2 breaking, 1 warning
  - the `client_secret` request property format changed from no format to `password`
  - the `password` request property format changed from no format to `password`
  - changed the pattern of the request property `grant_type` from `password` to `^password$`

[Operation history](https://skmtc.dev/healthharbor/apis/health-harbor/changes/api/v0/auth/token/post.md)

---

[API](https://skmtc.dev/healthharbor/apis/health-harbor.md) - [All operations](https://skmtc.dev/healthharbor/apis/health-harbor/llms.txt) - [OpenAPI document](https://skmtc.dev/healthharbor/apis/health-harbor/revisions/ac01277e80e6?raw)
