---
title: "Create email one-time passcode"
method: PUT
path: "/api/v1/user/me/email/otp"
tags: ["My Account"]
---

# Create email one-time passcode

`PUT /api/v1/user/me/email/otp`

Create a new one-time passcode for the current user's primary email.
The user will receive an email with the passcode.

## Response `200`

Ok

- ApiEmailStatusResponse — Shows the current verification status of an email address
  - `results` EmailStatusExpiring, required — Verification status of an email address
    - `otp` object
      - `numberOfAttempts` number, double, required — Number of times the passcode has been attempted
      - `createdAt` string, date-time, required — Time that the passcode was created
      - `isMaxAttempts` boolean, required
      - `isExpired` boolean, required
      - `expiresAt` string, date-time, required
    - `isVerified` boolean, required
    - `email` string, required
  - `status` 'ok', required

## Other responses

- `default` — Error

---

[API](https://skmtc.net/lightdash/apis/lightdash-api.md) · [All operations](https://skmtc.net/lightdash/apis/lightdash-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lightdash/lightdash-api/versions/40c933755c9a/schema)
