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

# List Agents

`GET /agents`

## Query parameters

- `page` integer — Page number
- `page_size` integer — Number of items per page
- `only_active` boolean — Whether to only return active sessions
- `only_saved` boolean — Whether to only return saved agents
- `only_current_token` boolean — Whether to only return agents for the current token (apikey)

## Headers

- `x-notte-request-origin` string, nullable
- `x-notte-sdk-version` string, nullable

## Response `200`

Successful Response

- PaginatedResponseAgentResponse
  - `items` AgentResponse[], required
    - `agent_id` string, required — The ID of the agent
    - `created_at` string, date-time, required — The creation time of the agent
    - `session_id` string, required — The ID of the session
    - `status` 'active' | 'closed', required
    - `closed_at` string, date-time, nullable — The closing time of the agent
    - `saved` boolean — Whether the agent is saved as a workflow
  - `page` integer, required
  - `page_size` integer, required
  - `has_next` boolean, required
  - `has_previous` boolean, required

## Other responses

- `422` — Validation Error

---

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