List the environment's simulations

GET/sandbox/simulations
  • It answers 404 environment_not_sandbox against a live environment.

    Nothing is simulated there.

    Return the simulations the environment's test helpers created, as a list, {object, data, has_more, url}, newest first. It is the record of every lever pulled in the sandbox since it was last reset, by every credential acting in it.

    The list takes limit, starting_after, ending_before and the named filters kind, state, preset (each matched exactly) and created[gte|gt|lte|lt], and nothing else: so one helper's are kind=payout, and the ones still in flight are those in state=running and those in state=observed, one read each, since a filter takes one value. Any other query parameter answers 400 parameter_unknown naming it; a kind or state outside its set, a created bound that is not an RFC 3339 date-time, a bad limit, or a starting_after or ending_before naming no object of this list answers 422 parameter_invalid.

    While the sandbox is still being provisioned, before it is ready for its first call, the read answers 409 environment_provisioning, which clears on its own, so a client retries it shortly. While a reset of the sandbox is running, the read answers 409 environment_resetting.

Parameters

Query

  • limitinteger <int32>optionaldefault 20

    The page size. A value that is not an integer from 1 to the maximum answers 422 parameter_invalid naming limit; it is never clamped.

  • starting_afterstringoptional

    A cursor: the id of an object of this list, usually the last one of the page just read. The page answered holds the objects that come right after it in the list's order. The object need not match this request's filters; its place in the order is what counts.

    Show full description

    An id that names no object of this list in this environment answers 422 parameter_invalid naming starting_after. It cannot be sent with ending_before.

  • ending_beforestringoptional

    A cursor: the id of an object of this list, usually the first one of the page just read. The page answered holds the objects that come right before it, still in the list's order, and has_more says whether there are more before them.

    Show full description

    An id that names no object of this list in this environment answers 422 parameter_invalid naming ending_before, as does sending it together with starting_after.

  • kindstringoptionalenum uda_deposit · vault_deposit · address_deposit · payout · payout_release · payout_fail

    Only simulations one helper created.

  • statestringoptionalenum running · observed · completed · failed · expired

    Only simulations in this state.

  • presetstringoptional

    Only simulations made under this preset, as the test helpers' options name it.

  • created[gte]string <date-time>optional

    Only objects created at or after this instant (RFC 3339).

  • created[gt]string <date-time>optional

    Only objects created after this instant (RFC 3339).

  • created[lte]string <date-time>optional

    Only objects created at or before this instant (RFC 3339).

  • created[lt]string <date-time>optional

    Only objects created before this instant (RFC 3339).

Headers

  • X-Stridge-Environmentstring <uuid>optional

    Which environment the request acts inside, on an operation a session and an API key both call. Learn more

    Show full description

    It is required under a person's session, exactly as EnvironmentHeader describes: a session request that omits it answers 400 with environment required, and one naming an environment the caller holds no membership of answers 404.

    An API key names its own environment, so a request made with one omits this header. A key request that sends it answers 400 with environment header not accepted, whatever it names, rather than having the header ignored: a header that is silently ignored hides the integration bug that sent it.

Responses

The page of simulations.

  • objectstringrequiredenum list

    The object's type, always list.

    • idstring <uuid>required

      The simulation's own identifier, the one GET /sandbox/simulations/{simulation_id} reads it back by and a chain transaction's caused_by.run_id names.

    • objectstringrequiredenum simulation

      What this object is, so a payload read on its own says so.

    • environment_idstring <uuid>required

      The sandbox the simulation ran in.

    • livemodebooleanrequiredenum false

      Always false: nothing is simulated in a live environment. It is carried for the reason every environment-scoped object carries it, so a simulation read on its own says which side of the boundary it came from.

    • kindstringrequired

      Which helper was called, one of SimulationKind's values. The set is open: a helper added later answers its own kind, and a client meeting a kind it does not know shows it as the server names it rather than refusing the simulation.

    • presetstring | nullrequired

      The preset the request named, or null where it named none.

    • requestobjectrequired

      The facts and levers the helper was called with, defaults filled in. Its members are the request body of the helper kind names; for payout_release and payout_fail, which take no body, it is { "payout_id": … }.

    • statestringrequiredenum running · observed · completed · failed · expired

      Where the simulation has got to. running is a lever pulled and nothing observed yet; observed is Stridge having recorded the first product object the pull produced; completed is the flow having reached its terminal state.

      Show full description

      The other two are the simulation's own failures rather than the flow's.

      A failure the caller chose is completed, not failed. A deposit whose settlement was chosen to fail, or a payout chosen to fail, is a simulation that did exactly what it was asked, and it completes when the failure has played out. failed is the simulation itself unable to finish: the simulated world refused the pull, or it did not play out in time, and error says which.

      expired is a simulation issued at an older reset_epoch than the environment's current one. A reset withdraws what a simulation in flight had armed, so one caught by a reset never completes; a read waiting on it across the reset is answered expired, and once the reset has destroyed it the simulation answers 404 like every other object of the emptied world.

    • The transaction the lever put on a simulated chain, or null before one exists, and for a simulation the world refused before it put one there.

    • Every Stridge object the flow produced so far, in the order they appeared.

    • epochinteger <int32>required

      The environment's reset_epoch when the simulation was created. A reset that moves the environment past it expires the simulation.

    • errorstring | nullrequired

      Why a failed simulation failed, null in every other state: world refused when the simulated world would not carry the pull out, timed out when it did not play out in the time the world allows. A failure the caller chose is never here.

    • outcomestring | nullrequired

      Why a completed simulation stopped short of a settlement, null where the flow ran its course and in every state but completed.

      Show full description

      asset not accepted is a UDA deposit in an asset the address does not accept on the network: Stridge records the deposit and settles none of it, and the simulation completes as soon as the deposit is recorded. not settled is a UDA deposit Stridge recorded and settled nothing of for another reason, such as a sender it suppresses or a payment no route carries, once a grace has passed. not recorded is a deposit below its asset's minimum on the network, which Stridge never recorded. The set is open: a client meeting a value it does not know shows it as the server names it.

    • created_atstring <date-time>required

      RFC3339 UTC timestamp, Z suffixed. When the helper was called. It is the default sort, newest first.

    • updated_atstring <date-time>required

      RFC3339 UTC timestamp, Z suffixed. When state, chain or caused last changed.

  • has_morebooleanrequired

    Whether the list holds more objects past this page in the direction it was read: after its last object, or before its first for a page read with ending_before.

  • urlstringrequired

    The path the list is read at.

Errors

The error.code values this operation can return. Each one links to its entry in the error catalogue, which explains the cause and the fix.

Request
curl "https://api.stridge.com/v2/sandbox/simulations" \
  -H "Authorization: Bearer $STRIDGE_SECRET_KEY"

Set your secret key as STRIDGE_SECRET_KEY (sent as Authorization: Bearer).

Response200
"object": "list",
"id": "5e8a1c34-7b29-4d06-a3f1-9c2e4b6d8a10",
"object": "simulation",
"environment_id": "3f2a6d7e-6b1c-4f2a-9a11-0b53f8d6b2c1",
"livemode": false,
"kind": "uda_deposit",
"preset": "underpaid",
"uda_id": "2d94e610-8f37-4c5b-a1e0-6b73f2905c48",
"network_id": "8453",
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
},
"amount": "25000000",
"settlement": "success"
},
"state": "completed",
"network_id": "8453",
"hash": "0x5b0f3e2a9c71d4e8b6a2f0c3d9e1b7a4c6f8e0d2b4a6c8e0f2d4b6a8c0e2f4d6"
},
"object": "deposit",
"id": "8c2d4a17-3b95-4e02-9f6d-1a7c5e83b204",
"status": "confirmed",
"event_type": "deposit.confirmed"
}
],
"epoch": 0,
"error": null,
"outcome": "asset not accepted",
"created_at": "2026-09-27T09:32:11Z",
"updated_at": "2026-09-27T09:32:14Z"
}
],
"has_more": false,
"url": "/v2/sandbox/simulations"
}