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

# Send sign-in code

> Send a code to the user's email address for sign-in.



## OpenAPI

````yaml /openapi/client.json post /auth/otp/send-sign-in-code
openapi: 3.1.0
info:
  title: Hexclave REST API
  version: 1.0.0
  description: >-
    The Hexclave REST API. All request headers are documented as canonical
    `X-Hexclave-*`; the equivalent `X-Stack-*` aliases are accepted on every
    endpoint for backwards compatibility. Response headers
    `X-Hexclave-actual-status`, `X-Hexclave-known-error`, and
    `X-Hexclave-request-id` are emitted alongside their legacy `X-Stack-*`
    equivalents.
servers:
  - url: https://api.hexclave.com/api/v1
    description: Hexclave REST API
security: []
paths:
  /auth/otp/send-sign-in-code:
    post:
      tags:
        - OTP
      summary: Send sign-in code
      description: Send a code to the user's email address for sign-in.
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  example: johndoe@example.com
                  description: The email to sign in with.
                callback_url:
                  type: string
                  example: https://example.com/handler/magic-link-callback
                  description: >-
                    The base callback URL to construct the magic link from. A
                    query parameter `code` with the verification code will be
                    appended to it. The page should then make a request to the
                    `/auth/otp/sign-in` endpoint.
                bot_challenge_token:
                  type: string
                bot_challenge_phase:
                  type: string
                  enum:
                    - invisible
                    - visible
                bot_challenge_unavailable:
                  type: string
                  enum:
                    - 'true'
              required:
                - email
                - callback_url
              example:
                email: johndoe@example.com
                callback_url: https://example.com/handler/magic-link-callback
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  nonce:
                    type: string
                    example: u3h6gn4w24pqc8ya679inrhjwh1rybth6a7thurqhnpf2
                    description: >-
                      A token that must be stored temporarily and provided when
                      verifying the 6-digit code
                required:
                  - nonce

````