POST with a JSON body. Events lists every event, and each one has a page in the API reference with the fields of its call.
Partner webhooks are for partner accounts. A workspace that is not a partner can be called when a visitor sends an entry: see MCP events. The partner integration guide covers notifications and webhooks in section 4, and section 11 covers how a failed delivery is tried again.
Set up a webhook
1
Make an address that takes a POST
Widgetic only calls an address that is:
https, on the standard port (443), with no user name or password in it;- the name of a public website: not an IP address, not a single word such as
intranet, and not a name that ends in.local,.internal,.lanor another suffix of private networks; - at most characters long.
2
Save it in your notification settings
Send
webhookUrl to PUT /partners/{partnerId}/notifications/settings, with an API key that has full access. The first time you save an address, the answer holds your signing secret as webhookSecret. It is shown once, so store it now, where your receiver can read it.3
Send a test event
Try your receiver before a real event comes: see Send a test event.
4
Check every call
Verify the signature, and handle each event once: see Verify signatures.
The same route sets where the emails go: see Notifications.
What a call looks like
The body is JSON, and the headers are those of the Standard Webhooks scheme, so any of its libraries can verify a call. This is one as it arrives:Answer and retries
Answer with a2xx within , and do the work afterwards. Widgetic reads at most of your answer and ignores what it says, so keep it short.
A call is tried times in all, the last one after the first. Each wait begins when the attempt before it failed, and your address is read again for every attempt, so a receiver you mend in the meantime still gets the event.
Delivery is at least once. If your answer is lost, the same event arrives again with the same
webhook-id. A slow receiver, or one that is down for a while, does not lose an event, but your code has to be able to meet one twice, and to meet events in a different order than they happened, because a retried event arrives after newer ones. Keep the ids you handled and drop a repeat.
Send a test event
POST /partners/{partnerId}/notifications/test-event makes one call, now, to your saved address, with made-up data of the type you name, and tells you how it went. Use it to write your receiver, above all the signature check, before a real event happens.
A test call is made like every other, with these differences:
- Its
idstarts withevt_test_and is new every time, so a receiver that remembers ids can tell a test from a real event. - It is sent once and is not tried again, and it is not kept in your delivery log.
- It is sent whatever
webhookEventssays. - Its
datais made up, in the shape a real event of that type carries.
Idempotency-Key. You can send a minute: more are refused with 429, and Retry-After says when to try again. Without a saved address and secret the answer is 409.
Rotate the secret
POST /partners/{partnerId}/notifications/webhook-secret makes a new secret and returns it once as webhookSecret. Use it when the secret was lost or may have leaked. The old secret keeps signing for , next to the new one, so that your receiver can switch without a call being rejected: during that time each call carries two signatures, and the code of Verify signatures accepts either. Rotating again within that time ends the overlap with the first secret.
Send an Idempotency-Key with it, and retry with the same key if the answer was lost: you get the same answer, secret included, and no second secret is made. The call needs an API key with full access.
See what was sent
The delivery log lists every call to your webhook, with whether it was delivered, when it is tried again, how many attempts it had, the status your address answered with and why the last attempt failed. You can send a delivery again, for example after you mended your receiver, and it keeps thewebhook-id. See See what was sent.
Errors
Verify signatures
Check a call in TypeScript, Python, Go, Java, C#, Ruby or PHP.
Events
Every event, when it happens, and whether it is also emailed.
Notifications
Emails, the dashboard list and the delivery log.