List the transitions for this machine instance

GET /machines/{machineSlug}/i/{instanceSlug}/events

Query parameters

  • cursor string

    A cursor returned from a previous call to /machines/{machineSlug}/i/{instanceSlug}/events

Responses

  • 200

    The transitions for this machine instance

    Hide response attributes Show response attributes object
    • transitions array[object] Required
      Hide transitions attributes Show transitions attributes array[object]
      • createdAt string(date-time) Required
      • state string | object Required

        One of:

        A simple state

      • event object | string Required

        One of:

        An event to send to a machine.

        Event types are user-defined for a given machine definition.

    • cursor string

      The cursor to use on the next call to retrieve the next page of transitions. If no cursor is returned, there are no more pages to retrieve.

GET /machines/{machineSlug}/i/{instanceSlug}/events
curl \
 -X GET https://api.statebacked.dev/machines/{machineSlug}/i/{instanceSlug}/events \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "transitions": [
    {
      "createdAt": "2023-05-04T09:42:00+00:00",
      "state": "string",
      "event": {
        "type": "string"
      }
    }
  ],
  "cursor": "string"
}
Response examples (200)
{
  "transitions": [
    {
      "createdAt": "2025-05-04T09:42:00Z",
      "state": "string",
      "event": {
        "type": "string"
      }
    }
  ],
  "cursor": "string"
}