---
title: "User login"
method: POST
path: "/login"
tags: ["Users"]
---

# User login

`POST /login`

## Request body

- Credentials
  - `email` string — An e-mail address.
  - `password` string

## Response `200`

Successful response - the JWT token

- JwtToken — A JWT bearer token to authorize requests - it is currently valid for 24 hours.
  - `token` string

## Changes

- **2023-01-17** `fa2f5529ce77` — 1 breaking
  - the request's body type/format changed from `object`/`` to ``/``
- **2020-11-30** `5fa0143c38e1` — 1 info
  - added the media type `application/json` for the response with the status `200`
- **2020-08-13** `bca9ebb2d24a` — 2 breaking, 1 info
  - added `#/components/schemas/Email` to the `email` request property `allOf` list
  - the `email` request property type/format changed from `string`/`` to ``/``
  - the `email` request property's minLength was decreased from `3` to `0`
- **2020-08-13** `ddfd4e39c98d` — 4 breaking, 1 warning
  - the request's body type/format changed from ``/`` to `object`/``
  - the `email` request property's minLength was increased from `0` to `3`
  - the `email` request property type/format changed from ``/`` to `string`/``
  - removed the media type `application/json` for the response with the status `200`
  - …1 more

[Change history](https://skmtc.dev/kartevonmorgen/apis/openfairdb-api/changes/login/post.md)

---

[API](https://skmtc.dev/kartevonmorgen/apis/openfairdb-api.md) · [All operations](https://skmtc.dev/kartevonmorgen/apis/openfairdb-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kartevonmorgen/openfairdb-api/revisions/4c454390b099/schema)
