Skip to main content

Purpose

The endpoint-api delivers conversation events to external HTTP endpoints. When a call starts, ends, or a message is exchanged, assistant-api emits events to endpoint-api via gRPC. This service handles fan-out to all registered webhooks, retry with exponential backoff, HMAC-SHA256 payload signing, and delivery tracking.

Port

9005 — HTTP · gRPC (cmux)

Language

Go 1.25 Gin (REST) + gRPC

Storage

PostgreSQL endpoint_db Redis (retry job queue)

Event Delivery Flow


Core Components

Each webhook is scoped to a project and subscribes to one or more event types.
Retries trigger on HTTP 408, 429, and 5xx. Status 2xx = success. Status 4xx (except 408, 429) = non-retriable failure.
Every delivery includes an X-Rapida-Signature header:
Verification (Node.js):

Event Reference

Example payload — conversation.ended:

API Endpoints

Create a webhook:
Replay a failed event:

Running


Health Endpoints


Next Steps

Configuration

Environment variables including webhook retry settings.

Assistant API

Event emitter — assistant-api fires conversation events to endpoint-api.

Architecture

Full system topology and data flows.

Integration API

LLM provider execution layer.