API Quickstart
First Request
Section titled “First Request”Black Relay is a public read layer. It is useful for display, lookup, exploration and provenance; it is not transaction authority.
Before signing, sponsoring, deploying or mutating anything, re-read live state through direct Frontier and Sui tooling. Frontier data can change after patches or cycle resets, so check source, cycle and timestamp before relying on a record.
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"Resolve A Static Type
Section titled “Resolve A Static Type”Use /v1/types/{typeID} when a chain event or recipe row gives you a numeric type id:
curl "https://api.blackrelay.network/v1/types/3001"Windows:
Invoke-RestMethod "https://api.blackrelay.network/v1/types/3001"If the type is not indexed, keep the numeric id visible in your UI rather than guessing a name.
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"Other useful current views:
curl "https://api.blackrelay.network/v1/current/systems?cycles=current&limit=20"curl "https://api.blackrelay.network/v1/current/gates?cycles=current&limit=20"curl "https://api.blackrelay.network/v1/current/enemies?cycles=current&limit=20"curl "https://api.blackrelay.network/v1/current/route-edges?cycles=current&limit=20"Windows:
Invoke-RestMethod "https://api.blackrelay.network/v1/current/systems?cycles=current&limit=20"Invoke-RestMethod "https://api.blackrelay.network/v1/current/gates?cycles=current&limit=20"Invoke-RestMethod "https://api.blackrelay.network/v1/current/enemies?cycles=current&limit=20"Invoke-RestMethod "https://api.blackrelay.network/v1/current/route-edges?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"Inspect Events And Killmails
Section titled “Inspect Events And Killmails”Use events for raw public chain context and killmails for semantic combat rows:
curl "https://api.blackrelay.network/v1/events?module=killmail&cycles=current&limit=10"curl "https://api.blackrelay.network/v1/killmails?cycles=current&limit=10"Windows:
Invoke-RestMethod "https://api.blackrelay.network/v1/events?module=killmail&cycles=current&limit=10"Invoke-RestMethod "https://api.blackrelay.network/v1/killmails?cycles=current&limit=10"Killmail ids may be shown compactly in UI but keep the original id available for API lookups.
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>"Do not build a cursor yourself. Treat it as an opaque token from the previous response.
Query Defaults
Section titled “Query Defaults”Omitted environment defaults to stillness.
Omitted cycle or cycles defaults to the current cycle.
Use cycles=current for the current-cycle shortcut. cycles=6 is also accepted while Cycle 6 is current.
Freshness Check
Section titled “Freshness Check”Before using the API for operational UI, check readiness and freshness:
curl "https://api.blackrelay.network/v1/ready"curl "https://api.blackrelay.network/v1/ops/freshness"Windows:
Invoke-RestMethod "https://api.blackrelay.network/v1/ready"Invoke-RestMethod "https://api.blackrelay.network/v1/ops/freshness"If freshness is stale for your use case, show that in the interface or fall back to direct source reads.