---
title: "Send a six-digit verification code"
method: POST
path: "/v1/auth/code"
tags: ["Authentication"]
---

# Send a six-digit verification code

`POST /v1/auth/code`

## Request

- Base URL: `https://api.scripthaul.com`
- URL: `https://api.scripthaul.com/v1/auth/code`
- Auth: none required

## Request body

- AuthCodeRequest
  - `email` string, email, required
  - `turnstile_token` string: Cloudflare Turnstile token from the sign-up form (action signup). Required in production: sign-up happens in the browser on api.scripthaul.com, not from scripts. Missing or invalid tokens answer 403 TurnstileFailed.

## Response `200`

Code accepted for delivery

- Ok
  - `ok` unknown, required

## Other responses

- `400`: Typed API error
- `401`: Typed API error
- `403`: Typed API error
- `429`: Typed API error

---

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