---
docId: doc_2e1b70d6cbb54391a06323d8b32c4d7a
title: Get a webhook
description: "Read a webhook, its credential states, and pending steps."
api:
  group: webhooks
  auth: bearer
  operations:
    - operationId: getWebhook
      method: GET
      path: '/v1/webhooks/{webhookId}'
      postmanName: Get a webhook
---

<script>
  import { Ways, Collapsible } from '$lib/components';
</script>

# Get a webhook

Read a webhook's destination, events, and activation state. The response includes credential states in `secrets[]` and the next step in `nextStep`. It does not return the signing secret.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl https://api.platic.ai/v1/webhooks/$WEBHOOK_ID \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.webhooks.get("webhook_123");
```

</Ways.Way>
</Ways>

## Path parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `webhookId` | string | Webhook id | ✓ |

## Query parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `workspace` | string | Workspace ID. Required if your credential covers several workspaces ([list workspaces](/api-reference/workspaces)); without it the answer is `400` | If the credential has several |

## Response

`data` is the webhook, with the fields from [list webhooks](/api-reference/webhooks/list) plus `version`, `verified`, `secrets`, and `nextStep`.

```json
{
  "status": "success",
  "data": {
    "id": "webhook_abc123",
    "name": "Notifications webhook",
    "url": "https://example.com/webhook",
    "events": [
      "conversation.created",
      "conversation.operation.updated",
      "message.created",
      "client.created",
      "whatsapp.flows.exchanges"
    ],
    "active": true,
    "hasSecret": true,
    "headers": {
      "Authorization": "[REDACTED]",
      "Custom-Header": "custom value"
    },
    "createdAt": "2026-10-28T12:05:00.000Z",
    "updatedAt": "2026-10-28T12:05:03.000Z",
    "creationDate": "2026-10-28T12:05:00.000Z",
    "lastUpdate": "2026-10-28T12:05:03.000Z",
    "lastDeliveryAt": "2026-11-05T17:42:10.000Z",
    "lastDeliveryStatus": "success",
    "lastDeliveryCode": 200,
    "lastDeliveryError": null,
    "autoPause": { "mode": "failures", "failures": 5 },
    "consecutiveFailures": 0,
    "failingSince": null,
    "status": "enabled",
    "version": 3,
    "verified": true,
    "secrets": [
      {
        "slot": "webhook.secret",
        "state": "authorized",
        "secretId": "a1c3e5f7092b4d6f8a0c2e4f6b8d0a1c3e5f7092b4d6f8a0c2e4f6b8d0a1c3e5"
      },
      {
        "slot": "header:authorization",
        "state": "authorized",
        "secretId": "5d0c7a1e9b3f4a6c8e2d1f0b7a9c3e5d6f8a0b2c4d6e8f1a3b5c7d9e0f2a4b6c"
      }
    ],
    "workspaceId": "ws_123",
    "nextStep": "Active. It delivers: conversation.created, conversation.operation.updated, message.created, client.created, whatsapp.flows.exchanges."
  }
}
```

## Response fields

<Collapsible summary="Show all fields">

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | Webhook id |
| `name` | string | Webhook name |
| `url` | string | Destination URL |
| `events` | array | Subscribed events |
| `active` | boolean | `true` if the webhook delivers |
| `hasSecret` | boolean | `true` if it has a signing secret. The value is never returned |
| `headers` | object | Configured headers. The value of a header that carries a credential arrives as `"[REDACTED]"` |
| `createdAt`, `updatedAt` | string \| null | ISO 8601 dates |
| `creationDate`, `lastUpdate` | string \| null | The same dates as `createdAt` and `updatedAt` |
| `lastDeliveryAt` | string \| null | Date of the last delivery |
| `lastDeliveryStatus` | string \| null | `success` or `failed` |
| `lastDeliveryCode` | number \| null | HTTP status your server answered with |
| `lastDeliveryError` | string \| null | Reason for the last failure |
| `autoPause` | object | When it pauses itself: `{ mode: "failures", failures }` or `{ mode: "time", hours }`. If it was never chosen, it carries the default, `{ "mode": "failures", "failures": 5 }`. See [automatic pause](/api-reference/webhooks/signatures#automatic-pause) |
| `consecutiveFailures` | number | Consecutive failed deliveries so far. It goes back to `0` with the first successful one or when it is reactivated |
| `failingSince` | string \| null | Date of the first failed delivery of the current streak. `null` while deliveries go out fine |
| `status` | string | `enabled`, `draft`, `paused`, or `pending_verification`. A webhook that paused itself carries `paused`. See [statuses](/api-reference/webhooks) |
| `version` | number | It goes up with every change. Send it as `expectedVersion` when you [update](/api-reference/webhooks/update) |
| `verified` | boolean | `true` if the last verification is still valid for this destination and these secrets |
| `secrets` | array | One entry per slot: `slot`, `state`, and `secretId` if a secret is bound. See [slot states](/api-reference/secrets#slot-states) |
| `workspaceId` | string | Workspace it belongs to |
| `nextStep` | string | Text in English that says what is missing for it to deliver. It is for people and assistants; do not program against its wording |

### What `nextStep` says

| Situation | `nextStep` starts with |
|-----------|------------------------|
| There are slots in `missing` or `needs_authorization` | `Not delivering: these credentials have to be authorized again…`, with the slots |
| It is active | `Active. It delivers: <events>.` |
| It did not pass verification | `Saved but not active: <reason>…` |
| It is inactive | `Inactive. Activate it with PATCH … and { "active": true }…` |

Use `active`, `status`, and `secrets[].state` in your code.

</Collapsible>

## Errors

| Status | `details.code` | When |
|--------|----------------|------|
| `400` | `INVALID_REQUEST` | Your credential covers several workspaces and you did not send `?workspace=`, or you sent one it does not cover. `details.available` carries the IDs you can use |
| `401` | `UNAUTHENTICATED` | The credential is missing or invalid |
| `403` | `FORBIDDEN` | The person does not have the Integrations module (the message is `Missing integrations permission`) or does not have permission to configure webhooks |
| `404` | `WEBHOOK_NOT_FOUND` | The workspace has no webhook with that id |

```json
{
  "code": 404,
  "error": "Not Found - The resource doesn't exist",
  "details": {
    "code": "WEBHOOK_NOT_FOUND",
    "message": "Webhook not found in this workspace"
  }
}
```

The general error format is in [Errors](/api-reference/errors).

## Notes

- `secrets[]` only lists the slots the webhook uses: `webhook.secret` if it has a signature and `header:<name>` for each header with a credential. A webhook without a signature or credentials carries an empty list.
- To change the value of a credential without touching the webhook, [rotate the secret](/api-reference/secrets/rotate) with the `secretId` of its slot.
