Stream API
Poll new artifact records, or receive signed webhook updates.
Use your Outerview API key at https://api.outerview.ai/api/stream. Capture starts when you subscribe. Only new inserts and meaningful record updates after that point are sent. There is no historical source-table scan or backfill. Polling is immediate; webhook subscriptions check for updates every minute. This does not speed up the upstream data feed.
Poll for updates
curl "https://api.outerview.ai/api/stream?artifact_id=ARTIFACT_UUID®ion_id=REGION_ID" -H "Authorization: Bearer $OUTERVIEW_API_KEY"
The first request starts a cursor at the current time. Pass the returned cursor on later requests. To retrieve recent records on the first call, supply since as an ISO timestamp within the last 7 days of captured changes. Use has_more to drain additional pages. Cursors are bound to the artifact and region. Capture begins when the artifact/region stream is first activated; it does not backfill historical source rows. Changes are retained for seven days. Poll at least every two days to keep capture active; webhook subscriptions keep it active automatically. capture_started_at identifies the start of capture.
| Field | Description |
|---|---|
| artifact_id | Required artifact UUID from the Atlas API action or artifact catalog. |
| region_id | Optional city, county, state or country ID. Smaller regions make polling faster. |
| cursor | Opaque cursor from the previous response. |
| limit | 1–250 events per poll; defaults to 100. Playground returns up to 3. |
Receive webhooks
{
"artifact_id": "ARTIFACT_UUID",
"region_id": "REGION_ID",
"webhook_url": "https://your-app.com/webhooks/outerview"
}The response returns a subscription ID and a signing_secret once. Store the secret securely. Deliveries include X-Outerview-Event-ID and X-Outerview-Signature: t=TIMESTAMP,v1=HEX. Verify HMAC-SHA256 over TIMESTAMP + "." + raw_body with your signing secret, reject old timestamps, and deduplicate using the event ID. Return a 2xx response to acknowledge delivery. Failed deliveries retry with the same event ID and exponential backoff.
List subscriptions with GET /api/stream?subscriptions=true. Pause or resume with PATCH /api/stream/ID and {"active":false}. Cancel with DELETE /api/stream/ID. Keys can manage only their own workspace subscriptions. Polling is limited to 60 requests per minute per workspace. The free playground shares a ten-request-per-minute limit across both endpoints.