---
title: "Login To Obtain Access Token"
method: POST
path: "/token"
tags: ["Authentication"]
---

# Login To Obtain Access Token

`POST /token`

Login to obtain an access token.

## Response `200`

Successful Response

- TokenSchema — Model for representing an access token.
  - `access_token` string, required
  - `token_type` string, required

## Other responses

- `422` — Validation Error

## Changes

> 3 revisions in range; 1 not diffed.

- **2023-11-13** `ac1f1ab68fcb` — 2 info
  - the `scope` request property default value `` was added
  - added the non-success response with the status `422`
- **2023-11-08** `dbd91277da05` — 3 info
  - api operation id `login_to_obtain_access_token_token_post` removed and replaced with `login_for_access_token_token_post`
  - the `scope` request property default value `` was removed
  - removed the non-success response with the status `422`

[Change history](https://skmtc.dev/chat-fly/apis/chatfly-backend-application/changes/token/post.md)

---

[API](https://skmtc.dev/chat-fly/apis/chatfly-backend-application.md) · [All operations](https://skmtc.dev/chat-fly/apis/chatfly-backend-application/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chat-fly/chatfly-backend-application/revisions/cbb37496f138/schema)
