---
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

---

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