Create a webhook
Adds a webhook with the given url and events, and an optional name. enrichment names what to
enrich before each delivery (linkedin_profile, email, phone); omit it or send an
empty list for no enrichment. Enrichment spends credits at delivery time, so a non-empty
enrichment first runs the same credit check as enriching a lead: when the workspace
cannot pay for one enrichment with these options the request is refused with 422 and
nothing is saved. Not available on agency workspaces.
Path Parameters
Body
Only these five fields are read. Anything else in the body is ignored.
The events to deliver. A value outside the list is refused with 422.
connection_request_sent, connection_request_accepted, connection_request_withdrawn, follow_up_message_sent, message_replied, message_success, lead_finished, lead_failed, lead_status_not_interested, lead_status_engaged, lead_status_interested, lead_status_hot_lead, lead_status_meeting_booked, lead_status_won, lead_status_lost Response
Webhook created
An outbound webhook. Custom headers, if any were set on the integrations page, are never returned.
The events the webhook subscribes to. At least one. Fired when:
connection_request_sent a LinkedIn connection request was sent to the lead;
connection_request_accepted the lead accepted the connection request;
connection_request_withdrawn a pending connection request was withdrawn;
follow_up_message_sent a follow-up message was sent to the lead;
message_replied the lead replied to a campaign message;
message_success a message was sent or received in the unified inbox;
lead_finished the lead completed the campaign;
lead_failed the lead stopped in the campaign with a failure;
lead_status_engaged, lead_status_interested, lead_status_hot_lead,
lead_status_meeting_booked, lead_status_won, lead_status_not_interested,
lead_status_lost the lead's pipeline status became that status.
connection_request_sent, connection_request_accepted, connection_request_withdrawn, follow_up_message_sent, message_replied, message_success, lead_finished, lead_failed, lead_status_not_interested, lead_status_engaged, lead_status_interested, lead_status_hot_lead, lead_status_meeting_booked, lead_status_won, lead_status_lost 
