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

# Confirm passkey pairing code

> Fallback / compatibility endpoint. wsapi-app now sends the confirmation automatically as
soon as the status becomes `confirmation_required` (`confirmationSent` is `true` in
`GET /session/passkey`); the user only compares `confirmationCode` and approves on their
phone, and the link completes by itself. Clients do not need to call this.

If the confirmation was already sent, returns 204 without doing anything. Otherwise
sends it. Returns 409 if no step is in `confirmation_required` or the step has expired.




## OpenAPI

````yaml /openapi/wsapi-api.yaml post /session/passkey/confirm
openapi: 3.0.3
info:
  title: WSAPI - WhatsApp API
  description: >-
    RESTful HTTP API for WhatsApp via whatsmeow. Supports multi-instance
    connections, connections, webhook event delivery, and HMAC-SHA256 signing.
    Includes self-service instance management endpoints served by the API
    Gateway.
  version: 2.0.0
servers:
  - url: https://api.wsapi.chat
    description: WSAPI API
security:
  - ApiKeyAuth: []
tags:
  - name: Account
    description: >-
      Customer account management — instances, subscriptions, and default
      settings (CustomerApiKey auth)
  - name: Session
    description: WhatsApp session management (login, logout, status)
  - name: Messages
    description: Send and manage WhatsApp messages
  - name: Groups
    description: Group management
  - name: Communities
    description: Community management
  - name: Contacts
    description: Contact lookup and management
  - name: Users
    description: Own account management, user lookup, and profile information
  - name: Media
    description: Media download
  - name: Chats
    description: Chat listing, info, settings, and management
  - name: Calls
    description: Call management
  - name: Newsletters
    description: Newsletter/channel management
  - name: Status
    description: Status/stories posting
paths:
  /session/passkey/confirm:
    post:
      tags:
        - Session
      summary: Confirm passkey pairing code
      description: >
        Fallback / compatibility endpoint. wsapi-app now sends the confirmation
        automatically as

        soon as the status becomes `confirmation_required` (`confirmationSent`
        is `true` in

        `GET /session/passkey`); the user only compares `confirmationCode` and
        approves on their

        phone, and the link completes by itself. Clients do not need to call
        this.


        If the confirmation was already sent, returns 204 without doing
        anything. Otherwise

        sends it. Returns 409 if no step is in `confirmation_required` or the
        step has expired.
      operationId: confirmPasskey
      parameters:
        - $ref: '#/components/parameters/XInstanceId'
      responses:
        '204':
          description: Confirmation sent to WhatsApp, or it had already been sent (no-op)
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          $ref: '#/components/responses/NoPasskeyPending'
        '502':
          description: WhatsApp rejected the confirmation. The state becomes `error`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  parameters:
    XInstanceId:
      name: X-Instance-Id
      in: header
      required: true
      description: The ID of the WhatsApp instance to use
      schema:
        type: string
        default: '{{instanceId}}'
  responses:
    Unauthorized:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            status: 401
            detail: unauthorized
    NoPasskeyPending:
      description: No matching passkey verification step is pending (or it has expired).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            status: 409
            detail: no passkey verification pending
    ServiceUnavailable:
      description: Instance not available (not connected or service is nil)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            status: 503
            detail: instance not available
  schemas:
    Error:
      type: object
      description: Standard error response returned by all API endpoints
      required:
        - detail
        - status
      properties:
        detail:
          type: string
          description: Human-readable error message
          example: invalid request body
        status:
          type: integer
          description: HTTP status code
          example: 400
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        Instance or customer-level API key. Either the instance's own API key or
        the customer's API key is accepted. Must be paired with the
        X-Instance-Id header to identify the target instance.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.