Get a webhook

SDK platic.webhooks.get()

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

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

Path parameters

ParameterTypeDescriptionRequired
webhookIdstringWebhook id✓

Query parameters

ParameterTypeDescriptionRequired
workspacestringWorkspace ID. Required if your credential covers several workspaces (list workspaces); without it the answer is 400If the credential has several

Response

data is the webhook, with the fields from list webhooks plus version, verified, secrets, and nextStep.

{
  "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

FieldTypeDescription
idstringWebhook id
namestringWebhook name
urlstringDestination URL
eventsarraySubscribed events
activebooleantrue if the webhook delivers
hasSecretbooleantrue if it has a signing secret. The value is never returned
headersobjectConfigured headers. The value of a header that carries a credential arrives as "[REDACTED]"
createdAt, updatedAtstring | nullISO 8601 dates
creationDate, lastUpdatestring | nullThe same dates as createdAt and updatedAt
lastDeliveryAtstring | nullDate of the last delivery
lastDeliveryStatusstring | nullsuccess or failed
lastDeliveryCodenumber | nullHTTP status your server answered with
lastDeliveryErrorstring | nullReason for the last failure
autoPauseobjectWhen 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
consecutiveFailuresnumberConsecutive failed deliveries so far. It goes back to 0 with the first successful one or when it is reactivated
failingSincestring | nullDate of the first failed delivery of the current streak. null while deliveries go out fine
statusstringenabled, draft, paused, or pending_verification. A webhook that paused itself carries paused. See statuses
versionnumberIt goes up with every change. Send it as expectedVersion when you update
verifiedbooleantrue if the last verification is still valid for this destination and these secrets
secretsarrayOne entry per slot: slot, state, and secretId if a secret is bound. See slot states
workspaceIdstringWorkspace it belongs to
nextStepstringText 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

SituationnextStep starts with
There are slots in missing or needs_authorizationNot delivering: these credentials have to be authorized again…, with the slots
It is activeActive. It delivers: <events>.
It did not pass verificationSaved but not active: <reason>…
It is inactiveInactive. Activate it with PATCH … and { "active": true }…

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

Errors

Statusdetails.codeWhen
400INVALID_REQUESTYour 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
401UNAUTHENTICATEDThe credential is missing or invalid
403FORBIDDENThe person does not have the Integrations module (the message is Missing integrations permission) or does not have permission to configure webhooks
404WEBHOOK_NOT_FOUNDThe workspace has no webhook with that id
{
  "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.

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 with the secretId of its slot.