---
title: "Login with email and password"
method: POST
path: "/auth/login"
tags: ["Auth"]
---

# Login with email and password

`POST /auth/login`

## Request

- Base URL: `https://hoghogh.ai/api/v1`
- URL: `https://hoghogh.ai/api/v1/auth/login`
- Auth: none required

## Request body

- object
  - `email` string, email, required
  - `password` string, required

## Response `200`

Login successful

- object
  - `user` User
    - `id` string, uuid
    - `email` string, email
    - `name` string
    - `role` 'lawyer' | 'paralegal' | 'admin'
    - `subscription` 'free' | 'starter' | 'pro' | 'enterprise'
    - `avatar_url` string, nullable
    - `tokens_remaining` integer
    - `trial_active` boolean
    - `trial_ends_at` string, date-time, nullable
  - `accessToken` string
  - `refreshToken` string

## Other responses

- `401`: Invalid credentials
- `429`: Too many requests

---

[API](https://skmtc.dev/hoghogh/apis/chistara-api.md) · [All operations](https://skmtc.dev/hoghogh/apis/chistara-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hoghogh/apis/chistara-api/revisions/457df37a06f7?raw)
