---
title: "Lists the agents of the authenticated account, newest first, paginated."
method: GET
path: "/api/agents"
tags: ["agents"]
---

# Lists the agents of the authenticated account, newest first, paginated.

`GET /api/agents`

## Request

- Base URL: `https://api.pricklymails.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pricklymails.com/api/agents`
- Auth: HTTP bearer

## Query parameters

- `limit` integer
- `offset` integer

## Response `200`

Paginated agent list, newest first.

- ListAgentsResponse: `GET /api/agents` response body: a paginated page of the caller's agents.
  - `agents` AgentResponse[], required: The caller's agents, newest first.
    - `created_at` string, required: RFC 3339 creation timestamp.
    - `description` string, nullable: Description of the agent, omitted when none was set.
    - `is_active` boolean, required: Whether the agent can currently authenticate.
    - `name` string, required: Display name of the agent.
    - `scopes` string[], required: Scopes granted to the agent.
    - `status` string, required: Status of the agent: `"active"` or `"revoked"`.
    - `updated_at` string, required: RFC 3339 timestamp of the last change.
    - `uuid` string, required: Public UUID of the agent.
  - `limit` integer, required: Page size applied after clamping.
  - `offset` integer, required: Offset applied.

## Other responses

- `401`: Missing or invalid JWT.

---

[API](https://skmtc.dev/pricklymails/apis/pricklymails-api.md) · [All operations](https://skmtc.dev/pricklymails/apis/pricklymails-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pricklymails/apis/pricklymails-api/revisions/b4225a92d8fb?raw)
