---
title: "Request Email Code"
method: POST
path: "/v1/web/auth/request-code"
tags: ["Web Auth"]
---

# Request Email Code

`POST /v1/web/auth/request-code`

## Request body

- RequestEmailCode
  - `email` string, required
  - `purpose` 'login' | 'signup'
  - `captcha_token` string, nullable

## Response `201`

Successful Response

- EmailCodeRequested
  - `challenge_id` string, uuid, required
  - `expires_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/hydraai/apis/hydraai-api.md) · [All operations](https://skmtc.dev/hydraai/apis/hydraai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hydraai/hydraai-api/revisions/e628fe769ab4/schema)
