# checkChannel

```graphql
mutation CheckChannel($projectReference: ID!, $channelId: ID!, $input: CheckChannelInput!) {
  checkChannel(projectReference: $projectReference, channelId: $channelId, input: $input) {
    channelId
    slackChannelId
    status
    messageId
    failureCode
    retryable
    checkedAt
  }
}
```

Test channel message delivery. Requires project.channels.write.

## Arguments

| Name                   | Type               | Required | Description                                                                                                                                                                                                               |
| ---------------------- | ------------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectReference`     | ID!                | Yes      | Project ID or slug. Requires a person's credential; agent, run, and service-account callers are forbidden.                                                                                                                |
| `channelId`            | ID!                | Yes      |                                                                                                                                                                                                                           |
| `input`                | CheckChannelInput! | Yes      |                                                                                                                                                                                                                           |
| `input.slackChannelId` | String!            | Yes      | Slack channel for the test message. Slack refusals return status failed with a failure code. A missing Slack connection returns validation-failed; a transient connection refresh failure returns external-service-error. |
| `input.text`           | String             |          | 1-4000 characters; default 'Veryfront Slack connection test'.                                                                                                                                                             |

## Variables

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

## Responses

| Status | Description                                   |
| ------ | --------------------------------------------- |
| 200    | The ChannelCheckResult! in data.checkChannel. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation CheckChannel($projectReference: ID!, $channelId: ID!, $input: CheckChannelInput!) {\n  checkChannel(projectReference: $projectReference, channelId: $channelId, input: $input) {\n    channelId\n    slackChannelId\n    status\n    messageId\n    failureCode\n    retryable\n    checkedAt\n  }\n}",
  "variables": {
    "projectReference": "string",
    "channelId": "string",
    "input": {
      "slackChannelId": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "checkChannel": {
      "channelId": "string",
      "slackChannelId": "string",
      "status": "delivered",
      "messageId": "string",
      "failureCode": "not_in_channel",
      "retryable": false,
      "checkedAt": "2026-01-01T00:00:00Z"
    }
  }
}
```
