post
https://public.doubletick.io/v2/webhook/register
Registers a webhook URL that receives the chosen events for one or more of your WhatsApp numbers.
Before you call
- The API key's user needs permission to add webhooks.
name,url,method,webhookEventsandwabaNumbersare required.- All
wabaNumbersmust be channels of the same type.
How it works
validWebhookslists the number and event pairs that were registered.- Each event on a number allows 5 webhook URLs by default; numbers already at that limit are skipped and listed in
invalidWebhooks. invalidWabaNumberslists numbers not found in your organization; fails if none are found.- Get the new webhook's
webhookIdfrom Get Webhooks.
Instagram referrals
REFERRAL_RECEIVEDfires on Instagram channels when a customer reaches you from a Click-to-Direct ad, an Instagram Shop product or anig.melink with aref.- Ad and product referrals arrive with the customer's message, which also gets a
referralobject in itsMESSAGE_RECEIVED. Anig.melink opened in an existing conversation has no message, so onlyREFERRAL_RECEIVEDis sent. - Payload:
from,to,handle,channelHandle,channelType(INSTAGRAM),integrationType,dtCustomerId,contact.name,receivedAt,dtMessageIdandreferral.dtMessageIdis the DoubleTick message the referral belongs to: the customer's message for an ad or product, the conversation's system message for anig.melink. It stays the same if the event is sent again, so you can use it to drop duplicates. Ad and product referrals also carrymessageId, the Instagram message ID. referraluses the keys of WhatsApp click-to-WhatsApp referrals:source_type(ad,productorlink),source_id(the ad or product ID),headline,media_type,image_url,post_id,product_id,refandsource. Keys Instagram does not send are left out. Arefoutside Instagram's format (letters, digits,-,_and=, up to 2,083 characters) is left out, so anig.melink with such arefsends no event.- Example
referralfor an ad:{"source_type": "ad", "source_id": "120210000000001", "headline": "Summer sale", "media_type": "image", "image_url": "https://...", "ref": "summer_sale"}
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…

