Skip to main content
A webhook is an HTTP POST that Mobilerun sends to a URL you own when something happens in your account. Instead of polling the API, your server (or an automation tool such as n8n, Zapier, or Make) receives the event within seconds. Deliveries are signed with a per-endpoint secret (new endpoints always get one), retried on transient failures, and recorded so you can inspect what was sent and what your server answered. Mobilerun sends at most 120 requests per minute per organization, and at most 120 per minute per organization and receiving host, with at most 10 deliveries in flight at a time.
Want to be pinged when your Mobilerun agent finishes a job, fails, or is waiting for your answer? Follow the agent notifications guide. You can even ask your agent to set the webhook up for you.
To route platform events to Slack, Teams, or browser alerts, see Notifications.

How events reach you

One webhook endpoint can be fed in three different ways. They share the same URL, secret, signature, and delivery log, but they are configured in different places. The two routine modes are targeted: they always reach the endpoint named in the routine, regardless of that endpoint’s event filter. Platform subscriptions are fan-out: the filter decides which events you receive.

Creating a webhook

In the dashboard open and click New webhook. Via the API, POST /v1/webhooks with the same fields. Creating a webhook and rotating its secret reveal the signing secret, so they need a Full access API key or a dashboard session; a restricted key is refused (api_key_disclosure_not_allowed).
  1. Enter a public HTTP or HTTPS URL. Private IP addresses are blocked. Mobilerun never follows redirects, so point at the final URL.
  2. Pick the event types you want. Leaving the filter empty subscribes the endpoint to every event, which is rarely what you want.
  3. Save. The response shows the signing secret exactly once. Store it in your receiver’s configuration now; it cannot be read back later.
  4. Click Send test event (or POST /v1/webhooks/{id}/test). A signed webhook.test event is delivered immediately and appears in the delivery log.
Limits: 50 endpoints per organization, and the same active URL cannot be registered twice.

Managing endpoints

Rotating the secret invalidates the old one immediately. Update your receiver first, then rotate, or accept a short window of rejected deliveries.

States and health

What your receiver gets

Every delivery is a POST with a JSON body in the platform event envelope:

Headers

Verifying the signature

Use the SDK helper. It reads the timestamp and signature headers, checks the signature against the exact raw body, and rejects requests older or newer than five minutes. It needs the endpoint secret but no API key. Pass the body before any JSON parsing; if a framework parses it first, the signature no longer matches. A failed check throws WebhookVerificationError: respond with 400.
Deduplicate with the id inside the signed body, never the unsigned X-Mobilerun-Event-Id header.

Without the SDK

The signature is an HMAC-SHA256 over the string "{timestamp}.{rawBody}" using your endpoint secret, where timestamp is the value of X-Mobilerun-Timestamp and rawBody is the request body exactly as received. X-Mobilerun-Signature carries sha256=<hex>. Compare in constant time, verify before you parse the JSON, and reject timestamps more than five minutes from your clock in either direction.
For a complete, runnable receiver with HMAC verification, replay protection, and secure file downloads, see the Python webhook receiver example.

Delivery and retries

Respond with a 2xx as soon as you have persisted the event, and do the actual work asynchronously. Slow receivers hit the timeout and burn attempts.

Event catalog

Use these identifiers in the endpoint’s event filter. Your agent and the SDK can list the live catalog for you; the table reflects the catalog at the time of writing.

Tasks

Mobilerun Agents (interactive chat)

These fire for your hosted Mobilerun agent, independent of whether you still have the chat open. See the agent notifications guide for payloads and setup.

Routines

triggers.notification always has this data shape:
severity is one of info, success, warning, error. The automatic completion notification sets title to Workflow "<name>" succeeded or Workflow "<name>" failed and severity to success or error. origin lets you correlate the notification with the run in the dashboard or via the API.

Phone numbers and eSIMs

Mailboxes

Cards

data carries only these fields: transaction events transactionId, cardId, last4, label, status, amountMinor, currency, merchant, mcc (declined events add declineReason); wallet.card.approval_requested carries cardId, last4, label, approvalId, amountMinor, currency, merchant, expiresAt; wallet.card.updated carries cardId, last4, label, status, closedReason. Fields without a value are omitted, and card numbers, security codes, and expiry dates are never included.

Diagnostics

Integrations

n8n, Zapier, and Make

In n8n, use the Webhook trigger to receive events and the HTTP Request node to call the Mobilerun API. In Zapier or Make, use a “Catch Hook” or “Custom webhook” trigger. These tools can forward the event as an email, Slack message, or push notification.

Alerting

Subscribe to task.run.failed, workflow.run.failed, and chat.turn.failed and route them to your on-call channel.

Data pipelines

Store task.run.completed results, inbound SMS, and mailbox messages in your own database as they arrive.

Best practices