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

# Webhooks screen in the Pilot Status dashboard

> The /webhooks screen: create, edit, deactivate and delete webhooks per number, read the signing secret (shown ONCE after you create a webhook, recoverable only by generating a new one in Edit webhook), inspect delivery logs, replay failed deliveries and resume a paused destination.

The **Webhooks** screen is where you point a WhatsApp number's events at your own HTTPS endpoint and watch what was delivered. It is the dashboard twin of the [webhooks API](https://docs.pilotstatus.com.br/api/webhooks/configure.md); the payloads themselves are in the [event reference](https://docs.pilotstatus.com.br/api/webhooks/events.md).

## How to get here

Sidebar → **Webhooks**, or go straight to `/webhooks` (keyboard shortcut **W** in the command palette). `/webhooks?new=1` opens the **New Webhook** modal directly.

**Who sees it:** **Owner** and **Admin**. Both reading the list and every change on it (create, edit, activate/deactivate, delete, generate a new secret, replay, resume delivery) require the webhook permissions, which only those two roles have. Agents and Analysts do not get the menu entry.

> [!NOTE]
>
> The screen works on the number selected in the header. Webhooks belong to **one number** each, so the list, the events offered and the delivery logs are always those of the header's number. Switch the number in the header to see another number's webhooks.

## What you see

* **Header actions** — **New Webhook** always; with a webhook selected, also **Edit webhook**, **Deactivate** / **Activate** and **Delete**. **New Webhook** is disabled while the shared test number is selected (*"Test number: select one of your numbers to create a webhook."*).
* **Stat cards** — with no webhook selected: **Total Webhooks**, **Active**, **Inactive**. With a webhook selected they switch to that webhook's deliveries: **Total Events**, **Success**, **Failed**.
* **Two help cards** — a link to the **Docs** (events and payloads) and a pointer to [WebhookGuru](https://webhookguru.online/) for testing and debugging an endpoint.
* **Webhook selector** (*Select webhook...*) and, once one is selected, the **delivery log** with its filters.

If the list fails to load you see **"Could not load your webhooks"** with **Try again** — this does **not** mean you have none, so do not create a new one in response. When the number is not yet approved for production, the message says so instead; webhooks on your other numbers keep working.

## Create a webhook — "New Webhook" modal

| Field | Notes |
| - | - |
| **Name** (optional) | A label for you, e.g. *Main WhatsApp*. Up to 100 characters: the field stops at the limit and shows the count (e.g. *14/100*). |
| **URL** \* | Your endpoint (`https://` recommended; `http://` is accepted). Required. Addresses that point inside a private network — `localhost`, loopback or private IPs, or a host name without a dot — are refused. |
| **Events** | The events this webhook receives, from a searchable list (**Select events**, **Search event**). The list depends on the number's provider (WhatsApp Web numbers and Meta Cloud API numbers emit different events); it stays empty until the header's number is resolved. |

**Select all** subscribes the webhook to **All events** (`*`): everything the number's provider emits today **and** any event added later. The field then reads **All events** and the caption **All events selected**. Unticking one event while **All events** is on replaces the wildcard with the explicit list of the remaining events — from then on, new event types are no longer included automatically. Otherwise the caption counts what you picked (*"N event(s) selected"*) or says **No event selected**.

The modal also shows these notices:

* **Read status** (`message.read`) only fires when the contact who received the message has read receipts enabled in WhatsApp.
* **"All events" (`*`) does not include "Lead received (Meta Ads)"**: it carries personal data and is sent only if you tick that event explicitly. Ticking it under **All events** keeps the wildcard and adds the lead event next to it.
* When you tick `message.received` but not `message.reply` (and the number offers it), a warning reminds you that *"Messages that reply to another are delivered as message.reply, not message.received. Without subscribing to message.reply, you will not receive them."*

Every event in the list, group and channel events included, can be picked on any plan.

Click **Create Webhook** (the toast says **Webhook created!**). A number can have more than one webhook; the refusals are the exact same URL twice on the same number, the cap of **50 webhooks per workspace**, and a refused URL (see above). The error toast shows the server's reason, so you know what to change. See [How many webhooks per number](https://docs.pilotstatus.com.br/api/webhooks/configure.md#how-many-webhooks-per-number).

### The signing secret — shown once

Right after creation the **Signing secret** dialog opens with the secret in clear, the note *"Shown once. Store it now — no read returns it again."*, and two buttons: **Copy** (the toast says **Secret copied**) and **Got it**.

> [!WARNING]
>
> **The signing secret is shown once.** Copy it before you close the dialog — **Got it**, the close icon and a click outside the dialog all close it for good. If **Copy** does nothing in your browser, select the secret on screen and copy it by hand. Neither the dashboard, the API nor Pilot Status support can show it to you again — it is not stored anywhere you can read it back.
>
> **Lost it?** Open the webhook → **Edit webhook** → **Generate a new secret**. That mints a new secret and shows it once, in the same dialog.

Every delivery carries the `x-pilot-status-signature` header: the hex-encoded **HMAC-SHA256 of the raw request body**, keyed with this secret. How to verify it in your receiver: [Verify the signature](https://docs.pilotstatus.com.br/api/webhooks/configure.md#verify-the-signature).

## Edit a webhook — "Edit Webhook" modal

Select the webhook and click **Edit webhook**. You change **Name**, **URL** and **Events** with the same fields as above, then **Save** (**Webhook updated!**). If the save is refused, the error toast names the reason the server gave (for example a refused URL, or the same URL already used by another webhook on this number); otherwise it reads **Failed to update webhook**.

At the top of the modal, the **Signing secret** block shows the webhook's signing state:

* **Deliveries signed** — the webhook has a secret.
* **Unsigned** — the webhook predates signing (created before 2026-09-15); its deliveries go out without `x-pilot-status-signature`. Generating a secret turns signing on.

**Generate a new secret** (Owner and Admin, like every change on this screen) asks for confirmation in a browser prompt: *"Generating a new secret invalidates the current one IMMEDIATELY — deliveries start signing with the new one and the old one stops working. Continue?"*

> [!WARNING]
>
> Generating a new secret invalidates the current one **immediately** — there is no overlap or grace window. Deliveries start signing with the new secret and the old one stops verifying the moment you confirm. Update your receiver right away (or accept both secrets for a minute) to avoid rejecting real deliveries.

The toast says **New secret generated** and the new secret appears once in the **Signing secret** dialog, exactly like after creation (same **Copy** / **Got it**, same "shown once" rule). On an unsigned webhook this is also how you turn signing on. If it fails, the toast reads **Could not generate the secret**.

## Activate, deactivate, delete

* **Deactivate** keeps the webhook and stops delivering to it; **Activate** turns it back on. This is your choice — different from a paused destination (below).
* **Delete** opens **Delete Webhook** (*"Are you sure you want to delete the webhook …"*). Deleting is permanent: the subscription is gone, and a webhook created again gets a new secret.

## Delivery logs

Pick a webhook in the selector to see its deliveries, newest first. When you select it, the date range starts as **today, from 00:00 to the current minute**, so you see today's deliveries first. Columns: **Timestamp**, **Event**, **Status** (`SUCCESS` / `FAILED`), **HTTP Code**, **Duration**. With nothing in the range, the table says **No events recorded**.

Filters:

* **Status** — **All**, **Success**, **Failed**.
* **Filter by event** — the events this webhook subscribes to by name. A webhook on **All events** offers only `*` here, so leave this filter on **All** for it and narrow by status and date instead.
* **From** / **To** — date and time pickers, with **Today (full day)** and **Yesterday (full day)** shortcuts (they set 00:00 to 23:59 of that day).
* **Clear filters** resets everything, including the webhook selection.

The table loads 50 deliveries at a time and loads more as you scroll; new deliveries appear on their own while you watch.

> [!NOTE]
>
> The event and date filters are applied by the server. The **Status** filter, the **Total Events** / **Success** / **Failed** cards and the footer *"Showing X of Y events"* work on the deliveries already loaded on the page (Y is how many are loaded, not the full history of the range). Scroll down to load older deliveries into the counts, or narrow the date range.

### Event Details modal

Click a row to open **Event Details**: **Event**, **Status**, **HTTP Code**, **Timestamp**, **Duration**, **Webhook**, the **Payload** that was sent (with **Copy**) and, when your endpoint answered with a body, the **Response**.

**Replay** — on a `FAILED` delivery, the modal shows **Replay** (Owner and Admin). It re-sends the stored payload to the webhook's current URL, signed with its current secret, as a new delivery that appears as a new row in the log. The toast says **Delivery replayed**, or **Failed to replay delivery** if it could not be queued (for example, a delivery with no stored payload). A member restricted to some numbers can only replay deliveries of a webhook tied to one of their numbers. Successful deliveries have no **Replay** button.

## When delivery is paused

If your endpoint refuses almost everything (success rate at or below 20% over the last 50 deliveries, after at least 20), Pilot Status **pauses delivery to that destination** to stop hammering it. This is not the same as **Deactivate** — you did not switch anything off.

What you see:

* With the webhook selected, an amber banner **"Delivery paused for this destination"**: it says the success rate, how many events are **held for resend** and how many were lost.
* With another webhook selected, a banner **"N destination(s) with delivery paused"** listing them — click it to jump to the first.

Pilot Status keeps testing the destination on its own: every 5 minutes it lets **one** delivery through. As soon as one succeeds, delivery resumes by itself and the held events (kept up to 48 hours) go out on their next hourly retry.

You don't have to wait for that: fix your endpoint and click **Resume delivery**. Up to 1,000 held events are brought forward and resent **spaced out** (about 5 per second per destination, so 1,000 take roughly 3–4 minutes), not all at once — the toast says *"Delivery resumed — N event(s) being resent now"*. Anything beyond 1,000 stays held and goes out on its own hourly retry; nothing is dropped.

### Where the pause alert goes

The account **Owner** is alerted the moment delivery is paused, by **e-mail always** and by **WhatsApp** only if the Owner has a verified phone on the account, with reminders after 1, 6 and 24 hours while it stays paused. The link in the alert opens `/webhooks?webhook=<id>`, which switches the header to that webhook's number and scrolls to the banner. If the link belongs to another workspace, you see *"We could not find this webhook in this workspace."*

When the Owner has no WhatsApp on file, the screen shows **"Paused-destination alerts go out by e-mail only"** — click it to add the number under **Profile → Information**.

## Deep links

| URL | Opens |
| - | - |
| `/webhooks?new=1` | The **New Webhook** modal. |
| `/webhooks?edit=<webhookId>` | The **Edit Webhook** modal for that webhook. |
| `/webhooks?webhook=<webhookId>` | The webhook selected, on its number, with the paused banner in view (the link used by pause alerts). |

For `?webhook=`, the screen first finds the webhook in the current workspace, switches the header to a number the webhook is bound to (it keeps the current number if the webhook is bound to it), selects the webhook and scrolls to the banner. If the webhook is not tied to any number you can select, the **Edit Webhook** modal opens instead. If you were signed out, you sign in first and land on the same link. `?new=1` needs the same permission as **New Webhook**.

## Do it via API / MCP

| Dashboard action | API | MCP tool |
| - | - | - |
| List webhooks | [`GET /v1/webhooks`](https://docs.pilotstatus.com.br/api/webhooks/configure#endpoints) | `webhooks_list` |
| See one webhook | `GET /v1/webhooks/{id}` | `webhook_get` |
| New Webhook | `POST /v1/webhooks` (the `201` carries the `secret` once) | `webhooks_create` |
| Edit / Activate / Deactivate | `PATCH /v1/webhooks/{id}` (`name`, `url`, `events`, `active`) | `webhooks_update` |
| Delete | `DELETE /v1/webhooks/{id}` | `webhooks_delete` |
| Delivery logs | [`GET /v1/webhooks/{id}/logs`](https://docs.pilotstatus.com.br/api/webhooks/configure#reading-delivery-logs) | `webhook_events` |
| Generate a new secret | [`POST /v1/webhooks/{id}/rotate-secret`](https://docs.pilotstatus.com.br/api/webhooks/configure#verify-the-signature) | `webhooks_rotate_secret` |
| Resume delivery | `POST /v1/webhooks/{id}/reactivate` | `webhooks_reactivate` |
| Replay a failed delivery | — | **Dashboard only** |

Related: [Webhook event reference](https://docs.pilotstatus.com.br/api/webhooks/events.md) · [Configure webhooks](https://docs.pilotstatus.com.br/api/webhooks/configure.md) · [Workspace webhooks](https://docs.pilotstatus.com.br/api/workspace-webhooks.md) (workspace-level events, configured on the [**Workspace keys**](https://docs.pilotstatus.com.br/dashboard/api-keys.md) screen).


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