# channel

```graphql
query Channel($projectReference: ID!, $channelId: ID!) {
  channel(projectReference: $projectReference, channelId: $channelId) {
    id
    projectId
    platform
    name
    agentId
    enabled
    status
    installationId
    platformTeamId
    platformBotId
    workspaceName
    respondTo
    allowedSlackChannelIds
    welcomeMessage
    errorMessage
    maxResponseTokens
    runtimeTargetKind
    targetEnvironmentId
    targetBranchId
    resolvedTarget {
      resolvedInvokeMode
    }
    createdAt
    updatedAt
  }
}
```

Return a channel binding. Requires project.channels.read.

## Arguments

| Name               | Type | Required | Description                                                                          |
| ------------------ | ---- | -------- | ------------------------------------------------------------------------------------ |
| `projectReference` | ID!  | Yes      | Project UUID or slug.                                                                |
| `channelId`        | ID!  | Yes      | Channel ID in the selected project; a channel in another project returns not\_found. |

## Variables

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

## Responses

| Status | Description                   |
| ------ | ----------------------------- |
| 200    | The Channel! in data.channel. |

## 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 Channel($projectReference: ID!, $channelId: ID!) {\n  channel(projectReference: $projectReference, channelId: $channelId) {\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    resolvedTarget {\n      resolvedInvokeMode\n    }\n    createdAt\n    updatedAt\n  }\n}",
  "variables": {
    "projectReference": "string",
    "channelId": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "channel": {
      "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",
      "resolvedTarget": {
        "resolvedInvokeMode": "dispatch_override"
      },
      "createdAt": "2026-01-01T00:00:00Z",
      "updatedAt": "2026-01-01T00:00:00Z"
    }
  }
}
```
