Webhooks
Event catalog
Every event type you can subscribe to, grouped by what it is about. The list is generated from the API's source, so it always matches what the API accepts.
Subscribing
Subscribe to single events (lead.won), a group (lead.*) or everything (*). Each event's data.object has the id and object of the record it is about plus the fields listed below; the envelope around it is the same for every event.
field, label, old, new, from and to on change events: field is the field's key, label its name in the workspace's language, old and new the stored values (ids for references), and from and to the same values as shown to people (names instead of ids, where Kweko has them).
Events marked as not sent yet are accepted in subscriptions so you can prepare for them.
Events
lead.*
| Event | When | data.object |
|---|---|---|
lead.created | A lead was created: in Kweko, through the API, by an import, from an inbound message or call, or by an integration. | From the API and the Kweko app: number, name, amount, currency, pipeline_id, stage_id, owner_id, source, tags. Leads created from messages, calls and integrations carry their own fields. |
lead.updated | A lead was edited: one event per save, whatever changed. The specific events (lead.stage_changed, lead.field_changed and the rest) still follow. | changed (the changed field names, for example stage_id). |
lead.stage_changed | A lead moved to another stage. | from, to (stage ids), pipeline_id, from_type, to_type (incoming, open, won or lost). |
lead.pipeline_changed | A lead moved to another pipeline. | from, to (pipeline ids). |
lead.owner_changed | A lead got another owner. | field, label, old, new, from, to. |
lead.field_changed | A field of a lead changed (one event per field). | field (the field key), label (in the workspace's language), old, new, from, to. |
lead.won | A lead reached a won stage. | stage_id, amount, loss_reason. |
lead.lost | A lead reached a lost stage. | stage_id, amount, loss_reason. |
lead.reopened | A won or lost lead moved back to an open stage. | stage_id, amount, loss_reason. |
lead.deleted | A lead was deleted. | name, number. |
lead.restored | A deleted lead was restored. | name. |
lead.merged | Two duplicate leads were merged (by a member, or automatically by a duplicate rule). The event's record is the lead that stays; the other one is gone. | name, merged_from (the id of the merged-away lead), moved (how many tasks, notes, messages and other items moved, by kind), auto (true for a duplicate rule). |
contact.*
| Event | When | data.object |
|---|---|---|
contact.created | A contact was created. | From the API and the Kweko app: name, phones, tags. |
contact.updated | A field of a contact changed (one event per field). | field, label, old, new, from, to. |
contact.deleted | A contact was deleted. | name. |
contact.opted_out | A contact asked not to get marketing messages: STOP in a chat, the unsubscribe link of an SMS broadcast, or a member. Broadcasts and follow-up sequences skip them. | contact_id, source (keyword, link or manual). |
contact.opt_out_removed | A member removed a contact's opt-out (the client asked to hear from you again). | contact_id. |
company.*
| Event | When | data.object |
|---|---|---|
company.created | A company was created. | name, tags. |
company.updated | A field of a company changed (one event per field). | field, label, old, new, from, to. |
company.deleted | A company was deleted. | name. |
message.*
| Event | When | data.object |
|---|---|---|
message.received | A client wrote in a connected channel. | conversation_id, message_id, channel_id, channel, text, lead_id, contact_id; button when the client tapped a reply button (its id; text is its label), start for a Telegram /start link payload, new_conversation on the first message of a conversation. |
message.sent | An outgoing message was accepted by the channel, or the owner of a Telegram Business account wrote to a client from their own Telegram app (then external is true). | message_id, conversation_id, status; for owner messages also external, channel_id, channel, text, lead_id, contact_id. |
message.delivered | The channel reported an outgoing message as delivered. | message_id, conversation_id, status. |
message.read | The channel reported an outgoing message as read. | message_id, conversation_id, status. |
message.failed | An outgoing message could not be sent. | message_id, conversation_id, status, error. |
message.edited | A message was edited in the messenger (Telegram bot and Telegram Business chats). | message_id, conversation_id, channel_id, channel, text (the new text). |
message.deleted | A message was deleted in the messenger (Telegram Business chats). It stays in the Kweko history, marked deleted. | message_id, conversation_id, channel_id, channel. |
conversation.*
| Event | When | data.object |
|---|---|---|
conversation.created | The first message of a new conversation arrived. | The same fields as message.received. |
conversation.assigned | A conversation got an assignee (for example when a member first replies). | conversation_id, assignee_id. |
conversation.status_changed | A conversation was resolved, reopened or snoozed. | conversation_id, from, to, and until for snoozes. |
conversation.snoozed | A conversation was snoozed. | conversation_id, from, to, until. |
conversation.opted_out | A client wrote STOP (or another opt-out word, such as STOP in Uzbek or Russian) in a chat. The contact also gets contact.opted_out. | conversation_id, channel, contact_id. |
bot.*
| Event | When | data.object |
|---|---|---|
bot.started | A chat bot flow or the AI operator started talking in a conversation (one at a time per conversation). | conversation_id, automation_id, automation_name, kind (bot or agent), run_id. |
bot.handoff | A bot or the AI operator handed the conversation to a person (a handoff step, the client asked for a person, a low-confidence or ungrounded answer, or a turn or credit cap). The assignee (or the admins) are notified. | conversation_id, lead_id, reason, automation_name, member_ids. |
bot.stopped | A member took a conversation over from the bot with “Take over”. | conversation_id. |
sequence.*
| Event | When | data.object |
|---|---|---|
sequence.enrolled | A lead was enrolled in a follow-up sequence (by a member, in bulk, or by an automation). | lead_id, sequence_id, sequence_name, run_id. |
sequence.exited | A follow-up sequence stopped early for a lead: the client replied, the lead changed stage, or it was won or lost. | lead_id, sequence_id, sequence_name, run_id, reason (replied, stage_changed or lead_closed). |
broadcast.*
| Event | When | data.object |
|---|---|---|
broadcast.scheduled | An owner or admin confirmed a broadcast for a later time, or moved the time of a scheduled one. | broadcast_id, name, channel, scheduled_at, recipients (the confirmed count; the audience is checked again when it starts), estimated_cost, rescheduled, and previous_scheduled_at when it was moved. |
broadcast.unscheduled | A scheduled broadcast was called off before it started and is a draft again (canceled, or its audience or channel changed). | broadcast_id, name, scheduled_at, reason (canceled or audience_changed). |
broadcast.started | An owner or admin confirmed a broadcast, or its scheduled time came; sending starts at a paced rate. | broadcast_id, name, channel (telegram, whatsapp or sms), recipients, skipped (counts by reason), estimated_cost, and scheduled_at when it was scheduled. |
broadcast.completed | Every recipient of a broadcast was handled. | broadcast_id, name, channel, sent, failed, skipped. |
broadcast.paused | A broadcast was paused. | broadcast_id, name. |
broadcast.resumed | A paused broadcast was resumed. | broadcast_id, name. |
broadcast.canceled | A broadcast was canceled; recipients not reached yet are skipped. | broadcast_id, name. |
broadcast.failed | A scheduled broadcast could not start at its time (plan or daily limit, channel disconnected, nobody left to reach, template no longer approved); nothing was sent and the person who scheduled it is notified. | broadcast_id, name, channel, scheduled_at, reason (monthly_limit, daily_limit, channel_unavailable, no_recipients, template, audience, too_many_recipients or no_permission). |
call.*
| Event | When | data.object |
|---|---|---|
call.incoming | A client's call started ringing on a connected phone line (telephony integration or the Kweko softphone). | call_id, direction (in or out), status (ringing, answered, ended or missed), end_reason, from, to, client_phone (the client's number in full: webhooks are not masked), extension, member_id (who talked), owner_id, lead_id, contact_id, duration and talk_time (seconds), outcome, has_recording, started_at, answered_at, ended_at. |
call.outgoing | An outgoing call started: click-to-call from Kweko (then actor is the member or key that placed it), or a call dialled on a desk phone or the provider's app. | call_id, direction (in or out), status (ringing, answered, ended or missed), end_reason, from, to, client_phone (the client's number in full: webhooks are not masked), extension, member_id (who talked), owner_id, lead_id, contact_id, duration and talk_time (seconds), outcome, has_recording, started_at, answered_at, ended_at. |
call.answered | Someone picked up: the member for an incoming call, the client for an outgoing one. status is answered. | call_id, direction (in or out), status (ringing, answered, ended or missed), end_reason, from, to, client_phone (the client's number in full: webhooks are not masked), extension, member_id (who talked), owner_id, lead_id, contact_id, duration and talk_time (seconds), outcome, has_recording, started_at, answered_at, ended_at. |
call.ended | A call ended, answered or not. status is ended or missed; end_reason says why an unanswered call ended (no_answer, busy, failed, voicemail or canceled). An unanswered incoming call also sends call.missed right after. | call_id, direction (in or out), status (ringing, answered, ended or missed), end_reason, from, to, client_phone (the client's number in full: webhooks are not masked), extension, member_id (who talked), owner_id, lead_id, contact_id, duration and talk_time (seconds), outcome, has_recording, started_at, answered_at, ended_at. |
call.missed | An incoming call ended without being answered. Kweko also creates the call-back task when the line is set to. | call_id, direction (in or out), status (ringing, answered, ended or missed), end_reason, from, to, client_phone (the client's number in full: webhooks are not masked), extension, member_id (who talked), owner_id, lead_id, contact_id, duration and talk_time (seconds), outcome, has_recording, started_at, answered_at, ended_at. |
call.recording_ready | The provider made the call's recording available. | call_id, direction (in or out), status (ringing, answered, ended or missed), end_reason, from, to, client_phone (the client's number in full: webhooks are not masked), extension, member_id (who talked), owner_id, lead_id, contact_id, duration and talk_time (seconds), outcome, has_recording, started_at, answered_at, ended_at. Plus recording_path: fetch your workspace's address + /api + that path (https://<your-workspace>.kweko.uz/api/v1/calls/…/recording) with an API key that has calls:write to stream the audio. Kweko never sends the provider's own recording address, and the path works only with a key or a signed-in member who may listen to the call. |
call.transcribed | Kweko AI transcribed the call (the workspace turned call transcription on) and, when call review is on, reviewed it. | call_id, lead_id, contact_id, member_id, direction, language, audio_sec, credits (AI credits spent), has_review; with a review also summary, score (0 to 100), sentiment, next_steps. The transcript text itself is read with GET /v1/calls/{id}/transcript. |
call.outcome_set | A member (or a key with calls:write) recorded the call's outcome. | call_id, direction (in or out), status (ringing, answered, ended or missed), end_reason, from, to, client_phone (the client's number in full: webhooks are not masked), extension, member_id (who talked), owner_id, lead_id, contact_id, duration and talk_time (seconds), outcome, has_recording, started_at, answered_at, ended_at. Plus note and next_task_id when a follow-up task was created. |
task.*
| Event | When | data.object |
|---|---|---|
task.created | A task was created. | task_id, title, type, due_at, assignee_id, and entity_type, entity_id when it belongs to a record. |
task.updated | A task was changed. | The task.created fields and changed (the changed field names). |
task.completed | A task was completed. | The task.created fields and result. |
task.overdue | A task passed its due time without being completed. | The task.created fields. |
task.snoozed | A task was snoozed. | The task.created fields and until. |
task.deleted | A task was deleted. Deleting a repeating task also deletes its open repeats, one event each. | The task.created fields; repeat_of (the task it repeated) for a deleted repeat. |
note.*
| Event | When | data.object |
|---|---|---|
note.created | A note was added to a lead, contact or company. id and object are those of the record. | note_id, mentions (member ids). |
note.updated | A note was edited, pinned or unpinned. id and object are those of the record. | note_id; mentions_added (member ids the edit newly names) after an edit, pinned after a pin change. |
note.deleted | A note was deleted. id and object are those of the record. | note_id. |
object.*
| Event | When | data.object |
|---|---|---|
object.created | An object (a record of one of the workspace's own object types, such as a policy or a repair order) was created. | type (the object type's key), number, name, amount, currency, pipeline_id, stage_id (empty for types without a board), owner_id, contact_id, company_id, lead_id, tags. |
object.updated | An object was edited: one event per save. The specific events still follow. | type, changed (the changed field names). |
object.stage_changed | An object moved to another stage. | type, from, to (stage ids), pipeline_id, from_type, to_type (incoming, open, won or lost). |
object.pipeline_changed | An object moved to another pipeline of its type. | type, from, to (pipeline ids). |
object.owner_changed | An object got another owner. | type, field, label, old, new, from, to. |
object.field_changed | A field of an object changed (one event per field). | type, field (the field key), label, old, new, from, to. |
object.won | An object reached a won stage. | type, stage_id, amount, loss_reason. |
object.lost | An object reached a lost stage. | type, stage_id, amount, loss_reason. |
object.reopened | A won or lost object moved back to an open stage. | type, stage_id, amount, loss_reason. |
object.deleted | An object was deleted. | type, name, number. |
object.restored | A deleted object was restored. | type, name. |
product.*
| Event | When | data.object |
|---|---|---|
product.created | A product was added to the catalog. | name, price. |
product.updated | A product was changed. | name, price. |
product.archived | A product was archived. | name, price. |
product.deleted | A product was deleted from the catalog. | name. |
form.*
| Event | When | data.object |
|---|---|---|
form.submitted | A visitor sent a Kweko website form (embedded with widget.js or on the hosted page). The lead it created or was added to is the event's record; a new lead also sends lead.created. | form_id, form_name, submission_id, lead_id, contact_id, outcome (lead_created or note_added), answers (field, label, value), utm, referrer, landing_page. |
order.*
| Event | When | data.object |
|---|---|---|
order.created | A connected shop or back office (MoySklad and other order integrations) created an order for a lead. id and object are those of the lead. | lead_id, kind (the integration), order_id, order_name. |
order.status_changed | 1C reported a new status for a lead's order. id and object are those of the lead. | lead_id, kind (onec), status, document. |
order.payment_received | 1C reported a payment for a lead's order. id and object are those of the lead. | lead_id, kind (onec), amount, currency, document. |
booking.*
| Event | When | data.object |
|---|---|---|
booking.created | A customer booked online (hosted page or widget.js). status is confirmed, or pending when bookings need approval. The contact (and lead, when the service creates one) are new or found by phone. | id, status, service_name, member_id, customer_name, starts_at, ends_at, when (workspace time), contact_id, lead_id, task_id. |
booking.rescheduled | The customer moved their booking with the manage link. | The booking.created fields plus from and from_when. |
booking.canceled | A booking was canceled by the customer or by staff. | The booking.created fields plus canceled_by (customer or staff) and from_status. |
booking.status_changed | Staff confirmed a request or marked a visit as completed or no_show. | The booking.created fields plus from_status. |
proposal.*
| Event | When | data.object |
|---|---|---|
proposal.viewed | The client opened an online proposal page (a document shared as a link). Counted once per visitor per 30 minutes; link previews and the seller's own previews are not. | proposal_id, lead_id, document_id, invoice_id, title, kind, first (the first open), view_count, device. |
proposal.accepted | The client accepted an online proposal (typed name and a checkbox; not a digital signature). | The proposal.viewed identifiers, accepted_name, accepted_at. |
proposal.declined | The client declined an online proposal. | The proposal.viewed identifiers, reason (may be empty). |
bulk_job.*
| Event | When | data.object |
|---|---|---|
bulk_job.started | A bulk change started in the background. | entity, action, total. |
bulk_job.completed | A bulk change finished. | entity, action, changed, skipped, records (the ids it changed). |
bulk_job.undone | A bulk change was undone. | entity, restored, conflicts (records edited since, left as they are). |
limit.*
| Event | When | data.object |
|---|---|---|
limit.warning | The workspace is close to a plan limit. | key, limit, current, plan. |
limit.reached | The workspace reached a plan limit. | key, limit, current, plan. |
restriction.*
| Event | When | data.object |
|---|---|---|
restriction.applied | Kweko paused a feature of the workspace (anti-abuse protection). | stage, feature, reason_code. |
restriction.lifted | A restriction ended. | stage, feature. |
pipeline.*
| Event | When | data.object |
|---|---|---|
pipeline.updated | A pipeline was renamed or its settings changed. | name. |
field.*
| Event | When | data.object |
|---|---|---|
field.created | A custom field was created. | entity, key, type. |
field.updated | A custom field was changed (its settings, its group, or its type). | entity, key; after a type change also type, from_type, converted and removed (values kept and dropped). |
field.deleted | A custom field was deleted. | entity, key. |
field.group_created | A group of custom fields was created. | entity, id, name. |
field.group_updated | A field group was renamed or its rules changed. | entity, id, name. |
field.group_deleted | A field group was deleted. Its fields stay, ungrouped. | entity, id, name. |
member.*
| Event | When | data.object |
|---|---|---|
member.joined | Someone accepted an invite and joined the workspace. | role. |
member.deactivated | A member was deactivated. | status. |
webhook.*
| Event | When | data.object |
|---|---|---|
webhook.disabled | Kweko disabled one of your webhooks after failed deliveries. | reason, last_status, last_error. |
workspace.*
| Event | When | data.object |
|---|---|---|
workspace.plan_changed | The workspace's plan or seat count changed: an upgrade, a downgrade, a trial ending, a lapsed payment moving it to Free. Fetch GET /v1/limits again or read the snapshot here. | from and to (plan, plan_name, seats), previous_limits and limits (the limits snapshot). |