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

# List current Agents

`GET /agents`

## Query parameters

- `limit` integer
- `offset` integer
- `name` string
- `order` 'name' | 'id'
- `dir` 'asc' | 'desc'
- `tags` object

## Response `200`

Data retrieved.

- AgentPageSchema
  - `agents` AgentObjSchema[], required
    - `id` string, uuid, required — Unique identifier (UUID)
    - `name` string — A unique name label
    - `agent_tags` object — Orb tags field sent in by the agent when it connects group by matching against Agent tags
    - `orb_tags` object — Orb tags field defined through the API or UI
    - `ts_created` string, date-time — Timestamp of creation
    - `agent_metadata` object — JSON object sent in by the agent representing its Capabilities
    - `state` string — Current connection status of the agent, one of 'new', 'online', 'offline', 'stale', 'removed'
    - `last_hb_data` object — JSON object sent in by the agent as its last heartbeat
    - `ts_last_hb` string, date-time — A time stamp of the last heartbeat that was received
    - `key` string, uuid — Agent key is a secret key that is generated at agent creation for authentication purposes
    - `channel_id` string, uuid — Communication channel ID (UUIDv4), unique to this agent and created at agent creation
  - `total` integer — Total number of items.
  - `offset` integer — Number of items to skip during retrieval.
  - `limit` integer — Maximum number of items to return in one page.

## Other responses

- `400` — Failed due to malformed query parameters.
- `401` — Missing or invalid access token provided.
- `404` — A non-existent entity request.
- `500` — Unexpected server-side error occurred.

## Changes

> 15 revisions in range; 1 could not be searched.

- **2022-10-04** `111e8df6206d` — 1 breaking
  - added the new required `header` request parameter `Bearer authorization` to all path's operations
- **2022-09-27** `761410149870` — 1 info
  - added the new optional `query` request parameter `tags`
- **2021-11-26** `57efbcb25619` — 2 info
  - added the optional property `agents/items/channel_id` to the response with the `200` status
  - added the optional property `agents/items/key` to the response with the `200` status
- **2021-08-25** `c2a7000136b8` — 3 warning
  - deleted the `query` request parameter `tags`
  - removed the optional property `agents/items/channel_id` from the response with the `200` status
  - removed the optional property `agents/items/key` from the response with the `200` status

[Change history](https://skmtc.dev/orb-community/apis/orb-fleet/changes/agents/get.md)

---

[API](https://skmtc.dev/orb-community/apis/orb-fleet.md) · [All operations](https://skmtc.dev/orb-community/apis/orb-fleet/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/orb-community/orb-fleet/revisions/53154347a3c8/schema)
