> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowmaticai.in/llms.txt
> Use this file to discover all available pages before exploring further.

# POST /api/auth/resend-otp — Resend Email Verification OTP

> POST /api/auth/resend-otp — Resend a new 6-digit OTP to your email when your previous verification code has expired or did not arrive.

OTP verification codes sent during registration are time-sensitive and expire after a short window. If your original code has expired before you could use it, or if it never arrived due to a mail delivery delay, use this endpoint to request a fresh one. Flowmatic will generate a new 6-digit OTP and deliver it to the email address associated with your pending registration.

<Note>
  Each time you call this endpoint, the previously issued OTP is invalidated and replaced by a new one. Only the most recently issued code will be accepted by [POST /api/auth/verify-email](/api-reference/auth/verify-email). If you do not receive an email within a few minutes, check your spam or junk folder before requesting another resend.
</Note>

## Endpoint

```
POST https://api.flowmatic.io/api/auth/resend-otp
```

## Request Body

<ParamField body="email" type="string" required>
  The email address associated with the unverified Flowmatic account. This must be the same address used during [registration](/api-reference/auth/register). If the account has already been verified, this endpoint will return an error.
</ParamField>

## Example Request

<Tabs>
  <Tab title="Request">
    ```bash theme={null}
    curl -X POST https://api.flowmatic.io/api/auth/resend-otp \
      -H "Content-Type: application/json" \
      -d '{
        "email": "alice@example.com"
      }'
    ```
  </Tab>

  <Tab title="Request Body">
    ```json theme={null}
    {
      "email": "alice@example.com"
    }
    ```
  </Tab>

  <Tab title="Response">
    ```json theme={null}
    {
      "message": "A new verification OTP has been sent to alice@example.com.",
      "email": "alice@example.com"
    }
    ```
  </Tab>
</Tabs>

## Response Fields

<ResponseField name="message" type="string">
  A confirmation message indicating that a new OTP has been dispatched to the provided email address.
</ResponseField>

<ResponseField name="email" type="string">
  The email address that the new OTP was delivered to. Use this same address when calling [POST /api/auth/verify-email](/api-reference/auth/verify-email) to complete verification.
</ResponseField>

## Next Steps

Once you receive the new OTP in your inbox, proceed to [POST /api/auth/verify-email](/api-reference/auth/verify-email) to activate your account and retrieve your `accessToken` and `refreshToken`.
