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

# Logout Instance

> Gracefully execute remote instance logout workflows to sever session sockets, clear local instance configurations, and detach mobile nodes securely from your instance framework.



## OpenAPI

````yaml DELETE /instance/logout
openapi: 3.0.3
info:
  title: Wachat Enterprise API
  description: >
    Welcome to the official Wachat API reference. Wachat provides
    developer-friendly, ultra-reliable infrastructure to scale your WhatsApp
    communications programmatically.


    Easily deploy automated messaging pipelines, orchestrate interactive
    customer engagement patterns, verify phone numbers instantly, and control
    containerized WhatsApp instances via a secure, production-grade REST
    architecture.
  version: 1.0.0
servers:
  - url: https://app.wachat.net/api/v1
    description: Live Production Gateway
security:
  - bearerAuth: []
paths:
  /instance/logout:
    delete:
      tags:
        - Session Lifecycle Infrastructure
      summary: Terminate Instance Authentication Session
      description: >-
        Gracefully execute remote instance logout workflows to sever session
        sockets, clear local instance configurations, and detach mobile nodes
        securely from your instance framework.
      parameters:
        - in: query
          name: instanceName
          required: true
          schema:
            type: string
          description: >-
            Name string tracking handle mapping your connected active instance
            container profile.
      responses:
        '200':
          description: Token storage arrays safely destroyed and instance safely offline.
        '400':
          description: Missing instanceName query parameter.
        '401':
          description: Missing or invalid API key.
        '404':
          description: Instance not found for this API key.
        '502':
          description: Failed to logout the instance on the Wachat API.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Authenticate your integration payloads by injecting your premium secure
        Wachat Account API Private Secret Key inside standard Authorization
        Bearer header vectors.

````