---
title: "Email the user a sign-in code"
method: POST
path: "/auth/request"
tags: ["account"]
---

# Email the user a sign-in code

`POST /auth/request`

## Request

- Base URL: `https://account.close.city`
- URL: `https://account.close.city/auth/request`
- Auth: none declared

Send a magic link and a six-digit code to the user's email. The user reads the code from their own inbox and gives it to the client — that human-in-the-loop step is deliberate. New accounts receive a one-time grant of free API tokens on first sign-in (see GET /v1/plans on api.close.city). Rate-limited per email address and per IP.

## Request body

- object
  - `email` string, email, required

## Response `200`

Code sent if the address is valid.

## Other responses

- `400`: Rejected email address.
- `429`: Too many requests for this email or IP.

---

[API](https://skmtc.dev/close-city/apis/close-api.md) · [All operations](https://skmtc.dev/close-city/apis/close-api/llms.txt) · [OpenAPI document](https://skmtc.dev/close-city/apis/close-api/revisions/a70e7c778d65?raw)
