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

# POST /users/login

`POST /users/login`

## Request body

- LoginUserDto
  - `email` string, required
  - `password` string, required

## Response `201`

- LoginResponseDto
  - `accessToken` string, required
  - `user` SanitizedUserResponseDto, required
    - `id` string, required
    - `email` string, required
    - `fullName` string, required
    - `profilePictureUrl` string, nullable, required
    - `verifiedAt` string, date-time, nullable, required

## Other responses

- `401` — The provided credentials are invalid or the user does not have a password configured.
- `500` — Something went wrong.

## Changes

- **2023-10-09** `b085973a5e75` — 1 info
  - added the required property `user/profilePictureUrl` to the response with the `201` status
- **2023-09-21** `1e128b24bf2f` — 1 breaking
  - removed the required property `user/hasPassword` from the response with the `201` status
- **2023-09-21** `b44de8ef8549` — 1 breaking, 1 info
  - removed the required property `user/isVerified` from the response with the `201` status
  - added the required property `user/verifiedAt` to the response with the `201` status
- **2023-09-20** `6610666a572e` — 2 breaking, 2 info
  - removed the required property `user/profilePictureUrl` from the response with the `201` status
  - removed the required property `user/verifiedAt` from the response with the `201` status
  - added the required property `user/hasPassword` to the response with the `201` status
  - added the required property `user/isVerified` to the response with the `201` status

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

---

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