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

# Request a customer sign-in code



## OpenAPI

````yaml /api-reference/openapi.yaml post /api/commerce/auth/request
openapi: 3.1.0
info:
  title: VaultGraph Portal API
  version: 0.1.1
  description: Server-to-server endpoints exposed by the VaultGraph portal (beta).
servers:
  - url: https://app.vaultgraph.com
    description: Production
security: []
tags:
  - name: Shops
    description: Shop management endpoints.
  - name: Commerce
    description: >-
      Deployment-scoped commerce endpoints (catalog, checkout, order).
      Authenticated with a deployment (`dk_`) API key. Internal plumbing between
      the hosted MCP server and the merchant adapter — merchants integrate via
      the MCP, not these REST routes.
paths:
  /api/commerce/auth/request:
    post:
      tags:
        - Commerce
      summary: Request a customer sign-in code
      operationId: requestAuthentication
      requestBody:
        required: true
        description: >-
          The customer's account email address. The store delivers a one-time
          code to it out of band.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthRequestBody'
      responses:
        '200':
          description: A pending sign-in challenge
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/AuthChallenge'
        '400':
          description: Invalid request body
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    AuthRequestBody:
      type: object
      required:
        - email
      properties:
        email:
          type: string
          format: email
          description: The customer's account email address.
    AuthChallenge:
      type: object
      description: >-
        A pending sign-in challenge. Echo `challenge_id`, together with the
        one-time code the customer received, to the verify endpoint.
      required:
        - challenge_id
      properties:
        challenge_id:
          type: string
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        detail:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````