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

# Disconnect Chatwoot

> Removes the integration and the native provider webhook (idempotent). Pass deleteInbox=true to ALSO delete the remote Chatwoot inbox.



## OpenAPI

````yaml openapi.json DELETE /v1/chatwoot
openapi: 3.1.0
info:
  title: Pilot Status API
  version: 1.0.0
  license:
    name: Pilot Status Terms of Service
    url: https://pilotstatus.com.br/terms
  description: >-
    Public REST API for Pilot Status. Authenticate with the `x-api-key: ps_...`
    header (or `x-api-key-id`). Base URL: https://pilotstatus.com.br
servers:
  - url: https://pilotstatus.com.br
security:
  - apiKey: []
  - apiKeyId: []
paths:
  /v1/chatwoot:
    delete:
      tags:
        - Chatwoot
      summary: Disconnect Chatwoot
      description: >-
        Removes the integration and the native provider webhook (idempotent).
        Pass deleteInbox=true to ALSO delete the remote Chatwoot inbox.
      operationId: delete_chatwoot
      parameters:
        - name: x-whatsapp-number-id
          in: header
          required: false
          description: >-
            Scopes to a single number (required for tenant keys / per-number
            OAuth grants).
          schema:
            type: string
          example: num_01HZX...
        - name: deleteInbox
          in: query
          required: false
          description: true = also delete the remote Chatwoot inbox (default false).
          schema:
            type: boolean
          example: false
      responses:
        '200':
          description: Disconnected status
          content:
            application/json:
              example:
                connected: false
                status: disconnected
                enabled: false
                inboxId: null
                instanceUrl: null
                accountId: null
                hasToken: false
                channelMode: auto
                lastError: null
                lastErrorCode: null
                lastSyncAt: null
        '401':
          description: Missing or invalid `x-api-key` / `x-api-key-id` header
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Unauthorized
        '404':
          description: The number does not belong to this tenant
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: WhatsApp number not found
                code: NUMBER_NOT_FOUND
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Too many requests
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Your ps_ API key
    apiKeyId:
      type: apiKey
      in: header
      name: x-api-key-id
      description: API key id (alternative to x-api-key)

````