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

# Resend verification code

> Send a fresh one-time code when the shopper did not receive or lost the previous message.

## Request

```http theme={null}
POST /auth/resend-otp
Content-Type: application/json
x-shop-id: {shopId}
{
  "email": "jane@example.com"
}
```

## Headers

| Header         | Type   | Description                                            |
| -------------- | ------ | ------------------------------------------------------ |
| `Content-Type` | string | Always set to `application/json`.                      |
| `x-shop-id`    | string | Shop identifier to associate the user with your store. |

## Body parameters

| Field   | Type   | Required | Description                                        |
| ------- | ------ | -------- | -------------------------------------------------- |
| `email` | string | Yes      | Email address associated with the shopper account. |

## Successful response

```json theme={null}
{
    "status": 200,
    "success": true,
    "message": "New verification code sent to your email",
    "data": {
        "email": "jane@example.com"
    }
}
```

<Check>
  You see `success: true`, confirming that the resend request was accepted and
  the new code is on the way.
</Check>

## Error responses

```json theme={null}
{
    "status": 404,
    "success": false,
    "message": "User not found",
    "data": {}
}
```

```json theme={null}
{
    "status": 500,
    "success": false,
    "message": "Failed to send verification email. Please try again.",
    "data": {}
}
```


## OpenAPI

````yaml POST /auth/resend-otp
openapi: 3.1.0
info:
  title: Salesive Store API
  description: >-
    REST interface for querying products, categories, and merchandising banners
    exposed by Salesive storefronts.
  version: 1.0.0
servers:
  - description: Production
    url: https://store.salesive.com/api/v1
security:
  - BearerAuth: []
    ShopIdHeader: []
paths:
  /auth/resend-otp:
    post:
      summary: Resend verification code
      description: >-
        Send a fresh one-time code when the shopper did not receive or lost the
        previous message.
      parameters:
        - $ref: '#/components/parameters/XShopIdHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - email
              properties:
                email:
                  type: string
                  format: email
                  description: Email address associated with the shopper account.
      responses:
        '200':
          description: Verification code resent successfully.
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - success
                  - message
                  - data
                properties:
                  status:
                    type: integer
                  success:
                    type: boolean
                  message:
                    type: string
                  data:
                    type: object
                    required:
                      - email
                    properties:
                      email:
                        type: string
                        format: email
        '404':
          description: Shopper account not found.
        '500':
          description: Failed to send verification email.
      security: []
components:
  parameters:
    XShopIdHeader:
      name: x-shop-id
      in: header
      description: >-
        Optional identifier that scopes responses to a specific storefront when
        the referer cannot be inferred.
      required: false
      schema:
        type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT issued by the Salesive Store API for authenticated shoppers.
    ShopIdHeader:
      type: apiKey
      in: header
      name: x-shop-id
      description: >-
        Optional storefront identifier sent as a header to scope responses to a
        specific shop. Try It requests remember this value once provided.

````