> ## 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.

# Test Chatwoot credentials

> Dry-run of Chatwoot credentials WITHOUT creating an inbox or writing anything. Omit userAccessToken to reuse the saved token. Returns { ok, checks: [...] }.



## OpenAPI

````yaml openapi.json POST /v1/chatwoot/test
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/test:
    post:
      tags:
        - Chatwoot
      summary: Test Chatwoot credentials
      description: >-
        Dry-run of Chatwoot credentials WITHOUT creating an inbox or writing
        anything. Omit userAccessToken to reuse the saved token. Returns { ok,
        checks: [...] }.
      operationId: post_chatwoot_test
      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...
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - instanceUrl
                - accountId
              properties:
                instanceUrl:
                  type: string
                  description: Base URL of the Chatwoot instance.
                  example: https://app.chatwoot.com
                accountId:
                  type: string
                  description: Chatwoot account id (numeric string).
                  example: '1'
                userAccessToken:
                  type: string
                  description: Chatwoot access token; omit to reuse the saved token.
      responses:
        '200':
          description: Credential check result
          content:
            application/json:
              example:
                ok: true
                checks:
                  - name: Credenciais aceitas pela conta
                    ok: true
                  - name: Permissão de acesso à conta
                    ok: true
        '400':
          description: Validation error, or Chatwoot rejected the credentials
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Validation error
        '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)

````