Webhooks

Sailor can send a webhook to the URL configured on an outcome action.

The payload describes the outcome, the call, and the smart-list destination action Sailor attempted.

Return any 2xx status to acknowledge receipt.

Example Payload

1{
2 "error_message": "",
3 "timestamp": 1781935984,
4 "scope": {
5 "subaccount_id": "00000000-0000-4000-8000-000000000001",
6 "organization_id": "00000000-0000-4000-8000-000000000002"
7 },
8 "outcome": {
9 "outcome_id": "00000000-0000-4000-8000-000000000003",
10 "outcome_name": "Interested",
11 "outcome_type": "action"
12 },
13 "call": {
14 "call_id": "00000000-0000-4000-8000-000000000004",
15 "phone_number": "+15555550100",
16 "contact_id": "00000000-0000-4000-8000-000000000005"
17 },
18 "destination": {
19 "destination_type": "smart_list",
20 "destination_id": "00000000-0000-4000-8000-000000000006"
21 }
22}

See the Webhooks section in the API Reference for the complete schema.