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

# Login

`POST /auth/login`

## Request

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

Authenticate with Firebase ID token and establish session.

The frontend obtains an ID token after Firebase authentication (e.g., Google Sign-In)
and sends it here. We verify the token with Firebase, create or find the user,
and establish a server-side session.

## Request body

- LoginRequest: Request body for login endpoint.
  - `id_token` string, required

## Response `200`

Successful Response

- LoginResponse: Response from login endpoint.
  - `user_id` integer, required
  - `email` string, required
  - `name` string, nullable
  - `email_verified` boolean

## Other responses

- `422`: Validation Error

---

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