Common patterns
The examples below use cURL. The API reference documents each route's parameters, statuses and schemas.
Waiting for a Run
Runs are asynchronous. Poll until finished is true, then read status for
the outcome: completed, stopped, or failed. The Run's PDPs are saved
while it runs, so you can read them before it finishes. A materializing Run
was interrupted before its analytics were complete: it has saved every PDP,
and its analytics are being finished.
To be told when a Run finishes instead of polling, register a webhook.
Syncing finished Runs
To pick up every Run that finished since your last sync, pass finished_since
to GET /v1/runs. The list then holds only finished Runs, oldest finish first,
with finished_at at or after that time. Save the last finished_at you
processed and pass it next time; the bound is inclusive, so deduplicate on
id. A Run that is restarted is unfinished again and reappears when it next
finishes.
Pagination
Routes that page return next_cursor. Pass a non-null next_cursor as the
cursor query parameter for the next page; null means the last page.
Treat cursors as opaque. Do not decode, construct, or replace one with a
resource id. Keep the same route, filters, and sort across pages; the next
request may choose a different valid limit. A cursor used with another route
or changed filters returns 400.
Pagination reads live data rather than holding a database transaction across HTTP requests. On unchanged data, cursors traverse deterministically. Rows written between requests can affect the remaining pages, so start again without a cursor when you need a fresh traversal.
Each route's default and maximum page size is in Page sizes.
Time windows
Every point in time, in requests and responses, is an RFC 3339 timestamp such
as 2026-01-31T00:00:00Z. Explore routes take their time window in different
ways:
GET /v1/activity also returns at most 400 buckets, so a long window needs a
coarser bucket.
When you page through GET /v1/changes, pass the to the first page returned
with every later page, so the window stays fixed. A Change keeps the time it
was observed, so one written later can land in a window you already read:
re-read overlapping windows and deduplicate on id. See
Changes.
Bulk PDP export
Use the PDP export route instead of paginating when you need all PDPs of one Run or Import as JSONL or Parquet. Stream the response to disk rather than loading the entire file in memory. See PDPs.