API
The record, as data.
Cases, verdicts, settlements and the attention index, as JSON. An allowance is per account per UTC day, so a nightly job can be pointed at a fixed instant rather than at a rolling window nobody can predict.
Plans
Explorer
Free
Needs no payment.
Trying the API out.
Allowance unavailable
Status / unavailable
Plan prices unreachable
Prices are read from the same catalogue the checkout charges from. With the service down there is no truthful copy to show, and a stale one could disagree with what a quote would charge.
Detail: fetch failed
Authentication
Public endpoints need no credential. Authenticated ones take a bearer API key, which you create from a signed-in session.
Without a key, the public reads are limited per address. Send your key on the case, market, feed and search reads and they are limited at your tier’s rate instead, counted against your daily allowance; once that is spent they fall back to the per-address limit.
curl https://api.precrime.bot/v1/cases curl https://api.precrime.bot/v1/private/positions \ -H "Authorization: Bearer pc_…"
A key is shown once at creation and stored only as a hash. A key can never create another key: if it could, a leaked read-only key could escalate itself and revoking the original would not contain it.
Money in responses
Token amounts are decimal strings of integer base units, never JSON numbers.
"grossPoolBaseUnits": "100000000000000000000000"
A JSON number is an IEEE-754 double. One PRECRIME at 18 decimals already exceeds what a double can hold exactly, so a number would silently round someone’s stake in transit. Parse these with a big-integer type.
Endpoints
Status / unavailable
Endpoint list unreachable
This page reports the API's own route list rather than a copy, so when the service is down there is nothing truthful to show. A stale copy would send you to endpoints that may not exist.
Detail: fetch failed