Push: channels and webhooks
Channels
The dashboard lists the integrations available to your organization. In-app preferences and browser permission do not replace a Slack, Teams, or webhook destination’s event filter. Not every event supports every surface: browser notifications use the pop-up event selection, while team channels and HTTP webhooks use the deliverable webhook catalog.
Events and moments
The channel picker groups event types into moments. Selecting a moment subscribes the destination to its available event types. These are the groups and their events for Slack, Teams, and HTTP destinations:
The agent moments also include
chat.away.completed and chat.away.failed for in-app/browser alerts when you are away; those two events are not delivered to team channels or HTTP webhooks. For the full platform subscription catalog, including lifecycle events outside these moment groups, see Webhooks.
Set up in the dashboard
- Open . Under Notifications in Slack or Teams, click Connect for your provider and finish the connection flow.
- Click Add channel. In Add a channel, select the destination under Where to send it and choose its Channel.
- Choose the moments to receive and click Add channel. Leaving moments unselected subscribes the destination to all deliverable events; select moments for a narrower subscription.
- Use Send test message in the confirmation to check the connection.
Set up via API
Notification destinations use the same/v1/webhooks API as platform webhooks. Set eventTypes to the event identifiers you want; the API accepts event types, not moment names. The following creates an HTTP destination for successful and failed routine executions using the typed SDK methods available in version 6.2.1.
GET /v1/webhooks/integrations returns the offered capabilities and their connection state. GET /v1/webhooks/integrations/{capabilityId}/targets?revision={revision} returns the selectable channels. Create the destination with POST /v1/webhooks, kind: "integration", the returned capability (id and revision), the chosen target’s args, and your eventTypes. Use the returned values rather than inventing provider IDs or target arguments. Discovery of integrations and targets is session-only, unavailable to scoped API keys.
Creating a destination requires permission to disclose a secret. Personal notification preferences and browser permission are configured in the dashboard, separately from these destination subscriptions.
Payload and verification
Slack and Teams receive a formatted message derived from the platform event, not a raw JSON request to a receiver you host. Integration destinations have no signing secret. HTTP destinations receive the platform event envelope withid, type, occurredAt, and event-specific data. They use the same signing, deduplication, delivery log, and retry mechanism documented in Webhooks. Follow signature verification before processing a request. Integration deliveries retry transient provider failures; an expired connection or invalid target can block delivery until you repair it.
Live streams
Use push destinations above for alerts and backend automation. Use a live Server-Sent Events (SSE) connection for progress in your app while a task or agent turn runs. These streams are separate from webhook deliveries and their retry logs. The examples run on your server with an API key authorized for the resource. Keep the key server-side and relay updates through your own authenticated endpoint for browser clients. TypeScript and Python examples use SDK 6.2.1; stream examples use raw-response helpers to preserve SSE framing, including named task events and chat completion markers. Raw chunks and lines are transport data: use an SSE parser to assemble complete events before updating your UI.Create a task and stream its events
POST /v1/tasks/stream creates a task and streams named events such as QueuedEvent, CreatedEvent, StartEvent, and ResultEvent. Disconnecting before completion cancels the task. Do not retry this POST to reconnect: it creates another task. For task lifecycle and outcomes, see Tasks and the streaming task reference.
Attach to an existing task
GET /v1/tasks/{task_id}/attach streams the current task handshake followed by live task events. Attaching does not create a task, and disconnecting this GET does not cancel it. Use this when you create a task separately and need progress in a UI. See Attach task.
id cursor or Last-Event-ID replay. Reattach to obtain current state and new events; missed intermediate events are not replayed. A terminal task emits StatusEvent and closes. Read task status and trajectory when recovering after a disconnect.
Send an agent message with a streamed reply
POST /v1/assistant/chat/message selects SSE with Accept: text/event-stream. Its data: frames contain AI SDK UI-message chunks with a type, such as start and tool-input-available; these are not named SSE events. An approval request uses toolName: "hitl-approval". See Send message for the message and approval contracts. Use an existing chat session ID; the SSE response also returns it in X-Chat-Session-Id.
Reconnect to the active agent turn
GET /v1/assistant/chat/stream?sessionId=... replays buffered chunks from the start of the active turn, then continues live. It does not start an inactive session. Use the published SDK stream method below; see Re-attach to the active turn stream.
Last-Event-ID cursor. Reconcile replayed chunks with the current turn rather than appending them twice. 204 means there is no active turn; 503 is retryable using Retry-After. Reconnect with this GET instead of resending the message. For both task and chat connections, stop reconnecting once the work has finished and back off after failures; task execution remains bounded by its configured timeout (see Tasks).
In a React app
@mobilerun/react 0.3.0 exports useTaskApproval and TaskApproval. Your verified webhook handler can signal your own authenticated SSE endpoint when an approval changes. Pass that source as subscribe; it triggers a refetch through fetchApproval, so the fetched approval remains the source of truth. The hook polls every three seconds without subscribe; supplying it disables polling by default. Keep a polling interval if you also want recovery while your SSE connection is unavailable.
React
/api/events is an endpoint you build, not a Mobilerun API route. Authenticate the browser and authorize its task subscription before sending signals. Follow webhook verification on the receiver and the React task-approval example for backend adapters. The separate organization feed at /v1/webhooks/stream is dashboard-session-only and cannot be used with a scoped API key; it is not the SSE source used by this example.
Related pages
- Webhooks: full event catalog, payloads, signing, retries, and receiver implementation.
- Get notified by your agent: agent-turn events, their payloads, and asking your agent to configure notifications.