---
title: "Login"
method: POST
path: "/api/v1/login"
tags: ["Chat"]
---

# Login

`POST /api/v1/login`

## Request

- Base URL: `https://backend.caspr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.caspr.ai/api/v1/login`
- Auth: none declared

User login endpoint

## Query parameters

- `chat_id` string, nullable

## Request body

- LoginRequest
  - `email` string, email, required
  - `password` string, required

## Response `200`

Successful Response

- LoginResponse
  - `success` boolean
  - `token` string, required
  - `refresh_token` string, required
  - `user_id` string, required
  - `user_name` string, required
  - `t_c_verified` boolean, required
  - `onboarding_completed` boolean, required

## Other responses

- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/caspr/apis/casper-api.md) - [All operations](https://skmtc.dev/caspr/apis/casper-api/llms.txt) - [OpenAPI document](https://skmtc.dev/caspr/apis/casper-api/revisions/f9765e3aa00c?raw)
