# List agents across projects

```http
GET /agents
```

List agents across projects.

## Parameters

| Name                | In    | Required | Description                                                               |
| ------------------- | ----- | -------- | ------------------------------------------------------------------------- |
| `account_id`        | query |          |                                                                           |
| `cursor`            | query |          |                                                                           |
| `limit`             | query |          |                                                                           |
| `search`            | query |          |                                                                           |
| `project_reference` | query |          |                                                                           |
| `access`            | query |          |                                                                           |
| `kind`              | query |          |                                                                           |
| `runtime_status`    | query |          |                                                                           |
| `label`             | query |          |                                                                           |
| `sort_by`           | query |          | Field to sort by. Ties break by agent row ID ascending.                   |
| `sort_order`        | query |          | Sort direction. Defaults to asc, the order the directory has always used. |

## Responses

| Status | Description                                                                                                 |
| ------ | ----------------------------------------------------------------------------------------------------------- |
| 200    | Paginated account-wide accessible agents                                                                    |
| 400    | Bad request                                                                                                 |
| 401    | Unauthorized                                                                                                |
| 403    | Forbidden                                                                                                   |
| 500    | Server error                                                                                                |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly. |
