Query parameters

  • cursor string

    A cursor returned from a previous call to /machines

Responses

  • Your machines

    Hide response attributes Show response attributes object
    • machines array[object] Required
      Hide machines attributes Show machines attributes
      • slug string Required

        An identifier for the machine definition. Must be unique within your organization.

        Minimum length is 1. Format should match the following pattern: ^[a-zA-Z0-9_-]{1,128}$.

      • createdAt string(date-time) Required
      • Hide currentVersion attributes Show currentVersion attributes
    • cursor string

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

GET /machines
curl \
 -X GET https://api.statebacked.dev/machines \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "machines": [
    {
      "slug": "my-machine",
      "createdAt": "2023-05-04T09:42:00+00:00",
      "currentVersion": {
        "id": "string",
        "createdAt": "2023-05-04T09:42:00+00:00",
        "clientInfo": "string"
      }
    }
  ],
  "cursor": "string"
}
Response examples (200)
{
  "machines": [
    {
      "slug": "my-machine",
      "createdAt": "2024-05-04T09:42:00+00:00",
      "currentVersion": {
        "id": "string",
        "createdAt": "2024-05-04T09:42:00+00:00",
        "clientInfo": "string"
      }
    }
  ],
  "cursor": "string"
}