Lumen Harbor

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

MethodPathDescription
POST/v1/eventsSend a single event
POST/v1/events/batchSend up to 5,000 events or 5 MB
GET/v1/streamsList streams in the project
GET/v1/streams/{id}/schemaRetrieve the active schema
PUT/v1/streams/{id}/schemaReplace the active schema
POST/v1/queryRun a SQL-compatible query
POST/v1/subscriptionsCreate 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"
  }
}
CodeHTTPMeaning
unauthorized401Missing or invalid API key
forbidden403Key lacks the required capability
schema_violation422Event failed validation
rate_limited429Throughput limit exceeded
internal500Unexpected error; retry with backoff