Skip to main content
A webhook is an HTTP POST Inboxapp sends to your server when something changes: a message arrives, a thread is archived, a contact’s status moves. Create webhooks in Settings → Webhooks and choose the event types each one receives.

The event

Every event has the same envelope:

Events are thin

Webhooks follow the thin-event pattern: an event names the object that changed and carries only the values of the change, never the object itself.
  • Small payloads. An event is a few hundred bytes, whatever the size of the conversation behind it.
  • Out-of-order events are harmless. You read the current state from object.url, so a late event can’t overwrite newer data with old.
  • Idempotent by design. Handling the same event twice reads the same state twice.
handler.ts
object.url answers 404 once the object is deleted.
Verify each request before trusting it. See Verifying webhook signatures.

Event types

Each event type has its own page under Event types with its full schema.
  • thread.assigned reports the thread’s own assignee. contact.assigneeChanged reports the contact’s default.
  • connectionRequest.* events point at the thread between the account and the profile. A thread opened for a request has no message yet, so GET /threads leaves it out until one arrives, but object.url reads it. Its profile’s relationships hold the request’s state.
  • Requests sent outside Inboxapp, and the acceptance or withdrawal of any request, can take a few hours to arrive.
  • follower.created points at the thread between the account and the new follower, opened the same way as for a connection request. Its data.profile names the follower, so you don’t need to fetch the thread to know who it is. A new follower can take up to about 20 minutes to arrive, the people who already follow an account when it is linked are never announced, and each follower is announced once per account.
  • message.seen fires when a contact reads one of the account’s messages, on platforms that report reads. It names the latest message read, so a read of an earlier message fires nothing.
  • Values in data are the ones that change wrote. They can be out of date by the time you read them.
  • New event types and data fields can be added within v2. Ignore what you don’t know.

Delivery

Each event is delivered once, with no retries, and your response isn’t checked. Events for every platform your team has linked arrive on the same webhook. Your endpoint should:
  1. Answer with a 2xx quickly, and do the work afterwards
  2. Deduplicate on id
  3. Store the highest seq it has processed

Replay missed events

Events are kept for 7 days, up to 25,000 per team. After downtime, read what you missed from the seq of the last event you processed:
replay.ts
A page can hold fewer events than limit. Continue from lastSeq while hasMore is true. Filter with type, repeated for several.