API reference
All endpoints use HTTPS and JSON. The base URL is region-specific; the examples below use the US West region.
Authentication
Send a bearer token in the Authorization header. Keys are scoped to a project and carry one or more capabilities: ingest, query, stream, admin.
Authorization: Bearer ks_live_***
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /v1/events | Send a single event |
| POST | /v1/events/batch | Send up to 5,000 events or 5 MB |
| GET | /v1/streams | List streams in the project |
| GET | /v1/streams/{id}/schema | Retrieve the active schema |
| PUT | /v1/streams/{id}/schema | Replace the active schema |
| POST | /v1/query | Run a SQL-compatible query |
| POST | /v1/subscriptions | Create a durable subscription |
| GET | /v1/subscriptions/{id} | Describe a subscription |
Event payload
{
"stream": "orders",
"event": "order_completed",
"timestamp": "2026-11-26T03:00:00Z",
"idempotency_key": "ord_9f2c",
"properties": {
"amount_cents": 4900,
"currency": "USD",
"items": 2
}
}
Rate limits
Default limits are 2,000 requests per minute and 50 MB per minute per project. Responses include X-RateLimit-Remaining and X-RateLimit-Reset headers. Exceeding a limit returns 429 with a retry_after value in seconds.
Error format
{
"error": {
"code": "schema_violation",
"message": "property amount_cents must be an integer",
"request_id": "req_01HZX9"
}
}
| Code | HTTP | Meaning |
|---|---|---|
| unauthorized | 401 | Missing or invalid API key |
| forbidden | 403 | Key lacks the required capability |
| schema_violation | 422 | Event failed validation |
| rate_limited | 429 | Throughput limit exceeded |
| internal | 500 | Unexpected error; retry with backoff |