---
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
    - `isVerified` boolean, required
    - `hasPassword` boolean, required

## Other responses

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

## Changes

- **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/6610666a572e/schema)
