---
title: "List Instances"
method: GET
path: "/v1/agents"
tags: ["Agents"]
---

# List Instances

`GET /v1/agents`

## Query parameters

- `state` 'active' | 'inactive' | 'all' — Which instances to return: active, inactive, or all (both)

## Headers

- `xi-api-key` string, nullable
- `x-api-key` string, nullable

## Response `200`

Successful Response

- AgentInstanceOut[]
  - `id` string, required
  - `name` string, required
  - `state` 'creating' | 'starting' | 'running' | 'stopping' | 'stopped' | 'failed' | 'deleted', required
  - `start_ts` integer, required
  - `state_ts` integer, required
  - `stop_ts` integer, nullable, required
  - `price_per_hour` number, required
  - `region` string, required
  - `last_backup_ts` integer, nullable, required
  - `ssh_port` integer, required
  - `fail_reason` string, nullable, required
  - `public_ip` string, nullable, required
  - `version` string, nullable, required
  - `agent_type` string, required
  - `ssh_user` string, required — POSIX user the agent runs as inside the VM; also the SSH login user.
  - `plan_id` string, required

## Other responses

- `401` — Unauthorized
- `422` — Validation Error

---

[API](https://skmtc.net/deepinfra/apis/deepinfra-api.md) · [All operations](https://skmtc.net/deepinfra/apis/deepinfra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deepinfra/deepinfra-api/versions/51b817b3f80f/schema)
