List webhooks

SDK platic.webhooks.list()

List the webhooks configured in the workspace.

Example

await platic.webhooks.list();

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 list of webhooks, from newest to oldest.

{
  "status": "success",
  "data": [
    {
      "id": "webhook_abc123",
      "name": "Notifications webhook",
      "url": "https://example.com/webhook",
      "events": [
        "conversation.created",
        "conversation.status.updated",
        "message.created",
        "client.customFields.updated"
      ],
      "active": true,
      "hasSecret": true,
      "headers": {
        "Authorization": "[REDACTED]"
      },
      "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",
      "workspaceId": "ws_123"
    }
  ]
}

Response fields

Each webhook in the list carries:

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. If it was never chosen, { "mode": "failures", "failures": 5 }. See automatic pause
consecutiveFailuresnumberConsecutive failed deliveries so far
failingSincestring | nullDate of the first failed delivery of the current streak, or null
statusstringenabled, draft, paused, or pending_verification. A webhook that paused itself carries paused. See statuses
workspaceIdstringWorkspace it belongs to

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
{
  "code": 400,
  "error": "Bad Request - The request has validation errors",
  "details": {
    "code": "INVALID_REQUEST",
    "message": "Must specify a valid workspace (multi-workspace credential)",
    "available": ["g6yCA16pkWl5eXo7KszB", "Hk29fQm1ZpXr7aLwT0sd"]
  }
}

The general error format is in Errors.

Notes

  • The list does not carry secrets[], verified, version, or nextStep. To know what a webhook is missing, use get a webhook.
  • This list is not paginated.