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

# User login

`POST /login`

## Request body

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

- **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 changed from `string` to no type
  - 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 changed from no type to `object`
  - the `email` request property's minLength was increased from `0` to `3`
  - the `email` request property type changed from no type 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/36db91c22909/schema)
