REST API
Ingestion Service
The Ingestion Service runs on https://ingest.vigilry.com and accepts events from your applications. All endpoints require an API key via the X-Api-Key header. Events are published to Redis Streams and processed asynchronously.
API Key Authentication
All ingestion endpoints require an X-Api-Key header with a valid project API key. The project context is derived from the key — you do not need to pass a project ID separately.
X-Api-Key: vig_live_abc123def456...
/ingest/eventsSend a custom event. Use this for business-level observations — feature flags, checkout flows, critical paths, etc.
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
type | string | required | Event type identifier (e.g. checkout_started, feature_disabled). |
severity | "INFO" | "WARN" | "ERROR" | "CRITICAL" | required | Severity level (uppercase). |
message | string | required | Human-readable event description. |
source | string | optional | Service or component name (e.g. payment-service). |
correlation | object | optional | Key-value context for grouping related events (user_id, order_id, etc.). |
payload | object | optional | Arbitrary additional metadata. |
/ingest/server-errorReport an unhandled server-side error. Automatically extracts stack trace, HTTP method, path, and status code.
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
status_code | number | required | HTTP status code (e.g. 500). |
path | string | required | Request path where the error occurred. |
method | string | required | HTTP method (GET, POST, etc.). |
error_message | string | required | Error message string. |
stack | string | optional | Stack trace (optional but recommended). |
correlation | object | optional | Correlation context (user_id, order_id, etc.). |
/ingest/webhookForward an incoming webhook payload as an event. Useful for tracking third-party system notifications.
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
source | string | required | Webhook source name (e.g. github, pagerduty). |
event | string | required | Event name from the webhook provider. |
payload | object | required | The full webhook payload. |
severity | "INFO" | "WARN" | "ERROR" | "CRITICAL" | optional | Severity override. Defaults to INFO. |
/ingest/stripeIngest a Stripe webhook event. Automatically maps Stripe event types to Vigilry severity levels.
Stripe payment_failed and charge.failed events are mapped to ERROR severity. Other events default to INFO.
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
type | string | required | Stripe event type (e.g. payment_intent.payment_failed). |
data | object | required | Stripe event data object. |
id | string | optional | Stripe event ID for deduplication. |