---
title: "Email a 6-digit sign-in code"
method: POST
path: "/v1/auth/otp/request"
tags: ["auth"]
---

# Email a 6-digit sign-in code

`POST /v1/auth/otp/request`

## Request

- Base URL: `https://api.smartloop.ai`
- URL: `https://api.smartloop.ai/v1/auth/otp/request`
- Auth: none declared

Sign-in only: never creates an account. Codes last 10 minutes; a new one can be requested after 30 seconds. Errors carry `detail.code`: OTP_INVALID_EMAIL (422), OTP_NO_ACCOUNT (404), OTP_ACCOUNT_INACTIVE (403), OTP_RATE_LIMITED (429), OTP_SEND_FAILED (502).

## Request body

- object
  - `email` string, required

## Response `200`

Code sent

- OTPSent
  - `sent` true, required
  - `expires_in_minutes` integer, required

## Other responses

- `403`: OTP_ACCOUNT_INACTIVE
- `404`: OTP_NO_ACCOUNT
- `422`: OTP_INVALID_EMAIL, or a malformed body
- `429`: OTP_RATE_LIMITED
- `502`: OTP_SEND_FAILED

---

[API](https://skmtc.dev/smartloop/apis/smartloop-platform-api.md) - [All operations](https://skmtc.dev/smartloop/apis/smartloop-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/smartloop/apis/smartloop-platform-api/revisions/17a787eabbe8?raw)
