Skip to main content

Webhooks: Get Notified When Something Happens in Your Account

Get a signed HTTPS request when a contact changes, sends a message or comments, or when the AI Agent needs a human, and learn how to verify it, test it and read the logs.

Webhooks make Inrō call your own server the moment something happens in your account: a new contact, a changed field, a folder move, a new message or comment, or an AI Agent conversation that needs a person. Use them to keep a CRM, a spreadsheet or your own app in sync, as it happens, instead of asking the API every few minutes.

Each request is signed, so your server can check that it really comes from Inrō.

Create a webhook

  1. Open Integrations in the sidebar (or Profile → API, MCP & Webhooks) and click Webhooks under Build your own.

  2. Click Add webhook.

  3. Paste the URL that should receive the requests. It must start with https://.

  4. Tick the events you want and save.

Right after you save, the webhook's signing secret appears. You can show it again at any time with the Signing secret button on the webhook. Every webhook has its own secret.

Events

  • contact.created: a new contact was created.

  • contact.updated: a contact's details or custom properties changed. This includes changes made by your automations.

  • contact.folder_added: a contact was added to a folder.

  • contact.folder_removed: a contact was removed from a folder.

  • message.received: a contact sent you one or more direct messages. Messages sent a few seconds apart arrive as one event, about 5 seconds after the last one.

  • comment.received: someone commented on one of your posts, reels or lives.

  • agent.cannot_reply: the AI Agent found no answer to a contact's message and did not reply. It carries the messages it could not answer.

  • conversation.human_requested: the AI Agent handed a conversation over to a human. It carries the agent's summary (when enabled) and the latest messages, oldest first.

What your server receives

Every event is a POST with a JSON body:

{
  "id": "7c1f0a52-0b6e-4c64-9e7d-3f2a9d1b8e10",
  "event": "contact.created",
  "created_at": "2026-11-20T10:00:01Z",
  "organization_id": 1234,
  "organization": { "id": 1234, "username": "maison_lumiere", "name": "Maison Lumière" },
  "data": {
    "contact": {
      "id": 123,
      "name": "Camille Dubois-Lefèvre",
      "username": "camille.dl",
      "email": "[email protected]"
    }
  }
}

organization is the Inrō account the event is about. data always holds the contact, plus:

  • folder for the two folder events.

  • message and message_group for message.received. message_group has an id, the combined content and all the messages of the group, oldest first. message is the last of them.

  • comment for comment.received.

  • conversation and messages for agent.cannot_reply and conversation.human_requested. The conversation also carries the agent's summary on the second one.

Contacts, folders and messages have the same fields as in the public API. The full payload of every event, with a sample, is in the Webhooks section of the API reference.

The request also carries these headers:

  • X-Inro-Event: the event name.

  • X-Inro-Delivery: a unique id for the event. It is the same as id in the body.

  • X-Inro-Timestamp: when the request was signed, in Unix seconds.

  • X-Inro-Signature: the signature, as sha256= followed by a hex string.

Verify the signature

Anyone who knows your URL could send it a fake request. The signature lets your server tell the difference. It is an HMAC-SHA256 of the timestamp, a dot and the raw request body, made with the webhook's signing secret:

sha256=HMAC_SHA256(secret, timestamp + "." + raw_body)

On each request:

  1. Compute the signature from the raw body, exactly as received. Don't parse and re-serialize the JSON first, or the bytes change.

  2. Compare it with X-Inro-Signature using a constant-time comparison.

  3. Reject requests whose X-Inro-Timestamp is more than a few minutes old, so a captured request can't be replayed later.

Node.js

const crypto = require("crypto");function verifyInroSignature(rawBody, headers, secret) {
  const timestamp = headers["x-inro-timestamp"];
  const received = headers["x-inro-signature"] || "";
  const expected =
    "sha256=" +
    crypto
      .createHmac("sha256", secret)
      .update(`${timestamp}.${rawBody}`)
      .digest("hex");
  const a = Buffer.from(expected);
  const b = Buffer.from(received);
  const fresh = Math.abs(Date.now() / 1000 - Number(timestamp)) < 300;
  return a.length === b.length && crypto.timingSafeEqual(a, b) && fresh;
}

Python

import hashlib, hmac, timedef verify_inro_signature(raw_body: bytes, headers: dict, secret: str) -> bool:
    timestamp = headers.get("X-Inro-Timestamp", "")
    received = headers.get("X-Inro-Signature", "")
    signed = timestamp.encode() + b"." + raw_body
    expected = "sha256=" + hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
    fresh = abs(time.time() - int(timestamp or 0)) < 300
    return hmac.compare_digest(expected, received) and fresh

Reply, retries and failures

  • Answer with any 2xx status within 10 seconds. Do the heavy work after replying.

  • Any other answer, a timeout or a redirect counts as a failed attempt. Inrō tries again after 1 minute, 10 minutes, 1 hour and 6 hours: 5 attempts in all.

  • An event can reach you more than once (a retry, or Send again). Use the id to ignore ones you already handled.

  • If your server answers 410 Gone, the webhook is turned off right away.

  • After 20 failed events in a row, the webhook is turned off and the reason is shown on it. Fix your server, then click Resume.

Test it and see what happened

Click Send test on a webhook to send a sample event to its URL. A window opens with the result: the status, the response your server gave and the exact request that was sent, signature included. Test events are not retried.

Every real event is listed in the Webhooks tab of the platform logs, where you can filter by webhook, event and status. Open one to see its data, headers and your server's response, and use Send again to deliver it once more. Logs are kept for 30 days. See Platform Logs: See Every Request and Error.

Contact activations

An event about a contact counts towards your monthly contact activations, like an automation run does. A contact is counted once per billing period, however many events it triggers. If your monthly limit is reached, the event is not sent and shows as Not sent in the logs. Test events and Send again never count.

Limits

  • The URL must use https://, can't contain a username or password, and must point to a public address. Local and private network addresses are refused.

  • You can have up to 20 webhooks.

  • Each webhook delivers only the events you ticked.

Via the API and MCP

Everything you can do on the page, you can do from code or from your AI agent. Webhooks are under /api/v1/webhook_subscriptions (see The Inrō Private API: Getting Started for the token). Creating a webhook is the subscribe call and deleting it is the unsubscribe call, which is what tools that expect webhook subscriptions need.

POST /api/v1/webhook_subscriptions
{
  "url": "https://example.com/inro-events",
  "events": ["contact.created", "message.received"]
}

The response includes the signing secret. GET /api/v1/webhook_events lists every event with a sample payload.

With the MCP server, your agent uses webhook_subscriptions to list, get, list_deliveries, get_delivery and list_events, and webhook_subscriptions_manage to create, update, delete, test and redeliver.

🐾 Netsuke's Tips

  • Reply fast and process later. If answering takes more than 10 seconds, the event is retried and you handle it twice.

  • Keep the signing secret out of your code repository. Read it from an environment variable.

  • Start with Send test before waiting for a real event: it shows exactly what your server sees.

  • If a webhook was turned off, the logs show the last answers it got. That is usually where the cause is.

What's next?

Did this answer your question?