Skip to content

Scenarios

Scenarios are pre-built simulation configurations that define agents, initial state, and rules. These endpoints are public and require no authentication.

GET /v1/scenarios

Returns all available scenarios in a data array of summaries. The list is not paginated. The example shows the first summary, with the remaining summaries omitted.

{
"data": [
{
"id": "standard",
"label": "Standard",
"seed": 1207,
"note": "The default equilibrium."
}
// Further scenario summaries omitted
]
}
FieldTypeDescription
idstringUnique scenario identifier
labelstringHuman-readable name
seednumberDefault random seed
tagsstring[]Optional categorization tags
notestringOptional brief description
Terminal window
curl https://api.anankelabs.io/v1/scenarios
GET /v1/scenarios/{id}

Returns the stored configuration for a single scenario. Optional agents, initial state, and rules appear only when the manifest supplies them.

ParameterTypeDescription
idstringScenario identifier
{
"id": "standard",
"label": "Standard",
"seed": 1207,
"note": "The default equilibrium.",
"nodeLabels": {
"A-01": "Q3 Goals",
"R-02": "Supply Shock"
}
}
FieldTypeDescription
idstringUnique scenario identifier
labelstringHuman-readable name
seednumberDefault random seed
tagsstring[]Optional categorization tags
notestringOptional brief description
initialStateanyOptional starting-state overrides
agentsAgent[]Optional agent configurations
agents[].idstringAgent identifier
agents[].marker{x, y}Agent’s initial position
agents[].policy{lambda?, gamma?}Optional agent policy with optional numeric values
agents[].attractorPreferencesobjectOptional map of attractor names to numeric weights
nodeLabelsobjectOptional map of node IDs to labels
rulesobjectOptional simulation rule overrides
rules.zeroSumAttractorCapturebooleanOptional zero-sum attractor capture setting
StatusCodeWhen
404NOT_FOUNDScenario ID does not exist

Both routes can return 429 RATE_LIMITED or 500 INTERNAL_ERROR. See Error Handling for the error envelope and supplied-credential errors.

Terminal window
curl https://api.anankelabs.io/v1/scenarios/standard