# List agents

`GET /v1/projects/{project}/agents`, operation `agents.ListAgents`

Lists a project's agents that the caller may see, the most recently active first.

Those the project sees, and the private ones shared with the caller, or theirs; all of them for those who hold agents.agents.accessPrivate on the project.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `project` | path | Yes | `string` | The project's ID. |
| `pageSize` | query | No | `integer (int32)` | Maximum number of items to return. Defaults to 50; values above 500 are treated as 500. |
| `pageToken` | query | No | `string` | Page token from a previous response. |
| `filter` | query | No | `string` | Only the agents that one person created: creator = "user:usr_…", or creator = me for the caller's own. |

## Responses

### 200

OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `agents` | `Agent[]` | Yes | Agents, the most recently active first. |
| `nextPageToken` | `string` | Yes | Token for the next page; empty on the last page. |

### default

Error

Base URL: `https://api.kosem.ai`. See [API conventions](https://docs.kosem.ai/reference/api-conventions.md) for authentication, pagination and errors, and [https://docs.kosem.ai/openapi.yaml](https://docs.kosem.ai/openapi.yaml) for the full OpenAPI document.