Features

How do I send browser profile events to n8n, Make or Zapier?

Updated December 5, 2026

Add a webhook in Mirage and paste the address from n8n, Make, Zapier or your own server. Mirage then posts a signed JSON event when a profile starts, stops or crashes, a proxy fails, an AI agent waits for approval or a scenario ends. Unanswered events are retried for about a day, and the SDK checks signatures for you.

Mirage Browser: webhooks and the Telegram bot
Screens of the current build with demo data, not a mock-up.

Which events can I receive?

Event When
profile.started, profile.stopped, profile.crashed A profile opened, closed or its browser crashed
profile.proxy_failed A running profile could not connect through its proxy
agent.approval_requested An AI agent waits for your decision
scenario.succeeded, scenario.failed A scenario run ended
webhook.test You pressed Send a test

Team webhooks, sent by the Mirage server even when every app is closed, add members joining and leaving, folders and profile holds.

How do I add one?

  1. Open Automation › Webhooks and choose Add webhook.
  2. Paste the address: a Webhook node in n8n, a Custom webhook in Make, Catch Hook in Zapier, or your server. http://localhost:5678/webhook/… for n8n on the same machine works too.
  3. Choose the events and copy the secret. It is shown once.
  4. Press Send a test and look at Recent deliveries.

What does an event look like?

JSON
{
  "id": "01938a6e-7f2c-7d10-9a3e-2b8c4e5f6a71",
  "type": "profile.proxy_failed",
  "at": "2026-12-05T10:15:02.120Z",
  "source": "device",
  "data": {
    "profile": { "id": "p_12", "name": "Client A", "status": "Ready", "folder": "Clients", "tags": ["eu"] },
    "issue": "proxy_failed",
    "failure": "timeout",
    "host": "203.0.113.10"
  }
}

The mirage-signature header holds t= and v1=: HMAC-SHA256 of the time, a dot and the raw body.

How do I check the signature?

TypeScript
import { verifyWebhook } from "@mirage-browser/sdk";

const event = verifyWebhook(process.env.MIRAGE_WEBHOOK_SECRET!, rawBody, req.headers["mirage-signature"]);
Python
from mirage_sdk import verify_webhook

event = verify_webhook(os.environ["MIRAGE_WEBHOOK_SECRET"], request.body, request.headers["mirage-signature"])

Check the raw body as it arrived. In n8n turn on Raw Body in the Webhook node and compare with a Crypto node.

What if my receiver is down?

Answer with any 2xx code within 10 seconds. Otherwise Mirage sends the same event again, with the same id, after 10 seconds, 30 seconds, 2 minutes and so on, for about 24 hours while the app is open. Drop an id you have already seen.

What can I build with it?

  • Post to a team chat when a client’s profile loses its proxy.
  • Write every scenario failure into a spreadsheet.
  • Start the next step of a pipeline when a warm-up finishes.
  • Page a person when an AI agent waits for an approval.

For messages straight to your phone without a server, use the Telegram bot. Full reference: webhooks guide.