---
title: "Get a list of machines for an instance"
method: GET
path: "/machines"
tags: ["Machines"]
---

# Get a list of machines for an instance

`GET /machines`

This request returns the list of machines for an instance. The machines are
ordered by descending creation date (i.e. most recent machines will be
returned first)

## Query parameters

- `limit` integer
- `offset` integer
- `query` string
- `order_by` string

## Response `200`

Success

- object
  - `data` Machine[], required
    - `object` 'machine', required
    - `id` string, required — Unique identifier for the machine.
    - `name` string, required — The name of the machine.
    - `instance_id` string, required — The ID of the instance this machine belongs to.
    - `created_at` integer, required — Unix timestamp of creation.
    - `updated_at` integer, required — Unix timestamp of last update.
    - `default_token_ttl` integer — The default time-to-live (TTL) in seconds for tokens created by this machine.
    - `scoped_machines` MachineWithoutScopedMachines[], required — Array of machines this machine has access to.
      - `object` 'machine', required
      - `id` string, required — Unique identifier for the machine.
      - `name` string, required — The name of the machine.
      - `instance_id` string, required — The ID of the instance this machine belongs to.
      - `created_at` integer, required — Unix timestamp of creation.
      - `updated_at` integer, required — Unix timestamp of last update.
      - `default_token_ttl` integer — The default time-to-live (TTL) in seconds for tokens created by this machine.
  - `total_count` integer, required — Total number of machines

## Other responses

- `400` — Request was not successful
- `401` — Authentication invalid
- `403` — Authorization invalid
- `422` — Invalid request parameters

---

[API](https://skmtc.net/clerk/apis/clerk-backend-api.md) · [All operations](https://skmtc.net/clerk/apis/clerk-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clerk/clerk-backend-api/revisions/cf036e7951d3/schema)
