---
title: "Authenticate user with email and password."
method: POST
path: "/v1/login"
tags: ["Auth"]
---

# Authenticate user with email and password.

`POST /v1/login`

## Request body

- object
  - `email` string
  - `password` string

## Response `200`

- object
  - `data` object
    - `created_at` string
    - `email` string
    - `first_name` string
    - `id` string
    - `kratos_id` string
    - `last_name` string
    - `roles` string
    - `updated_at` string
    - `username` string
  - `status` 'success'

## Other responses

- `400` — Fail due to user invalid input
- `401` — Fail due to user invalid input
- `500` — Unexpected error occurred

## Changes

- **2024-02-22** `c4775ce96bb0` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/improwised/apis/untitled-api/changes/v1/login/post.md)

---

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