In the Integrations section of the platform, you can activate the sending of Webhooks to your management system for a number of events occurring on Spoki.
Log in to the platform and go to Integrations >> Webhook >> click on Add Webhook

A tab will then open with a list of events that you can notify to your management system. You can choose to activate Webhooks for as many events as you wish.

- Chat unread messages: This event is notified when a chat has unread messages or when it no longer has any. It is the equivalent of the green badge shown on the platform;
- Message sent: this event is notified when a message has been sent and each time it is updated;
- Message received: this event is notified when a message has been received and each time it is updated.
- Note added: This event is notified when a note has been added to the chat;
- Contact created: This event is notified when a contact is created;
- Contact updated: This event is notified when a contact is updated;
- Contact deleted: this event is notified when a contact is deleted;
- Tag added to contact: this event is notified when a tag is added to a contact;
- Tag deleted from contact: this event is notified when a tag is deleted from a contact;
- Contact added to list: this event is notified when a contact is added to the list;
- Contact deleted from list: this event is notified when a contact is deleted from the list;
- ContactField created or updated: this event is notified when a ContactField is created or updated;
- Campaign created: this event is notified when a campaign has been created (
campaign.created); - Campaign deleted: this event is notified when a campaign has been deleted (
campaign.deleted); - Campaign status changed: this event is notified when a campaign status changes (
campaign.status_changed); - Channel Activation: this event is notified at each step of the WhatsApp number activation flow (
channel.activation); - WhatsApp Channel Status: this event notifies the status of the WhatsApp channel (
channel.whatsapp.status); - SMS One-way Channel Status: this event notifies the status of the SMS One-way channel (
channel.sms_one_way.status); - SMS Two-way Channel Status: this event notifies the status of the SMS Two-way channel (
channel.sms_two_way.status); - Account Restriction: this event is notified when an account restriction is applied by Meta (
channel.whatsapp.restriction); - Account Violation: this event is notified when an account violation is detected by Meta (
channel.whatsapp.violation); - Account Tier Changed: this event is notified when the account conversation tier has changed (
channel.whatsapp.tier_changed); - Contact dynamic field deleted: this event is notified when a contact dynamic field is deleted (
contact_field.deleted); - Form submitted: this event is notified when a form has been filled and submitted (
form_answer.submitted); - Template created: this event is notified upon the creation of a template (
template.created); - Template updated: this event is notified upon the update of a template (
template.updated); - Template removed: this event is notified upon the deletion of a template (
template.deleted); - Voice call terminated: this event is notified when a voice call has terminated. Fired immediately on hangup, before any post-call processing (
voice.call.terminated); - Voice call summarized: this event is notified when a voice call has been completed and post-call processing (e.g. evaluation) has finished (
voice.call.summarized); - Voice call tags changed: this event is notified when the tags associated with a voice call change (
voice.call.tags_changed); - Voice tag created: this event is notified when a voice call tag is created (
voice.tag.created); - Voice tag updated: this event is notified when a voice call tag is updated (
voice.tag.updated); - Voice tag deleted: this event is notified when a voice call tag is deleted (
voice.tag.deleted);
Signature verification: every notification is signed with the webhook token. In v2 webhooks the X-Spoki-Signature header has the format t=<timestamp>,v2=<signature>, where the signature is the HMAC-SHA256 (hex) of the string "<timestamp>.<body>" computed with the token. In v1 webhooks the signature is in the X-SPOKI-HASH header (PBKDF2-HMAC-SHA256, 200,000 iterations). Verify the signature before processing the notification.
On the tab you are asked to indicate the Callback URL in your management system, to which notifications of that specific selected event will be sent whenever it occurs on Spoki.
