GET /simulations
Retrieves a list of simulations.
Request
keyoptionalFilter simulations by key. When provided, returns only the simulation with the matching key.
limitoptionalMaximum number of simulations to return. Must be an integer between 1 and 100. Defaults to 10.
offsetoptionalNumber of simulations to skip. Must be an integer greater than or equal to 0. Defaults to 0.
Success
Responds with a 200 OK and an array of simulations.
keyrequiredA unique identifier.
parentoptionalThe key of the parent simulation, if any.
seedoptionalThe seed for the simulation's random number generator. Must be an integer greater than or equal to 1.
createdAtrequiredThe timestamp when the simulation was created.
updatedAtrequiredThe timestamp when the simulation was last updated.
Example
Request to get the first 2 simulations:
GET /simulations?limit=2Response:
[
{
"key": "default",
"seed": 1,
"createdAt": "2025-04-15T10:30:00.000Z",
"updatedAt": "2025-04-15T10:30:00.000Z"
},
{
"key": "user-simulation",
"parent": "default",
"seed": 42,
"createdAt": "2025-04-16T14:22:15.123Z",
"updatedAt": "2025-04-16T14:22:15.123Z"
}
]