---
title: "Email a six-digit sign-in code"
method: POST
path: "/auth/codes"
tags: ["Auth"]
---

# Email a six-digit sign-in code

`POST /auth/codes`

## Request

- Base URL: `https://bodylab.lol/api/v1`
- URL: `https://bodylab.lol/api/v1/auth/codes`
- Auth: none required

A new code supersedes any outstanding one. Codes expire after 10 minutes and allow five guesses. The first verified code creates the account. While sign-up runs a waitlist, an address with no account that hasn't been let in yet gets no code: it's added to the waitlist and answered SIGNUP_WAITLISTED, identically whether or not it was already waiting. Show the message as confirmation, not as a failure.

## Headers

- `X-Client-Platform` string
- `X-Client-Version` string

## Request body

- object
  - `email` string, required

## Response `204`

No content.

## Other responses

- `403`: Error: SIGNUP_CLOSED, SIGNUP_WAITLISTED.
- `422`: Error: INVALID_EMAIL.
- `429`: Error: TOO_MANY_CODES.

---

[API](https://skmtc.dev/bodylab/apis/body-lab-api.md) · [All operations](https://skmtc.dev/bodylab/apis/body-lab-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bodylab/apis/body-lab-api/revisions/544c201eaf88?raw)
