# List agents a runtime target can use

```http
GET /projects/{project_reference}/channels/agents
```

List runtime target agents. Requires project.channels.read.

## Parameters

| Name                    | In    | Required | Description                                                                                                                                                               |
| ----------------------- | ----- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference`     | path  | Yes      | Project slug, UUID, or domain that identifies the project.                                                                                                                |
| `runtime_target_kind`   | query |          | Runtime target to inspect. Environment targets require target\_environment\_id; preview\_branch targets require target\_branch\_id. Missing or mismatched IDs return 400. |
| `target_environment_id` | query |          | Environment ID; required when runtime\_target\_kind is environment                                                                                                        |
| `target_branch_id`      | query |          | Branch ID; required when runtime\_target\_kind is preview\_branch                                                                                                         |

## Responses

| Status | Description           |
| ------ | --------------------- |
| 200    | The available agents. |
| 400    | Bad request           |
| 401    | Unauthorized          |
| 403    | Forbidden             |
| 404    | Not found             |
| 500    | Server error          |
