Appearance
Events
Endpoints of the public API tagged Events, generated from the API's OpenAPI document. Base URL: your API origin, for example https://api.example.com. See API overview and API keys and scopes.
Subscribe a URL to one event (REST hooks); also needs the event's own scope
text
POST /api/v1/rest/hooks- Operation id:
subscribeHook - Scope:
webhooks:write
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
targetUrl | string | yes | |
event | string (contact.created, contact.updated, contact.tag_added, contact.tag_removed, contact.deleted, message.received, message.sent, appointment.booked, appointment.rescheduled, appointment.cancelled, appointment.completed, appointment.no_show, opportunity.stage_changed, opportunity.status_changed, invoice.sent, invoice.paid, payment.succeeded, payment.refunded, social.post_published, form.submitted, custom_object.record_created, custom_object.record_updated, custom_object.record_deleted, custom_object.record_associated, custom_object.record_dissociated, course.enrolled, course.completed, lesson.completed, community.joined, subscription.started, subscription.canceled, payment.failed, task.created, task.completed, note.added, assessment.completed, program.enrolled, program.low_credits, program.expired, checkin.submitted, checkin.missed, action_item.overdue, goal.achieved, metric.logged, callscreen.lead_created, callscreen.emergency_lead, callscreen.appointment_booked, callscreen.call_labelled) | yes |
Response (201): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
event | string | yes | |
targetUrl | string | yes | |
secret | string | yes |
Unsubscribe a REST hook
text
DELETE /api/v1/rest/hooks/{hookId}- Operation id:
unsubscribeHook - Scope:
webhooks:write
Parameters
| Name | In | Required | Type |
|---|---|---|---|
hookId | path | yes | string |
Response (200): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
deleted | boolean | yes | |
id | string | yes |
Newest events of one type (polling fallback; needs the event's scope)
text
GET /api/v1/rest/events- Operation id:
pollEvents - Scope:
the scope of the event type
Parameters
| Name | In | Required | Type |
|---|---|---|---|
type | query | yes | string |
limit | query | no | integer |
Response (200): { success: true, data: { items, nextCursor } }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
type | string | yes | |
version | number | yes | |
occurredAt | string | yes | |
subaccountId | string | yes | |
sequence | number | yes | |
data | object | yes |
A sample of one event type (for setting up a zap)
text
GET /api/v1/rest/events/samples- Operation id:
sampleEvents - Scope:
the scope of the event type
Parameters
| Name | In | Required | Type |
|---|---|---|---|
type | query | yes | string |
Response (200): { success: true, data: { items, nextCursor } }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
type | string | yes | |
version | number | yes | |
occurredAt | string | yes | |
subaccountId | string | yes | |
sequence | number | yes | |
data | object | yes |