Cloodot
Developers

Webhooks

Get a signed HTTPS request from Cloodot the moment a conversation or contact changes, and send it straight into your own systems.

Go to Settings → Developers → Webhooks to have Cloodot call your server when something happens in your workspace: a conversation is resolved, a contact moves to a new stage, a customer submits a WhatsApp Flow. Use it to keep a CRM, an ERP, a data warehouse or an on-call channel in step with your inbox, without polling the API.

The webhook endpoints list, with one healthy, one failing, one disabled and one paused endpoint

Webhook settings are available to admins and owners only.

Webhooks send events to your servers. To react to an event inside Cloodot, such as replying, assigning or tagging, use a workflow instead. Both fire on the same events.

Add an endpoint

Open Webhooks

Go to Settings → Developers → Webhooks and click Add endpoint.

Enter the URL

Paste the address that should receive events, for example https://ops.northbeamsupply.com/hooks/cloodot. It must use https:// and be reachable from the public internet. Cloodot won't send to localhost, private network addresses or .local / .internal hosts.

Add a Description so your team knows what the endpoint feeds, such as "Order sync for our ERP".

Choose the events

  • All events sends every event on the list below, plus any Cloodot adds later. Most integrations want this.
  • Choose events opens a searchable list grouped by area. Tick a group to take all of it.

Save and send a test

Click Add endpoint. You land on the endpoint's page. Click Send test event to check your receiver right away.

Adding an endpoint and choosing the events it receives

Events

EventSent when
conversation.createdA customer starts a new conversation on any channel
conversation.openedA conversation is opened or reopened
conversation.resolvedA conversation is marked resolved
conversation.snoozedA conversation is snoozed until later
conversation.starredA teammate stars a conversation
conversation.assigned_to_aiAn AI agent takes over a conversation
conversation.assigned_to_memberA teammate is assigned to a conversation
conversation.unassignedA conversation's assignee is cleared
conversation.assigned_to_teamA conversation is routed to a team
conversation.unassigned_from_teamA conversation leaves a team's queue
conversation.label_addedA label is added to a conversation
conversation.label_removedA label is removed from a conversation
contact.createdA new contact is added to the workspace
contact.updatedA contact's details or custom fields change
contact.deletedA contact is deleted
contact.stage_changedA contact moves to another pipeline stage
contact.details_sharedA customer shares their name, email or phone in chat
whatsapp_flow.submittedA customer completes a WhatsApp Flow form
instagram_comment.createdSomeone comments on one of your Instagram posts
instagram_story.repliedSomeone replies to one of your Instagram stories
instagram_story.mentionedSomeone mentions you in their Instagram story
webhook.testYou click Send test event. Never sent by a real event

Event names never change once published. When Cloodot adds an event, endpoints set to All events start receiving it automatically.

What Cloodot sends

Each event is a POST with a JSON body and these headers:

HeaderValue
content-typeapplication/json
webhook-idThe message ID, such as msg_esca063zQ2. The same on every retry
webhook-timestampWhen this attempt was sent, in Unix seconds
webhook-signatureOne or more v1,<signature> values, space-separated
user-agentCloodot-Webhooks/1.0

The body is always the same envelope:

{
  "id": "msg_esca063zQ2",
  "type": "contact.stage_changed",
  "api_version": "2026-11-25",
  "created_at": "2026-11-25T17:38:00.000Z",
  "organization_id": "org_northbeam",
  "data": {
    "contactId": "ct_megan_whitaker",
    "contactName": "Megan Whitaker",
    "fromStageId": "stg_quote",
    "fromStageName": "Quote sent",
    "toStageId": "stg_won",
    "toStageName": "Order placed"
  }
}

data holds the IDs of what changed, such as conversationId or contactId. Use them with the API to fetch the full record.

Verify signatures

Anyone can send a request to your URL. Check the signature before you trust one. Cloodot signs with the Standard Webhooks scheme, so any of its official libraries works.

Copy the endpoint's Signing secret from its page; it starts with whsec_. Then verify each request against the raw request body, before you parse it as JSON. Re-serializing the JSON changes the bytes and the signature won't match.

Node.js, with the official library (npm install standardwebhooks):

import { Webhook } from 'standardwebhooks'

const wh = new Webhook(process.env.CLOODOT_WEBHOOK_SECRET)

// rawBody is the request body as a string, exactly as received.
// Throws if the signature is wrong or the request is older than 5 minutes.
const event = wh.verify(rawBody, {
  'webhook-id': req.headers['webhook-id'],
  'webhook-timestamp': req.headers['webhook-timestamp'],
  'webhook-signature': req.headers['webhook-signature'],
})

Node.js, without a library:

import crypto from 'node:crypto'

function verifyCloodotWebhook(rawBody, headers, secret) {
  const id = headers['webhook-id']
  const timestamp = headers['webhook-timestamp']
  const signatures = headers['webhook-signature']
  if (!id || !timestamp || !signatures) return false

  // Reject requests older (or newer) than 5 minutes.
  const age = Math.abs(Date.now() / 1000 - Number(timestamp))
  if (!Number.isFinite(age) || age > 5 * 60) return false

  const key = Buffer.from(secret.replace(/^whsec_/, ''), 'base64')
  const expected = crypto
    .createHmac('sha256', key)
    .update(`${id}.${timestamp}.${rawBody}`)
    .digest('base64')

  return signatures.split(' ').some(entry => {
    const [version, signature] = entry.split(',')
    if (version !== 'v1' || !signature) return false
    const a = Buffer.from(signature)
    const b = Buffer.from(expected)
    return a.length === b.length && crypto.timingSafeEqual(a, b)
  })
}

Python:

import base64, hashlib, hmac, time

def verify_cloodot_webhook(raw_body: bytes, headers: dict, secret: str) -> bool:
    msg_id = headers.get("webhook-id")
    timestamp = headers.get("webhook-timestamp")
    signatures = headers.get("webhook-signature")
    if not (msg_id and timestamp and signatures):
        return False
    if abs(time.time() - int(timestamp)) > 5 * 60:
        return False

    key = base64.b64decode(secret.removeprefix("whsec_"))
    signed = f"{msg_id}.{timestamp}.".encode() + raw_body
    expected = base64.b64encode(hmac.new(key, signed, hashlib.sha256).digest()).decode()

    for entry in signatures.split(" "):
        version, _, signature = entry.partition(",")
        if version == "v1" and hmac.compare_digest(signature, expected):
            return True
    return False

Return a 401 when verification fails, so the attempt shows as failed in Deliveries.

Respond quickly, and expect duplicates

  • Answer with a 2xx within 15 seconds. Anything else is a failed attempt, including a redirect (3xx), a timeout or a connection error. Cloodot does not follow redirects, so give it the final URL.
  • Do slow work afterwards. Store the event, return 200, then process it in the background.
  • Ignore duplicates. Delivery is at least once: a network blip can deliver the same event twice. Every attempt for an event carries the same webhook-id, so skip any ID you've already handled.
  • Don't rely on order. Events can arrive out of order. Use created_at, or fetch the latest state from the API, when order matters.

Retries

When an attempt fails, Cloodot tries again. Each event gets up to 8 attempts over about 28 hours:

AttemptSent after the previous one fails
1Immediately
21 minute
35 minutes
430 minutes
52 hours
65 hours
710 hours
810 hours

Each retry time varies by up to 10%, so a recovering server isn't hit by every retry at once. After the eighth failure the delivery is marked Failed. You can still replay it by hand.

Endpoint health

The Status column and the banner on an endpoint's page tell you how it's doing:

StatusWhat it means
ActiveDeliveries are succeeding
FailingEvery delivery since the time shown has failed. Cloodot keeps retrying
PausedYou paused it. Nothing is sent, and events from that time are not sent later
DisabledCloodot turned it off. Nothing is sent until you re-enable it

Cloodot disables an endpoint when:

  • every delivery has failed for 5 days in a row. The Failing banner shows the date this will happen, so you have time to fix it.
  • your server answers 410 Gone. That's the standard way to say "stop sending here".

A failing endpoint, with the date Cloodot will disable it and deliveries still retrying

To turn a disabled endpoint back on, fix your receiver, then click Re-enable in the banner. Events from while it was off aren't queued, so use the API to catch up if you need them.

Error rate on the list covers the last 7 days. A dash means nothing has finished delivering yet.

Deliveries and replay

An endpoint's page lists every event sent to it. Filter by Failed, Retrying or Delivered, or by event.

Click a delivery to open it. You'll see:

  • Message ID, the same value as the webhook-id header;
  • every attempt, with your server's status code (or Timeout / Refused), how long it took, and the response body and headers it returned;
  • the exact Payload that was sent;
  • the Next retry time, while Cloodot is still retrying.

A delivery opened, showing three failed attempts, the response body and the payload

Click Replay to send the same event again right away, with the same message ID and payload. A replay is one attempt. It doesn't use up the automatic retries, and it works on deliveries that already failed.

Send test event sends a webhook.test event once, even to a paused endpoint. It isn't retried.

Signing secrets

Each endpoint has its own secret. On the endpoint's page:

  • click the eye to reveal it, then the copy button. Revealing a secret is recorded in the audit log.
  • click Rotate to replace it, for example if it may have leaked or when a teammate leaves.

Rotating doesn't break your receiver. For 24 hours after a rotation, Cloodot signs every request with both the new and the old secret. Each appears as its own v1, entry in webhook-signature. Update your receiver to the new secret any time in that window.

Because of that window, you can rotate an endpoint's secret once every 24 hours. Rotating again sooner shows the time it becomes possible.

Pause, edit or delete an endpoint

Use the More menu on the endpoint's page:

  • Edit endpoint changes the URL, description or events.
  • Pause deliveries stops sending without deleting anything. Events that happen while an endpoint is paused aren't sent later.
  • Delete endpoint stops sending at once and deletes its delivery history. This can't be undone.

A workspace can have up to 20 endpoints.

Troubleshooting

  • Every delivery shows 401 or 403. Your receiver is rejecting the signature. Make sure you verify the raw body, not parsed and re-encoded JSON, and that you're using this endpoint's secret.
  • Deliveries show Timeout. Your server took longer than 15 seconds. Return 200 first and do the work afterwards.
  • Deliveries show Refused. The URL isn't https://, or it points at a private or internal address. Edit the endpoint to use a public https:// URL.
  • Deliveries show 301 or 302. Your URL redirects. Use the address it redirects to.
  • The same event arrived twice. That's expected. Ignore any webhook-id you've already handled.
  • API: fetch the full conversation or contact an event points at
  • Logs: see the API requests your integration makes back to Cloodot
  • Workflows: react to the same events inside Cloodot

On this page