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
{
"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
| Type | When it happens |
|---|---|
simulation.queued | A simulation was accepted and is waiting. |
simulation.running | A simulation started running. |
simulation.completed | A simulation finished. |
simulation.failed | A simulation ended with an error. |
simulation.canceled | A simulation was canceled before it finished. |
sweep.queued | A sweep was accepted and is waiting. |
sweep.running | A sweep started running. |
sweep.completed | A sweep finished. |
sweep.failed | A sweep ended with an error. |
sweep.canceled | A sweep was canceled. |
flight.running | A flight started running. A flight has no queued event, because it is handed to a worker as soon as you create it. |
flight.completed | A flight finished. |
flight.failed | A flight ended with an error. |
flight.canceled | A flight was canceled. |
component.submitted | A part you sent in is waiting for a check by our team. |
component.approved | A part you sent in was approved and is now in the catalog. |
component.rejected | A part you sent in was rejected. |
webhook.test | A test event you asked for. See Webhooks. |
compute_units.low_balance | Never 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:
| Parameter | What it does |
|---|---|
type | Only events of this type, for example simulation.completed. |
resource_id | Only 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. |
limit | The page size, from 1 to 100. The default is 25. |
cursor | The next_cursor from the last page. See Pagination. |
You can use several together. This request gets one day of finished simulations:
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.