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

# Log out

> **Unlinks** the device from WhatsApp and destroys the session. Unlike `disconnect`, the connection does **not** come back with `reconnect`: to use it again you must pair again (`pair-qr` or `pair-code`). Does not delete the instance.



## OpenAPI

````yaml /en/api-reference/openapi.json post /instance/logout
openapi: 3.1.0
info:
  title: Zapfy API
  description: >-
    Multi-tenant WhatsApp API. Send messages and manage webhooks through a
    single surface.
  version: 1.0.0
servers:
  - url: https://api.zapfy.io/v1
security:
  - accountToken: []
paths:
  /instance/logout:
    post:
      tags:
        - Instance
      summary: Log out
      description: >-
        **Unlinks** the device from WhatsApp and destroys the session. Unlike
        `disconnect`, the connection does **not** come back with `reconnect`: to
        use it again you must pair again (`pair-qr` or `pair-code`). Does not
        delete the instance.
      responses:
        '200':
          $ref: '#/components/responses/ActionDone'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
        - instanceToken: []
components:
  responses:
    ActionDone:
      description: Action performed.
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                $ref: '#/components/schemas/SuccessResult'
    Error:
      description: Error.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Instance not found
  schemas:
    SuccessResult:
      type: object
      properties:
        success:
          type: boolean
          example: true
          description: Always `true` when the action completed.
  securitySchemes:
    accountToken:
      type: http
      scheme: bearer
      description: Account token (`zpfy_acct_...`) — manages instances and webhooks.
    instanceToken:
      type: http
      scheme: bearer
      description: Instance token (`zpfy_inst_...`) — sends messages.

````