メインコンテンツまでスキップ

Webhook Events

Convotic normalizes webhook payloads from all platforms into a unified event format. This page lists all event types and the standard event envelope.

Event envelope

Every event follows this structure:

{
"id": "evt_01HQ3X7K9P2M5N8R4T6V",
"type": "messaging.message.received",
"workspace_id": "ws_abc123",
"block_id": "blk_instagram_456",
"platform": "instagram",
"timestamp": "2026-03-31T10:15:30.000Z",
"data": {
"contact_id": "ct_xyz789",
"conversation_id": "conv_def012",
"message": {
"id": "msg_ghi345",
"text": "Hi, I want to check my order status",
"type": "text",
"direction": "inbound"
}
},
"metadata": {
"raw_platform_event_id": "mid.$cAAJsujCd0OR1"
}
}

Envelope fields

FieldTypeDescription
idstringUnique event ID.
typestringEvent type in domain.entity.action format.
workspace_idstringThe workspace this event belongs to.
block_idstringThe Block that produced this event.
platformstringThe source platform (instagram, line, messenger, whatsapp, telegram).
timestampstringISO 8601 timestamp of when the event occurred.
dataobjectEvent-specific payload (varies by event type).
metadataobjectAdditional context, including the raw platform event ID.

Event types by domain

Messaging

Event typeDescription
messaging.message.receivedAn inbound message was received from a contact.
messaging.message.sentAn outbound message was sent to a contact.
messaging.message.deliveredA sent message was delivered to the contact's device.
messaging.message.readA sent message was read by the contact.
messaging.message.failedA message failed to send.
messaging.conversation.createdA new conversation was started.
messaging.conversation.closedA conversation was closed by an agent.
messaging.comment.createdA comment was posted on a social media post.
messaging.story_reply.receivedA story reply was received (Instagram).
messaging.reaction.addedA reaction was added to a message.
messaging.reaction.removedA reaction was removed from a message.
messaging.followA user followed / added the account.
messaging.unfollowA user unfollowed / removed the account.
messaging.postbackA user tapped a postback button.

Commerce

Event typeDescription
commerce.order.createdA new order was placed.
commerce.order.updatedAn order status was updated.
commerce.order.fulfilledAn order was fulfilled / shipped.
commerce.order.cancelledAn order was cancelled.
commerce.cart.abandonedA cart was abandoned (no purchase within threshold).

CRM

Event typeDescription
crm.contact.createdA new contact was created.
crm.contact.updatedA contact record was updated.
crm.contact.mergedTwo contact records were merged.
crm.deal.createdA new deal was created.
crm.deal.stage_changedA deal moved to a different pipeline stage.

Automation

Event typeDescription
automation.workflow.startedA Workflow execution started.
automation.workflow.completedA Workflow execution completed.
automation.workflow.failedA Workflow execution failed.
automation.workflow.pausedA Workflow execution is waiting (e.g., Wait for Reply).

Platform

Event typeDescription
platform.block.connectedA Block was connected to the workspace.
platform.block.disconnectedA Block was disconnected.
platform.block.errorA Block encountered an error (e.g., expired token).
platform.webhook.verifiedA webhook endpoint was verified by a platform.

PTM (Post-Transaction Messaging)

Event typeDescription
ptm.notification.sentA post-transaction notification was sent.
ptm.notification.deliveredA post-transaction notification was delivered.
ptm.notification.clickedA post-transaction notification link was clicked.