A fire-and-forget message forwarding service that dispatches entire request bodies to endpoints specified in headers while maintaining protocol context.
POST
/api/dispatchFire-and-forget forwarding with intelligent conversation flow control
GET
/api/conversationsList all conversations with status and message counts
POST
/api/test-receiverReceives and acknowledges dispatched messages
GET
/api/dispatchReturns service metadata and usage examples
curl -X POST http://localhost:3999/api/dispatch \
-H "Content-Type: application/json" \
-H "X-Forward-Endpoint: http://localhost:3999/api/test-receiver" \
-H "X-3AS-Session-ID: session-123" \
-H "X-3AS-Protocol-Version: 1.0" \
-d '{
"type": "greeting",
"content": "Hello from dispatcher!",
"priority": "high"
}'curl -X POST http://localhost:3999/api/dispatch \
-H "Content-Type: application/json" \
-H "X-Forward-Endpoint: http://localhost:3999/api/test-receiver" \
-H "x-3as-conversation-id: conv-12345" \
-H "x-3as-user-cdid: user-abc123" \
-H "x-3as-sender-cdid: bot-service" \
-d '{
"message": "Hello! How can I help you?",
"type": "bot_message"
}'โจ Automatically tracks message count and manages conversation flow
Headers:
X-Dispatcher-Endpoint: http://localhost:3000/api/dispatch X-3AS-Session-ID: session-123 X-3AS-Protocol-Version: 1.0 Content-Type: application/json
Body (entire original body forwarded):
{
"type": "greeting",
"content": "Hello from dispatcher!",
"priority": "high",
"metadata": {
"sender": "client-app",
"timestamp": "2024-01-15T10:30:00Z"
}
}Forwards entire request body unchanged to any HTTP endpoint
Intelligent message counting and flow control with Redis
Monitor conversations, status, and manage flows visually
Built on Next.js 15 with TypeScript and Redis