Skip to content

General

Webhooks

Get told the moment something happens: replies, bounces, unsubscribes, lead status changes, campaigns starting, pausing, resuming and finishing, meetings booked, moved or cancelled, deal stage moves and contact lifecycle changes. Subscribe a URL to an event; we POST a JSON payload to it. The shape Zapier and Make expect.

List webhooks

GET/api/v1/hooks

Every webhook endpoint of the workspace, made here or on the Webhooks page. The signing secret is never returned.

Any API key, read-only included.

Errors

  • 401Missing or invalid key
  • 429More than 120 requests a minute
Request
curl https://app.zicreach.com/api/v1/hooks \
  -H "Authorization: Bearer zk_your_key"
Response200
{
    "data": [
        {
            "id": "9b1f2c3d-0000-4000-8000-0000000000a1",
            "name": "Zapier: meeting.booked",
            "target": "https://hooks.example.com/zr",
            "events": [
                "meeting.booked"
            ],
            "is_active": true,
            "created_at": "2026-10-29T12:00:00+00:00"
        }
    ]
}

List events

GET/api/v1/hooks/events

Every event you can subscribe to.

Any API key, read-only included.

Errors

  • 401Missing or invalid key
  • 429More than 120 requests a minute
Request
curl https://app.zicreach.com/api/v1/hooks/events \
  -H "Authorization: Bearer zk_your_key"
Response200
{
    "data": [
        {
            "key": "lead.replied",
            "label": "A recipient replied (with the AI classification of the reply)"
        },
        {
            "key": "lead.bounced",
            "label": "A message hard-bounced"
        },
        {
            "key": "lead.unsubscribed",
            "label": "A recipient unsubscribed"
        },
        {
            "key": "lead.opened",
            "label": "A recipient opened a message"
        },
        {
            "key": "lead.clicked",
            "label": "A recipient clicked a link"
        },
        {
            "key": "lead.status_changed",
            "label": "A lead status changed in the Unibox (for example Interested or Meeting)"
        },
        {
            "key": "campaign.started",
            "label": "A campaign was launched"
        },
        {
            "key": "campaign.paused",
            "label": "A campaign was paused"
        },
        {
            "key": "campaign.resumed",
            "label": "A paused campaign was resumed"
        },
        {
            "key": "campaign.completed",
            "label": "A campaign finished sending"
        },
        {
            "key": "meeting.booked",
            "label": "A meeting was booked"
        },
        {
            "key": "meeting.rescheduled",
            "label": "A meeting moved to a new time"
        },
        {
            "key": "meeting.cancelled",
            "label": "A meeting was cancelled"
        },
        {
            "key": "opportunity.created",
            "label": "A deal was created"
        },
        {
            "key": "opportunity.stage_changed",
            "label": "A deal moved to another stage"
        },
        {
            "key": "contact.lifecycle_changed",
            "label": "A CRM contact's lifecycle stage changed"
        }
    ]
}

Get a sample payload

GET/api/v1/hooks/sample

An example of what an event delivers, for mapping fields: the same data Send test delivers. 422 for an unknown event.

Any API key, read-only included.

Parameters

NameTypeDescription
event query string Event key. Default lead.replied.

Errors

  • 401Missing or invalid key
  • 422Invalid input, or not ready; the body has message and an errors object, one entry per field
  • 429More than 120 requests a minute
Request
curl https://app.zicreach.com/api/v1/hooks/sample \
  -H "Authorization: Bearer zk_your_key"
Response200
{
    "data": [
        {
            "event": "meeting.booked",
            "created_at": "2026-09-24T10:31:00Z",
            "data": {
                "meeting_id": "9b1f2c3d-0000-4000-8000-0000000000e1",
                "title": "30 min meeting with Jane Doe",
                "status": "scheduled",
                "starts_at": "2026-11-03T15:00:00Z",
                "ends_at": "2026-11-03T15:30:00Z",
                "duration_minutes": 30,
                "timezone": "Europe/London",
                "host": {
                    "user_id": "9b1f2c3d-0000-4000-8000-0000000000f1",
                    "name": "Sara Khan"
                },
                "guests": [
                    {
                        "name": "Jane Doe",
                        "email": "jane@acme.com",
                        "timezone": "America/New_York"
                    }
                ],
                "booking_page_id": "9b1f2c3d-0000-4000-8000-0000000000b1",
                "lead_id": null,
                "opportunity_id": null,
                "meeting_url": "https://app.example.com/meetings/9b1f2c3d-0000-4000-8000-0000000000e1"
            }
        }
    ]
}

Subscribe

POST/api/v1/hooks

Starts sending an event to your URL. The URL must be https.

Needs a read and write API key.

Body

NameTypeDescription
target_urlrequired string Where to POST events. https only.
eventrequired string One event key from List events.

Errors

  • 401Missing or invalid key
  • 403Read-only key used for a change, or a key made by someone who is no longer an owner or admin
  • 422Invalid input, or not ready; the body has message and an errors object, one entry per field
  • 429More than 120 requests a minute
Request
curl -X POST https://app.zicreach.com/api/v1/hooks \
  -H "Authorization: Bearer zk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"target_url":"https://hooks.example.com/zicreach","event":"lead.replied"}'
Response201
{
    "id": "9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10",
    "event": "lead.replied",
    "target": "https://hooks.example.com/zicreach"
}

Unsubscribe

DELETE/api/v1/hooks/{id}

Stops the subscription.

Needs a read and write API key.

Parameters

NameTypeDescription
idrequired path uuid Subscription id.

Errors

  • 401Missing or invalid key
  • 403Read-only key used for a change, or a key made by someone who is no longer an owner or admin
  • 404Not found in this workspace
  • 422Invalid input, or not ready; the body has message and an errors object, one entry per field
  • 429More than 120 requests a minute
Request
curl -X DELETE https://app.zicreach.com/api/v1/hooks/9d1c6a2e-4b7f-4e0a-9a51-2f8c3b6d7e10 \
  -H "Authorization: Bearer zk_your_key"
Response200
{
    "message": "Unsubscribed."
}

How deliveries work

Each event is an HTTP POST with a JSON body to your https URL. Any 2xx answer within 15 seconds counts as delivered; a failed delivery is tried again a few times, and an endpoint that fails 15 times in a row is paused.

Events

EventWhen
lead.repliedA recipient replied (with the AI classification of the reply)
lead.bouncedA message hard-bounced
lead.unsubscribedA recipient unsubscribed
lead.openedA recipient opened a message
lead.clickedA recipient clicked a link
lead.status_changedA lead status changed in the Unibox (for example Interested or Meeting)
campaign.startedA campaign was launched
campaign.pausedA campaign was paused
campaign.resumedA paused campaign was resumed
campaign.completedA campaign finished sending
meeting.bookedA meeting was booked
meeting.rescheduledA meeting moved to a new time
meeting.cancelledA meeting was cancelled
opportunity.createdA deal was created
opportunity.stage_changedA deal moved to another stage
contact.lifecycle_changedA CRM contact's lifecycle stage changed

Headers

HeaderValue
Content-Typeapplication/json
User-AgentZicReach-Webhooks/1.0
X-ZicReach-EventThe event key, for example lead.replied
X-ZicReach-TimestampUnix time of the delivery, in seconds
X-ZicReach-SignatureWith Signature (HMAC) authentication: v1= and the signature

Payloads

Payload: lead.replied
{
    "event": "lead.replied",
    "created_at": "2026-09-24T10:31:00+00:00",
    "data": {
        "lead_id": "9b1f2c3d-0000-4000-8000-000000000001",
        "email": "jane@acme.com",
        "first_name": "Jane",
        "company": "Acme Ltd",
        "campaign_id": "9b1f2c3d-0000-4000-8000-0000000000c1",
        "subject": "Re: Quick question",
        "reply_type": "interested",
        "reply": "Hi Sara, yes, send it over. Thursday afternoon works for a call.\n\nJane",
        "body": "Hi Sara, yes, send it over. Thursday afternoon works for a call.\n\nJane\n\nOn Mon, 28 Sept 2026, 2:00 pm Sara <sara@yourcompany.com> wrote:\n> Hi Jane,\n> Would you like me to send it over?"
    }
}
Payload: lead.bounced
{
    "event": "lead.bounced",
    "created_at": "2026-09-24T10:31:00+00:00",
    "data": {
        "lead_id": "9b1f2c3d-0000-4000-8000-000000000002",
        "email": "old@acme.com",
        "campaign_id": "9b1f2c3d-0000-4000-8000-0000000000c1",
        "type": "hard"
    }
}
Payload: lead.unsubscribed
{
    "event": "lead.unsubscribed",
    "created_at": "2026-09-24T10:31:00+00:00",
    "data": {
        "lead_id": "9b1f2c3d-0000-4000-8000-000000000003",
        "email": "tom@acme.com",
        "campaign_id": "9b1f2c3d-0000-4000-8000-0000000000c1"
    }
}
Payload: lead.opened
{
    "event": "lead.opened",
    "created_at": "2026-09-24T10:31:00+00:00",
    "data": {
        "lead_id": "9b1f2c3d-0000-4000-8000-000000000004",
        "email": "ann@acme.com",
        "campaign_id": "9b1f2c3d-0000-4000-8000-0000000000c1"
    }
}
Payload: lead.clicked
{
    "event": "lead.clicked",
    "created_at": "2026-09-24T10:31:00+00:00",
    "data": {
        "lead_id": "9b1f2c3d-0000-4000-8000-000000000005",
        "email": "ann@acme.com",
        "campaign_id": "9b1f2c3d-0000-4000-8000-0000000000c1"
    }
}
Payload: lead.status_changed
{
    "event": "lead.status_changed",
    "created_at": "2026-09-24T10:31:00+00:00",
    "data": {
        "conversation_id": "9b1f2c3d-0000-4000-8000-0000000000a1",
        "email": "jane@acme.com",
        "name": "Jane Doe",
        "campaign_id": "9b1f2c3d-0000-4000-8000-0000000000c1",
        "status": "interested",
        "previous_status": "new",
        "set_by": "auto"
    }
}
Payload: campaign.started
{
    "event": "campaign.started",
    "created_at": "2026-09-24T10:31:00+00:00",
    "data": {
        "campaign_id": "9b1f2c3d-0000-4000-8000-0000000000c1",
        "name": "Q3 outreach",
        "status": "active",
        "previous_status": "draft"
    }
}
Payload: campaign.paused
{
    "event": "campaign.paused",
    "created_at": "2026-09-24T10:31:00+00:00",
    "data": {
        "campaign_id": "9b1f2c3d-0000-4000-8000-0000000000c1",
        "name": "Q3 outreach",
        "status": "paused",
        "previous_status": "active"
    }
}
Payload: campaign.resumed
{
    "event": "campaign.resumed",
    "created_at": "2026-09-24T10:31:00+00:00",
    "data": {
        "campaign_id": "9b1f2c3d-0000-4000-8000-0000000000c1",
        "name": "Q3 outreach",
        "status": "active",
        "previous_status": "paused"
    }
}
Payload: campaign.completed
{
    "event": "campaign.completed",
    "created_at": "2026-09-24T10:31:00+00:00",
    "data": {
        "campaign_id": "9b1f2c3d-0000-4000-8000-0000000000c1",
        "name": "Q3 outreach",
        "sent": 480,
        "replied": 21,
        "bounced": 3
    }
}
Payload: meeting.booked
{
    "event": "meeting.booked",
    "created_at": "2026-09-24T10:31:00+00:00",
    "data": {
        "meeting_id": "9b1f2c3d-0000-4000-8000-0000000000e1",
        "title": "30 min meeting with Jane Doe",
        "status": "scheduled",
        "starts_at": "2026-11-03T15:00:00Z",
        "ends_at": "2026-11-03T15:30:00Z",
        "duration_minutes": 30,
        "timezone": "Europe/London",
        "host": {
            "user_id": "9b1f2c3d-0000-4000-8000-0000000000f1",
            "name": "Sara Khan"
        },
        "guests": [
            {
                "name": "Jane Doe",
                "email": "jane@acme.com",
                "timezone": "America/New_York"
            }
        ],
        "booking_page_id": "9b1f2c3d-0000-4000-8000-0000000000b1",
        "lead_id": null,
        "opportunity_id": null,
        "meeting_url": "https://app.example.com/meetings/9b1f2c3d-0000-4000-8000-0000000000e1"
    }
}
Payload: meeting.rescheduled
{
    "event": "meeting.rescheduled",
    "created_at": "2026-09-24T10:31:00+00:00",
    "data": {
        "meeting_id": "9b1f2c3d-0000-4000-8000-0000000000e1",
        "title": "30 min meeting with Jane Doe",
        "status": "scheduled",
        "starts_at": "2026-11-04T16:00:00Z",
        "ends_at": "2026-11-04T16:30:00Z",
        "duration_minutes": 30,
        "timezone": "Europe/London",
        "previous_starts_at": "2026-11-03T15:00:00Z",
        "host": {
            "user_id": "9b1f2c3d-0000-4000-8000-0000000000f1",
            "name": "Sara Khan"
        },
        "guests": [
            {
                "name": "Jane Doe",
                "email": "jane@acme.com",
                "timezone": "America/New_York"
            }
        ],
        "booking_page_id": "9b1f2c3d-0000-4000-8000-0000000000b1",
        "lead_id": null,
        "opportunity_id": null,
        "meeting_url": "https://app.example.com/meetings/9b1f2c3d-0000-4000-8000-0000000000e1"
    }
}
Payload: meeting.cancelled
{
    "event": "meeting.cancelled",
    "created_at": "2026-09-24T10:31:00+00:00",
    "data": {
        "meeting_id": "9b1f2c3d-0000-4000-8000-0000000000e1",
        "title": "30 min meeting with Jane Doe",
        "status": "cancelled",
        "starts_at": "2026-11-04T16:00:00Z",
        "ends_at": "2026-11-04T16:30:00Z",
        "duration_minutes": 30,
        "timezone": "Europe/London",
        "cancelled_at": "2026-11-01T09:12:00Z",
        "host": {
            "user_id": "9b1f2c3d-0000-4000-8000-0000000000f1",
            "name": "Sara Khan"
        },
        "guests": [
            {
                "name": "Jane Doe",
                "email": "jane@acme.com",
                "timezone": "America/New_York"
            }
        ],
        "booking_page_id": "9b1f2c3d-0000-4000-8000-0000000000b1",
        "lead_id": null,
        "opportunity_id": null,
        "meeting_url": "https://app.example.com/meetings/9b1f2c3d-0000-4000-8000-0000000000e1"
    }
}
Payload: opportunity.created
{
    "event": "opportunity.created",
    "created_at": "2026-09-24T10:31:00+00:00",
    "data": {
        "opportunity_id": "9b1f2c3d-0000-4000-8000-0000000000d1",
        "title": null,
        "contact_name": "Jane Doe",
        "company": "Acme Ltd",
        "campaign_id": "9b1f2c3d-0000-4000-8000-0000000000c1",
        "lead_id": null,
        "stage": "conversation",
        "stage_id": "9b1f2c3d-0000-4000-8000-0000000000d7",
        "stage_name": "In conversation",
        "previous_stage": null,
        "value": 2500,
        "currency": "USD",
        "source": "reply"
    }
}
Payload: opportunity.stage_changed
{
    "event": "opportunity.stage_changed",
    "created_at": "2026-09-24T10:31:00+00:00",
    "data": {
        "opportunity_id": "9b1f2c3d-0000-4000-8000-0000000000d1",
        "title": null,
        "contact_name": "Jane Doe",
        "company": "Acme Ltd",
        "campaign_id": "9b1f2c3d-0000-4000-8000-0000000000c1",
        "lead_id": null,
        "stage": "meeting",
        "stage_id": "9b1f2c3d-0000-4000-8000-0000000000d8",
        "stage_name": "Meeting booked",
        "previous_stage": "conversation",
        "value": 2500,
        "currency": "USD",
        "source": "reply"
    }
}
Payload: contact.lifecycle_changed
{
    "event": "contact.lifecycle_changed",
    "created_at": "2026-09-24T10:31:00+00:00",
    "data": {
        "contact_id": "9b1f2c3d-0000-4000-8000-000000000001",
        "email": "jane@acme.com",
        "name": "Jane Doe",
        "lifecycle_stage": "customer",
        "previous_lifecycle_stage": "opportunity"
    }
}

Checking signatures

With Signature (HMAC) authentication, compute an HMAC SHA-256 of the timestamp, a dot and the raw body, using the endpoint's signing secret, and compare it with the header.

Node.js
const crypto = require('crypto');

function verify(req, rawBody, secret) {
  const ts = req.headers['x-zicreach-timestamp'];
  const expected = 'v1=' + crypto.createHmac('sha256', secret).update(ts + '.' + rawBody).digest('hex');
  const given = req.headers['x-zicreach-signature'] || '';
  return given.length === expected.length && crypto.timingSafeEqual(Buffer.from(given), Buffer.from(expected));
}
PHP
$ts = $_SERVER['HTTP_X_ZICREACH_TIMESTAMP'] ?? '';
$body = file_get_contents('php://input');
$expected = 'v1=' . hash_hmac('sha256', $ts . '.' . $body, $secret);
$valid = hash_equals($expected, $_SERVER['HTTP_X_ZICREACH_SIGNATURE'] ?? '');