Skip to main content
Agents can notify you (and your team) when something happens — an action was taken, a human escalation was filed, the agent paused, or the cost cap is approaching. v1 supports three channel types: email, Slack incoming webhook, and generic HTTPS webhook.

Subscriptions

Each channel subscribes to a subset of event kinds:
EventFires when
on_actionThe agent took an autonomous mutating action (proposed match, filed pending item, mode change, etc.).
on_escalationA pending item was filed for human review.
on_pauseThe agent transitioned to PAUSED_COST, PAUSED_RATE, or PAUSED_USER.
on_cost_thresholdDaily spend crossed the on_cost_threshold_pct line (default 80%).
Set per-channel in the rule set or via PATCH /api/v1/agents/{id}/channels/{cid}.

Email

FieldRequiredExample
typeyesEMAIL
targetyesops@acme.com
eventSubscriptionsyes["on_escalation", "on_pause"]
Emails are sent from agents@mapping.travel (configurable per workspace at the org level). The subject line is the event kind + agent name; the body links back to the run or pending item.

Slack webhook

  1. In Slack, Apps → Incoming Webhooks → Add Configuration.
  2. Pick the channel, click Add Incoming WebHooks integration.
  3. Copy the webhook URL (https://hooks.slack.com/services/T.../B.../...).
  4. In the agent UI, Channels → Add → Slack, paste the URL, pick subscriptions.
  5. Click Test — a sample message lands in the Slack channel.

Generic HTTPS webhook

Send a POST to your own endpoint. Auth via Bearer, HMAC-SHA256, or Basic — same scheme as data sinks.
{
  "agentId": "agt_01J...",
  "agentName": "Booking.com hygiene",
  "event": "on_escalation",
  "subject": "12 unmatched rows need review",
  "body": {
    "pendingItemId": "pi_01J...",
    "kind": "MATCH_PROPOSAL",
    "subject": "12 unmatched rows need review",
    "url": "https://app.mapping.travel/agents/.../pending/pi_01J..."
  },
  "timestamp": "2026-05-25T12:34:56Z"
}

Test endpoint

POST /api/v1/agents/{id}/channels/{cid}/test sends a synthetic event of every subscribed kind. Returns the delivery result (status code, latency, body excerpt).