Rest Webhooks

Async Webhooks Pattern

Fire-and-forget background processing. Request is submitted once and results are delivered simultaneously to dual webhooks.

Async dual-delivery flow

Simpler flow · Simultaneous results to webhook and WebSocket

1
Your backend
API request
2
ModelRiver
Orchestration
3
AI providers
Completion
4
Your webhook
HTTP callback
5
User's browser
WebSocket push
Architecture

Why dual-delivery async?

Deliver robust integrations easily. By leveraging two asynchronous channels simultaneously, you guarantee data integrity across arbitrary node disconnects.

Fast Acknowledgment

Immediate response with a secure channel ID. No open connection holding, fundamentally eliminating gateway timeouts on slow generations.

Background Execution

AI runs asynchronously in isolated worker pools. Your backend remains lightning fast and completely insulated from thread exhaustion.

Automatic Fallback

Seamless multi-provider failover baked deeply into the pipeline. Achieve five-nines orchestration without altering any of your client architecture.

Instant Delivery

Real-time WebSocket conduits autonomously push the final streaming payloads directly back to the active client layer.