---
title: "Login user"
method: POST
path: "/v1/auth/login"
tags: ["Authentication"]
---

# Login user

`POST /v1/auth/login`

## Request body

- LoginDto
  - `email` string, email, required — Email address of the account
  - `password` string, required — Account password

## Response `200`

User logged in successfully

- AuthResponseDto
  - `success` boolean, required — Indicates if the request was successful
  - `message` string, required — Human readable message
  - `data` object, required — Response data
    - `accessToken` string, required
    - `user` object, required
      - `id` string, uuid, required — User unique ID
      - `email` string, email, required — User email
      - `name` string, required — Name of user
      - `image` string, uri, nullable — Image of user
      - `isEmailVerified` boolean, required — Whether the user has verified their email address
      - `role` 'user' | 'admin' | 'contractor', required — Authorization role for the user
  - `timestamp` string, date-time, required — Timestamp of the response

---

[API](https://skmtc.dev/maket/apis/virtual-architect-api.md) · [All operations](https://skmtc.dev/maket/apis/virtual-architect-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/maket/virtual-architect-api/revisions/7635e6f94477/schema)
