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

> ## Agent Instructions
> Integrating Pilot Status end to end? Follow https://docs.pilotstatus.com.br/guides/integrate-with-ai.md (pt-BR: https://docs.pilotstatus.com.br/pt-BR/guides/integrate-with-ai.md). No step requires contacting support: every credential is shown in the dashboard or in an API response, and a lost one is regenerated, not recovered.
> Webhook signing secret: shown ONCE in the Signing secret window right after creating the webhook on /webhooks, and in the `secret` field of the POST /v1/webhooks response (MCP: webhooks_create). Lost it: Edit Webhook → Generate a new secret, POST /v1/webhooks/{id}/rotate-secret, or webhooks_rotate_secret (the old one stops working at once). Verify `x-pilot-status-signature` = hex HMAC-SHA256 of the raw request body keyed with that secret.
> Meta verify token (number connected with the user's own Meta app credentials): Meta Number Created! window after connecting, then the number's card on Numbers (workspace Owner), or webhook.verifyToken in the POST /v1/numbers/meta response. It is not the webhook signing secret.
> REST auth: `x-api-key: ps_...` header, never Authorization: Bearer. MCP: https://mcp.pilotstatus.com.br/mcp (148 tools, OAuth 2.1 or x-api-key); Code Mode: https://mcp.pilotstatus.com.br/code. Destructive MCP tools return a preview and a confirm_token: show the preview and call again only after the user's explicit yes. Over OAuth, revealing or creating ps_ API keys is workspace Owner only.

# Resume a paused webhook

> Resumes delivery to a destination that was **paused automatically** (`circuitOpen: true`). Delivery to a webhook is paused when its success rate is at or below 20% over its last 50 deliveries (after at least 20); while paused, new events are held (`heldCount`) for up to 48 hours, at most 20,000 per webhook — beyond that they are lost (`droppedCount`) — and one delivery every 5 minutes is let through as a probe, whose success ends the pause on its own.

This call ends the pause immediately and releases up to 1,000 held events, spaced 200 ms apart; the rest (`stillHeld`) go out on the hourly retry cycle. Answers `{ ok, released, stillHeld }` plus the current pause status. Idempotent: on a webhook that is already delivering it answers `200` with `released: 0`. Not the same as `active` — reactivating does not turn a webhook you deactivated back on. No request body.

Permissions: `webhooks:manage` (Owner or Admin with an account key or OAuth/MCP token). Same number scope as `GET /v1/webhooks/{id}`.



## OpenAPI

````yaml openapi.json POST /v1/webhooks/{id}/reactivate
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/webhooks/{id}/reactivate:
    post:
      tags:
        - Webhooks
      summary: Resume a paused webhook destination
      description: >-
        Resumes delivery to a destination that was **paused automatically**
        (`circuitOpen: true`). Delivery to a webhook is paused when its success
        rate is at or below 20% over its last 50 deliveries (after at least 20);
        while paused, new events are held (`heldCount`) for up to 48 hours, at
        most 20,000 per webhook — beyond that they are lost (`droppedCount`) —
        and one delivery every 5 minutes is let through as a probe, whose
        success ends the pause on its own.


        This call ends the pause immediately and releases up to 1,000 held
        events, spaced 200 ms apart; the rest (`stillHeld`) go out on the hourly
        retry cycle. Answers `{ ok, released, stillHeld }` plus the current
        pause status. Idempotent: on a webhook that is already delivering it
        answers `200` with `released: 0`. Not the same as `active` —
        reactivating does not turn a webhook you deactivated back on. No request
        body.


        Permissions: `webhooks:manage` (Owner or Admin with an account key or
        OAuth/MCP token). Same number scope as `GET /v1/webhooks/{id}`.
      operationId: post_webhooks_id_reactivate
      parameters:
        - name: id
          in: path
          required: true
          description: Webhook id.
          schema:
            type: string
          example: wh_01HZX...
        - name: x-whatsapp-number-id
          in: header
          required: false
          description: Scopes to a single number (required for per-number OAuth grants).
          schema:
            type: string
          example: num_01HZX...
        - name: x-workspace-id
          in: header
          required: false
          schema:
            type: string
          description: >-
            Only with an account key (`ps_account_`): the workspace to act on,
            from `GET /v1/workspaces`. Without it an account key gets `400
            WORKSPACE_ID_REQUIRED`.
          example: cmh2a9z8y0002ws8example1q
      responses:
        '200':
          description: Pause ended
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    description: Always `true`.
                  released:
                    type: integer
                    description: Held events released by this call.
                  stillHeld:
                    type: integer
                    description: >-
                      Held events that remain queued (released by the hourly
                      cycle).
                  circuitOpen:
                    type: boolean
                    description: >-
                      `true` while delivery to this destination is paused
                      automatically (see `POST /v1/webhooks/{id}/reactivate`).
                  circuitOpenedAt:
                    type:
                      - string
                      - 'null'
                    format: date-time
                    description: When the pause started, or `null`.
                  circuitSuccessPct:
                    type:
                      - number
                      - 'null'
                    description: >-
                      Success rate (%) over the last deliveries when the pause
                      started, or `null`.
                  heldCount:
                    type: integer
                    description: Events held while paused, waiting to be resent.
                  droppedCount:
                    type: integer
                    description: >-
                      Events lost while paused (held for more than 48 h, or more
                      than 20,000 held).
              example:
                ok: true
                released: 12
                stillHeld: 0
                circuitOpen: false
                circuitOpenedAt: null
                circuitSuccessPct: null
                heldCount: 0
                droppedCount: 0
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  details:
                    type: object
              examples:
                numberRequired:
                  summary: Per-number OAuth grant without `x-whatsapp-number-id`
                  value:
                    error: Provide x-whatsapp-number-id for a per-number connection
                    code: NUMBER_REQUIRED
                workspaceIdRequired:
                  summary: Account key without `x-workspace-id`
                  value:
                    error: >-
                      An account API key must name the workspace to act on: send
                      the x-workspace-id header (a workspace id from GET
                      /v1/workspaces) | Uma API key de conta precisa indicar o
                      workspace: envie o header x-workspace-id (o id de um
                      workspace, obtido em GET /v1/workspaces)
                    code: WORKSPACE_ID_REQUIRED
        '401':
          description: Missing or invalid credential
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              examples:
                missing:
                  summary: No credential
                  value:
                    error: >-
                      Missing x-api-key, x-api-key-id or Authorization Bearer
                      token
                invalid:
                  summary: Invalid API key
                  value:
                    error: Invalid API key
        '403':
          description: Not allowed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              examples:
                permissionDenied:
                  summary: Account key / OAuth user who is not Owner or Admin
                  value:
                    error: >-
                      Your workspace role does not allow this action
                      (webhooks:manage).
                    code: PERMISSION_DENIED
                notMember:
                  summary: Account key / OAuth user who is not an active member
                  value:
                    error: >-
                      The user behind this token is not an active member of this
                      workspace.
                    code: WORKSPACE_MEMBERSHIP_REQUIRED
                tenantRequired:
                  summary: Credential not bound to a workspace
                  value:
                    error: This credential is not bound to a workspace.
                    code: TENANT_REQUIRED
                archived:
                  summary: Workspace archived
                  value:
                    error: >-
                      This workspace has been archived and its API is closed. |
                      Este workspace foi arquivado e sua API está encerrada.
                    code: WORKSPACE_ARCHIVED
        '404':
          description: Webhook not visible to the caller
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Webhook not found
                code: WEBHOOK_NOT_FOUND
        '500':
          description: Unexpected failure
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Internal server error
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)

````

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