# channels

```graphql
query Channels($projectReference: ID!) {
  channels(projectReference: $projectReference) {
    data {
      id
      projectId
      platform
      name
      agentId
      enabled
      status
      installationId
      platformTeamId
      platformBotId
      workspaceName
      respondTo
      allowedSlackChannelIds
      welcomeMessage
      errorMessage
      maxResponseTokens
      runtimeTargetKind
      targetEnvironmentId
      targetBranchId
      createdAt
      updatedAt
    }
  }
}
```

List a project's channels. Requires project.channels.read.

## Arguments

| Name               | Type | Required | Description           |
| ------------------ | ---- | -------- | --------------------- |
| `projectReference` | ID!  | Yes      | Project UUID or slug. |

## Variables

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

## Responses

| Status | Description                        |
| ------ | ---------------------------------- |
| 200    | The ChannelList! in data.channels. |

## 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 Channels($projectReference: ID!) {\n  channels(projectReference: $projectReference) {\n    data {\n      id\n      projectId\n      platform\n      name\n      agentId\n      enabled\n      status\n      installationId\n      platformTeamId\n      platformBotId\n      workspaceName\n      respondTo\n      allowedSlackChannelIds\n      welcomeMessage\n      errorMessage\n      maxResponseTokens\n      runtimeTargetKind\n      targetEnvironmentId\n      targetBranchId\n      createdAt\n      updatedAt\n    }\n  }\n}",
  "variables": {
    "projectReference": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "channels": {
      "data": [
        {
          "id": "string",
          "projectId": "string",
          "platform": "slack",
          "name": "string",
          "agentId": "string",
          "enabled": false,
          "status": "connected",
          "installationId": "string",
          "platformTeamId": "string",
          "platformBotId": "string",
          "workspaceName": "string",
          "respondTo": "mentions",
          "allowedSlackChannelIds": [
            "string"
          ],
          "welcomeMessage": "string",
          "errorMessage": "string",
          "maxResponseTokens": 0,
          "runtimeTargetKind": "main_branch",
          "targetEnvironmentId": "string",
          "targetBranchId": "string",
          "createdAt": "2026-01-01T00:00:00Z",
          "updatedAt": "2026-01-01T00:00:00Z"
        }
      ]
    }
  }
}
```
