Prism
New: Live alerts are here · see what's new →
Documentation

Build on Prism.

Everything you need to stream and query events in real time.

Introduction

Prism is a real-time analytics platform. You stream events in, query them with SQL the moment they land, and visualize or alert on the results — all in under a second.

All requests are made over HTTPS against https://api.prism.example. Responses are JSON.

Quickstart

terminal
$ curl https://api.prism.example/v1/query \
    -H "Authorization: Bearer pk_..." \
    -d '{"sql":"SELECT city, COUNT(*) FROM events GROUP BY city"}'

API reference

The core resource is a Stream. Create one, push events, then query them in SQL.

EndpointMethodDescription
/v1/streamsPOSTCreate a stream
/v1/streams/:id/eventsPOSTIngest events
/v1/queryPOSTRun SQL over a stream
/v1/alertsPOSTCreate an alert

Streams

A stream is an append-only log of events. Push events over HTTP or Kafka, and they're queryable in real time. Set a retention window or keep them forever.

Alerts

Run a query on a schedule (down to one second), and notify your team when the result crosses a threshold. Alert to Slack, email or a webhook.

Security & compliance

We are SOC 2 Type II audited. Field-level permissions and SSO are built in, so every query and dashboard respects your access rules.

Guides