API
Guide

The run lifecycle

Every kickoff endpoint (/enrich, /datasets, /extractions/{id}/runs, ...) returns 201 Created with a run. From there:

RequestWhat it does
GET /runs/{id}Check status (pending → enqueued → processing → success or stopped)
GET /runs/{id}/result?wait=30Fetch the output. wait long-polls up to 50 seconds; output is null until the run finishes
POST /runs/{id}/stopStop a run early

Prefer webhooks over polling: pass webhook_url on kickoff and Riveter POSTs the results to you when the run finishes. If you poll, an interval of 10-20 seconds is plenty.

Every kickoff and every /runs endpoint returns the same run — see the Runs section for the full shape.