Webhooks
We POST a small JSON event to your endpoint when something happens in a session. Add endpoints in the dashboard; each gets its own signing secret, shown once.
Events
| Type | When |
|---|---|
| session.updated | A session was created, or the caller joined it. |
| page.changed | The caller moved to a different page or the page title changed. |
| consent.updated | The caller allowed, declined or withdrew page sharing. |
| action.completed | The agent or staff highlighted, scrolled, annotated or cleared. |
| handoff.requested | The agent asked for a person to take over. |
| handoff.taken_over | A team member joined from a handoff and is now helping the caller. Use it to mute or end your AI agent on the call. |
| session.ended | The session ended or expired. |
{
"id": "evt_48213",
"organisation_id": "7d1f0f3a-2c4b-4e5d-8a6f-0b1c2d3e4f5a",
"session_id": "0b0e7c1e-6f0a-4c8e-9d0b-2f1a3c4d5e6f",
"type": "session.ended",
"occurred_at": "2026-11-19T11:04:10.512Z",
"data": { "event": "session.ended", "actor": "agent", "reason": "agent_ended" }
}Events carry ids, statuses and counts. They never contain page text, element names, what the caller typed, or what the agent said.
Verify the signature
Every delivery has an X-BrowseMCP-Signature header of the form t=<unix seconds>,v1=<hex>, where the hex value is the HMAC-SHA256 of t + "." + body using your endpoint's secret. Check it against the raw body before parsing, and reject timestamps more than five minutes old.
import { createHmac, timingSafeEqual } from "node:crypto";
export function verify(secret, rawBody, header) {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
const t = Number(parts.t);
if (!Number.isInteger(t) || Math.abs(Date.now() / 1000 - t) > 300) return false;
const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
const given = String(parts.v1 ?? "");
return (
expected.length === given.length &&
timingSafeEqual(Buffer.from(expected), Buffer.from(given))
);
}Delivery
- Endpoints must be https on a public host name. Redirects are not followed.
- Answer with any 2xx status within 10 seconds. Do slow work after you answer.
- Deliveries go out about once a minute, so an event can arrive up to a minute after it happened.
- A failed delivery is retried with growing pauses for about a day, then marked failed. The dashboard shows recent deliveries and their last problem.
- The same event can arrive more than once. Use
idto ignore repeats.