---
title: "Returns the JWT access token for the provided user login data if the login was successful. This is usually only called from an OAuth2 client!"
method: POST
path: "/authentication/login"
tags: ["authentication"]
---

# Returns the JWT access token for the provided user login data if the login was successful. This is usually only called from an OAuth2 client!

`POST /authentication/login`

## Response `200`

Successful Response

- UserAuthorizationHeaderData
  - `access_token` string, required — Value of the JWT
  - `access_token_expires` string, date-time, required
  - `refresh_token` string, required — For obtaining a new access token
  - `refresh_token_expires` string, date-time, required
  - `token_type` string, required — Type of the Token

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-15** `1af5a8046f20` — 2 breaking, 2 info
  - the `client_secret` request property type/format changed from ``/`` to ``/`password`
  - the `password` request property type/format changed from `string`/`` to `string`/`password`
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2025-08-22** `53e769440a25` — 1 breaking, 2 warning, 1 info
  - the `client_secret` request property type/format changed from ``/`password` to ``/``
  - removed the optional property `detail/items/ctx` from the response with the `422` status
  - removed the optional property `detail/items/input` from the response with the `422` status
  - the `password` request property type/format was generalized from `string`/`password` to `string`/``

[Change history](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/changes/authentication/login/post.md)

---

[API](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api.md) · [All operations](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/uhh-lt/discourse-analysis-tool-suite-api/revisions/a84d27ef7a0d/schema)
