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

# Register (email OTP) - resend code

> Resends a 6-digit OTP for a pending user.



## OpenAPI

````yaml api-reference/openapi.yaml post /api/v1/register-email-code/resend
openapi: 3.0.3
info:
  title: Flowxi API Documentation
  version: 1.0.0
servers:
  - url: https://api.flowxi.app
security:
  - bearerAuth: []
tags:
  - name: Health
    description: Service healthcheck.
  - name: Registration
    description: Registration flows (magic link + email OTP).
  - name: Auth
    description: Login and session management.
  - name: Two-factor authentication
    description: TOTP 2FA endpoints (login verification + manage 2FA).
  - name: Devices
    description: Session/device listing and revocation.
  - name: Me
    description: Profile of the authenticated user (Sanctum session).
paths:
  /api/v1/register-email-code/resend:
    post:
      tags:
        - Registration
      summary: Register (email OTP) - resend code
      description: Resends a 6-digit OTP for a pending user.
      operationId: postApiV1RegisterEmailCodeResend
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - email
              properties:
                email:
                  type: string
                  format: email
                  example: gbailey@example.net
      responses:
        '200':
          description: OTP resent.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OtpResentResponse'
        '404':
          description: User not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                code: USER_NOT_FOUND
                message: User not found.
        '409':
          description: Email already active.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                code: EMAIL_ALREADY_ACTIVE
                message: Email already active.
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
      security: []
components:
  schemas:
    OtpResentResponse:
      allOf:
        - $ref: '#/components/schemas/ApiOkBase'
      example:
        code: OTP_RESENT
        message: OTP resent.
    ApiError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Machine-readable error code.
          example: UNAUTHENTICATED
        message:
          type: string
          description: Localized, user-facing message.
          example: Unauthenticated.
    ApiOkBase:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          example: OK
        message:
          type: string
          example: OK
  responses:
    RateLimited:
      description: Rate limited.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          example:
            code: RATE_LIMITED
            message: Too many requests.
    ServerError:
      description: Server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          example:
            code: SERVER_ERROR
            message: Server error.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sanctum

````