/api/webhooks/automation/{token}
Signed webhook
Automation callback
Deliver a callback payload to an in-flight automation execution. The {token} path segment identifies a specific AutomationExecution that is awaiting an asynchronous callback (for example, the result of an outbound HTTP action). The entire request method, headers, and body are appended to the execution's webhook response log via addWebhookResponse(). Supplying an idempotency key prevents the same callback being recorded more than once on retry.
Path parameters
|
token
string
required
|
— |
Body parameters
|
event_id
string · identifier
optional
|
Optional unique identifier for idempotency; re-delivery of the same id is skipped. |
|
event_type
string
optional
|
Optional event category label stored in the webhook data. |
|
idempotency_key
string
optional
|
Alternative idempotency field name (any of event_id / id / idempotency_key is accepted). |
Responses
curl -X POST https://landing.pivotal.digital/api/webhooks/automation/YOUR_TOKEN \
-H "Content-Type: application/json" \
-d '{
"event_type": "payment_completed",
"event_id": "evt_pay_001",
"amount": 99.00,
"currency": "GBP"
}'
{ "success": true, "message": "Webhook received successfully", "execution_id": 4821 }
{ "status": "replay_skipped" }
{ "error": "Invalid webhook token" }
/api/webhooks/playbook/{token}
Signed webhook
Trigger a playbook
Trigger a playbook run when an external system posts to this endpoint. The {token} path segment identifies the playbook's webhook trigger (one token per registered webhook_trigger node; it is stable for the life of the node). Every request is stored in the playbook's webhook log — method, headers, body — whether or not the playbook is active, so you can send test hits before going live. When the playbook is active the request body is forwarded as trigger data and the playbook executes asynchronously, returning a fast acknowledgement immediately. Supplying an idempotency key prevents duplicate executions on re-delivery.
Path parameters
|
token
string
required
|
— |
Body parameters
|
event_id
string · identifier
optional
|
Optional unique identifier for idempotency; re-delivery of the same id is skipped. |
|
event_type
string
optional
|
Optional event category stored alongside the trigger data. |
|
idempotency_key
string
optional
|
Alternative idempotency field name (any of event_id / id / idempotency_key is accepted). |
Responses
curl -X POST https://landing.pivotal.digital/api/webhooks/playbook/YOUR_TOKEN \
-H "Content-Type: application/json" \
-d '{
"event_type": "purchase.paid",
"event_id": "evt_xyz789",
"customer": { "email": "new@example.com", "name": "Sam Jones" },
"amount": 45.00,
"currency": "GBP"
}'
{ "success": true, "execution_id": 312, "delivery_id": 91 }
{ "success": true, "status": "captured", "delivery_id": 91, "message": "Received and stored. This playbook is not active, so nothing ran." }
{ "status": "replay_skipped", "delivery_id": 92 }
{ "error": "Invalid or inactive webhook." }
{ "error": "Execution failed.", "delivery_id": 93 }
/api/webhooks/external/{token}
Signed webhook
Trigger an automation
Trigger an automation when an external system posts to this endpoint. The {token} path segment identifies the target automation (one token per automation). An optional HMAC signature on the request body is verified when the automation has a webhook secret configured. The payload is persisted as an AutomationExecution and dispatched asynchronously so the caller receives a fast 200 acknowledgement. Requests that match a migrated Playbook registration are transparently forwarded to the Playbook engine without requiring partners to change their integration URLs.
Path parameters
|
token
string
required
|
— |
Body parameters
|
event_id
string · identifier
optional
|
Optional unique identifier for idempotency; re-delivery of the same id is skipped. |
|
event_type
string
optional
|
Optional event category string stored in the execution trigger data. |
|
idempotency_key
string
optional
|
Alternative idempotency field name (any of event_id / id / idempotency_key is accepted). |
Responses
curl -X POST https://landing.pivotal.digital/api/webhooks/external/YOUR_TOKEN \
-H "Content-Type: application/json" \
-H "X-Webhook-Signature: sha256=HMAC_HEX" \
-d '{
"event_type": "lead_updated",
"event_id": "evt_abc123",
"lead_id": 9001,
"status": "qualified"
}'
{ "success": true, "execution_id": 4821 }
{ "success": true, "execution_id": 4821, "bridge": "playbook" }
{ "status": "replay_skipped" }
{ "error": "Invalid signature" }
{ "error": "Automation is not active" }
{ "error": "Playbook not active" }
{ "error": "Invalid webhook token" }
{ "error": "Webhook handling failed" }
Landing Platform