Report drift between billed usage and the request log for one day
Compares billed usage for one UTC day with usage re-derived from the Postgres request log.
Requires scope: read
Compares billed usage for one UTC day with usage re-derived from the Postgres request log. Report only;
nothing is repaired (repairable is always false).
Pitfalls:
- Read
interpretationbeforedrift. In the current deployment the Postgres request log is usually empty (request_log_rows: 0), so every billed row shows asabsent_from_request_log. That is not evidence of overbilling. - Defaults to yesterday (UTC); today is still accumulating.
Authorization
bearerAuth Authorization: Bearer <key>. Read the key from the SPICRAWL_API_KEY environment
variable; never hard-code or log it. spicrawl_test_… keys can never spend live
credits. Scopes: scrape, batch, sessions (granted by default), browser
and read (granted deliberately). A missing scope is 403 ERR::AUTH::INSUFFICIENT_SCOPE naming the scope.
In: header
Query Parameters
UTC day to reconcile, YYYY-MM-DD. Defaults to yesterday.
dateResponse Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/v1/usage/reconciliation"{ "day": "2026-09-21", "drift": [ { "project_id": "01J9Y0000000000000000PROJ1", "metric": "credits", "stored_qty": 3100000000, "observed_qty": 0, "delta": -3100000000, "action": "absent_from_request_log" } ], "request_log_rows": 0, "interpretation": "The Postgres request log holds no rows for this day, so there is nothing to re-derive usage from and every billed row is reported as `absent_from_request_log`. ...", "repairable": false}Current-period usage against the plan allowance GET
Usage for the current period, with credit allowance arithmetic in micro-credits (1 credit = 1000000), plus the monthly allowance the API enforces.
List the deployment's workers, grouped by kind GET
Reports deployment shape: for each worker kind (`browser`, `egress`, `extract`, `batch`, always in that order and always all four), how many workers are publishing, how many are ready, and each one's load.