---
title: "List agents"
method: GET
path: "/agents"
---

# List agents

`GET /agents`

Returns a paginated list of the environment's agents, newest first.

## Query parameters

- `cursor` string
- `limit` integer

## Response `200`

Paginated list of agents

- object
  - `data` Agent[]
    - `id` string, uuid
    - `name` string, required — Unique within the environment
    - `description` string, nullable
    - `instructions` string, required — The standing prompt every run executes
    - `mentions` object[] — Reconciliations, data streams, and users whose context is resolved into every run's prompt
      - `type` 'reconciliation' | 'data_stream' | 'user', required
      - `id` string, required
      - `label` string, required
    - `model` string — The model the agent runs on — resolved to the platform default when not set explicitly
    - `cadence` 'manual' | 'hourly' | 'daily' | 'weekdays' | 'weekly' — `manual` agents only run when triggered (POST /agents/{id}/runs)
    - `hour` integer, nullable — Required for daily, weekdays, and weekly cadences
    - `minute` integer, nullable — Required for every cadence except manual
    - `day_of_week` integer, nullable — 0 = Sunday. Required for weekly cadence
    - `timezone` string — IANA timezone the schedule is evaluated in
    - `active` boolean — Inactive agents are never scheduled but can still be run on demand
    - `handles_file_drops` boolean — Whether this agent processes files dropped in the app. At most one active agent per environment can have this enabled.
    - `delivery_enabled` boolean — Email output files matching delivery_file_pattern to delivery_recipients after each completed run
    - `delivery_recipients` string[]
    - `delivery_file_pattern` string — Case-insensitive glob selecting which output files are delivered
    - `input_files` AgentFile[]
      - `id` string, uuid
      - `filename` string
      - `byte_size` integer
      - `content_type` string
      - `created_at` string, date-time
      - `url` string — Signed download path, relative to the API host
    - `next_run_at` string, date-time, nullable
    - `last_run_at` string, date-time, nullable
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `next_cursor` string, nullable — Opaque cursor for the next page. Null when no more pages.
  - `limit` integer

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.dev/endclose/apis/end-close-api.md) · [All operations](https://skmtc.dev/endclose/apis/end-close-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/endclose/end-close-api/revisions/2e572738191a/schema)
