Skip to content

Prophecies

Prophecy records store results from simulation stepping or runs. Their payload contains the completed tick count and the final engine tick result.

Prophecies are read-only. The runner creates them. The caller can not submit them.

Authentication is required. Scope checks apply to API keys only. API keys access their own organization’s simulations. JWT callers need organization membership or ownership of a personal simulation. This endpoint can return 401, 403, 404, 429, or 500. See HTTP Status Codes. Replace <api-key> and <simulation-id> in the example with your key and simulation UUID.

GET /v1/simulations/{id}/prophecies

Returns a paginated list of prophecy records stored for a simulation.

Scope required (API key): simulation:read

ParameterTypeDescription
iduuidSimulation ID
ParameterTypeDefaultDescription
limitinteger50Results per page, clamped to 1 to 200
offsetinteger0Pagination offset, clamped to 0 or greater
orderstring"asc"Creation-time order: "asc" or "desc"

limit and offset use integer parsing. Zero or an unparseable limit uses 50. An unparseable offset uses 0. Only order=desc selects descending order. All other values select ascending order.

The example omits the final tick result fields rather than showing an empty result.

{
"data": [
{
"id": "b1b2c3d4-1111-4111-8111-111111111111",
"simulationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"data": {
"ticks": 100,
"result": { /* Final engine tick result omitted */ }
},
"createdAt": "2025-06-15T10:36:00.000Z"
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 1
}
}
FieldTypeDescription
iduuidProphecy identifier
simulationIduuidParent simulation
dataobjectProphecy payload (structure varies by engine version)
createdAtstringISO 8601 timestamp
data.ticksnumberCompleted ticks in the step or run request
data.resultobjectFinal engine tick result
Terminal window
curl "https://api.anankelabs.io/v1/simulations/<simulation-id>/prophecies?limit=10" \
-H "X-Api-Key: <api-key>"