Quickstart
First Request
Section titled “First Request”curl "https://api.blackrelay.network/v1/health"Windows:
Invoke-RestMethod "https://api.blackrelay.network/v1/health"Expected shape:
{ "data": { "status": "ok", "time": "2026-06-28T00:00:00.000Z" }, "meta": { "registry": "blackrelay-api", "apiVersion": "v1" }}Discover Routes
Section titled “Discover Routes”Request the API root to get the current route list advertised by the Worker:
curl "https://api.blackrelay.network/v1"Windows:
Invoke-RestMethod "https://api.blackrelay.network/v1"Search Entities
Section titled “Search Entities”Search all indexed entities in the default environment and current cycle scope:
curl "https://api.blackrelay.network/v1/search?q=gate&limit=10"Windows:
Invoke-RestMethod "https://api.blackrelay.network/v1/search?q=gate&limit=10"Query A Typed Collection
Section titled “Query A Typed Collection”Typed collection routes return entity records filtered by entity type:
curl "https://api.blackrelay.network/v1/systems?limit=20"Windows:
Invoke-RestMethod "https://api.blackrelay.network/v1/systems?limit=20"Query Current State
Section titled “Query Current State”Current collections use derived current-state rows where available, with entity fallback for supported collections.
curl "https://api.blackrelay.network/v1/current/characters?cycles=current&limit=20"Windows:
Invoke-RestMethod "https://api.blackrelay.network/v1/current/characters?cycles=current&limit=20"Fetch Provenance
Section titled “Fetch Provenance”Given an entity id or slug:
curl "https://api.blackrelay.network/v1/entities/<id-or-slug>/facts"curl "https://api.blackrelay.network/v1/entities/<id-or-slug>/sources"curl "https://api.blackrelay.network/v1/entities/<id-or-slug>/history"Windows:
Invoke-RestMethod "https://api.blackrelay.network/v1/entities/<id-or-slug>/facts"Invoke-RestMethod "https://api.blackrelay.network/v1/entities/<id-or-slug>/sources"Invoke-RestMethod "https://api.blackrelay.network/v1/entities/<id-or-slug>/history"Pagination
Section titled “Pagination”List routes return nextCursor when more rows are available:
{ "data": [], "meta": { "registry": "blackrelay-api", "apiVersion": "v1" }, "nextCursor": "..."}Pass the cursor back unchanged:
curl "https://api.blackrelay.network/v1/entities?cursor=<nextCursor>"Windows:
Invoke-RestMethod "https://api.blackrelay.network/v1/entities?cursor=<nextCursor>"Query Defaults
Section titled “Query Defaults”Omitted environment defaults to stillness.
Omitted cycle or cycles defaults to the current cycle plus uncycled compatibility rows.
Use cycles=current for the strict current-cycle shortcut, cycles=all for archive rows, or a comma-separated list such as cycles=5,6.