Beta API. See the stability policy.

Event types

Every time something important happens in your account, ThrustLab writes an event. A simulation finishes, a sweep or a flight fails, a part you sent in gets approved. This article lists the events and shows how to read them. You can read them any time, and you can also have ThrustLab send them to your server as they happen. For that, see Webhooks.

Events are written whether or not you have a webhook. If your server was down and you missed a delivery, you can read the events later.

What an event looks like

json
{
  "id": "evt_2lz...",
  "object": "event",
  "type": "simulation.completed",
  "created_at": "2026-04-25T18:42:11Z",
  "api_version": "beta",
  "data": { "object": { ... } }
}

type says what happened. data.object holds the thing it happened to, such as the simulation, as it looked at that moment. A webhook delivers the same event.

The event types

The event types
TypeWhen it happens
simulation.queuedA simulation was accepted and is waiting.
simulation.runningA simulation started running.
simulation.completedA simulation finished.
simulation.failedA simulation ended with an error.
simulation.canceledA simulation was canceled before it finished.
sweep.queuedA sweep was accepted and is waiting.
sweep.runningA sweep started running.
sweep.completedA sweep finished.
sweep.failedA sweep ended with an error.
sweep.canceledA sweep was canceled.
flight.runningA flight started running. A flight has no queued event, because it is handed to a worker as soon as you create it.
flight.completedA flight finished.
flight.failedA flight ended with an error.
flight.canceledA flight was canceled.
component.submittedA part you sent in is waiting for a check by our team.
component.approvedA part you sent in was approved and is now in the catalog.
component.rejectedA part you sent in was rejected.
webhook.testA test event you asked for. See Webhooks.
compute_units.low_balanceNever sent. The name is still allowed so old code keeps working.

Read events

GET /v1/events lists your events, newest first, a page at a time. GET /v1/events/{id} gives one event. You can narrow the list with these parameters:

Read events
ParameterWhat it does
typeOnly events of this type, for example simulation.completed.
resource_idOnly events about this thing, for example a simulation ID like sim_2lz... or a sweep ID like sweep_2lz....
created_at[gte]Only events at or after this time.
created_at[lt]Only events before this time.
limitThe page size, from 1 to 100. The default is 25.
cursorThe next_cursor from the last page. See Pagination.

You can use several together. This request gets one day of finished simulations:

bash
curl "https://thrustlab.com/v1/events?type=simulation.completed&created_at[gte]=2026-04-24T00:00:00Z&created_at[lt]=2026-04-25T00:00:00Z" \
  -H "Authorization: Bearer key_..."

How long events stay

ThrustLab keeps events for 30 days and then deletes them. If you need them longer, save them in your own system. You can do that by storing each webhook delivery, or by reading /v1/events now and then.