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

# Login

`POST /api/auth/login`

## Request

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

Authenticate user and return tokens

Validates credentials, checks user/org status, returns access + refresh tokens

## Request body

- LoginRequest: User login credentials
  - `email` string, email, required
  - `password` string, required

## Response `200`

Successful Response

- AuthResponse: Successful authentication response
  - `access_token` string, required
  - `refresh_token` string, required
  - `token_type` string
  - `user` object, required
  - `organization` object, required
  - `joined_existing_org` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api.md) · [All operations](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api/revisions/c8ad03e900ea?raw)
