# channelAgents

```graphql
query ChannelAgents($projectReference: ID!) {
  channelAgents(projectReference: $projectReference) {
    data {
      id
      name
      description
      model
    }
  }
}
```

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

## Arguments

| Name                        | Type               | Required | Description                                                                  |
| --------------------------- | ------------------ | -------- | ---------------------------------------------------------------------------- |
| `projectReference`          | ID!                | Yes      | Project UUID or slug.                                                        |
| `input`                     | ChannelAgentsInput |          |                                                                              |
| `input.runtimeTargetKind`   | RuntimeTargetKind  |          | Default main\_branch. One of `main_branch`, `environment`, `preview_branch`. |
| `input.targetEnvironmentId` | ID                 |          |                                                                              |
| `input.targetBranchId`      | ID                 |          |                                                                              |

## Variables

```json
{
  "projectReference": "string"
}
```

## Responses

| Status | Description                                  |
| ------ | -------------------------------------------- |
| 200    | The ChannelAgentList! in data.channelAgents. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query ChannelAgents($projectReference: ID!) {\n  channelAgents(projectReference: $projectReference) {\n    data {\n      id\n      name\n      description\n      model\n    }\n  }\n}",
  "variables": {
    "projectReference": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "channelAgents": {
      "data": [
        {
          "id": "string",
          "name": "string",
          "description": "string",
          "model": "string"
        }
      ]
    }
  }
}
```
