# Get channels

URL: https://docs.hanzo.ai/docs/openapi/task/get-task-channels-by-channel

> Summarises one channel's work.

`GET /v1/task/channels/{channel}`

> [Task →](https://docs.hanzo.ai/docs/openapi/task) · [All API references →](https://docs.hanzo.ai/docs/openapi) · [Get started →](https://docs.hanzo.ai/docs/guides)

|               |                                                   |
| ------------- | ------------------------------------------------- |
| **Address**   | `https://api.hanzo.ai/v1/task/channels/{channel}` |
| **Method**    | `GET`                                             |
| **Operation** | `get_task_channels_by_channel`                    |
| **Auth**      | `Authorization: Bearer $HANZO_API_KEY`            |

Summarises one channel's work.

The channel is opaque here and is deliberately not resolved: this package cannot
say whether a channel exists — apps/team owns that document — so an unknown channel
answers an EMPTY board rather than a 404. That is the honest answer and the
useful one: a channel that has never had an item filed in it and a channel id
that was mistyped both have no work, and inventing a distinction would require
this surface to hold a second copy of the channel list (HIP-0523 §2 forbids it,
and it would drift the first time a channel was renamed).

Tenancy is the validated principal's org and nothing else, so a caller cannot
read another tenant's channel by naming its channel.

## Request

1 field.

| Field     | In   | Type   | Required | Description                                                                                                                                                            |
| --------- | ---- | ------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `channel` | path | string | yes      | Channel is the channel, spelled "\<space>\_\<channel>" — the same value GET /v1/meet/call answers with, so a channel's call and its work name the channel identically. |

## Response

| Status    | Body             | Meaning |
| --------- | ---------------- | ------- |
| `200`     | task.channelWork | ok      |
| `default` | problem-details  | refused |

`200` body — 6 fields.

| Field      | In   | Type            | Always | Description                                                                                                                                                                                           |
| ---------- | ---- | --------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `channel`  | body | string          | —      | Channel is the channel these counts are for, echoed back as it was resolved.                                                                                                                          |
| `open`     | body | integer (int64) | —      | Open is how many items are still work: everything whose status does not end it.                                                                                                                       |
| `status`   | body | object          | —      | Status is the count per board column, carrying EVERY column this surface knows — an empty column reads 0 rather than being absent, so a caller can render the board without inventing the vocabulary. |
| `status.*` | body | integer (int64) | —      |                                                                                                                                                                                                       |
| `total`    | body | integer (int64) | —      | Total is every item bound to this channel, settled ones included, so Total minus Open is what the channel has finished.                                                                               |
| `updated`  | body | integer (int64) | —      | Updated is when anything in this channel's work last moved, in unix seconds.                                                                                                                          |

Failure carries the platform error shape — see [Errors](https://docs.hanzo.ai/docs/errors).

## Examples

**CLI**

```bash
hanzo task channels get <channel>
```

**SDK**

**.ts**

```ts
import { Configuration, TaskApi } from 'hanzoai';

const api = new TaskApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getTaskChannelsByChannel({ channel: 'channel' });
```

**.py**

```python
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import TaskApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = TaskApi(client).get_task_channels_by_channel(channel='channel')
```

**.go**

```go
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.TaskAPI.GetTaskChannelsByChannel(context.Background()).Execute()
if err != nil {
	return err
}
```

**.rs**

```rust
use hanzo_client::apis::{configuration::Configuration, task_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = task_api::get_task_channels_by_channel(&cfg, Default::default()).await?;
```

**.java**

```java
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.TaskApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new TaskApi(client).getTaskChannelsByChannel();
```

The method above is the one at the current release of the document. `hanzoai@8.5.914` (npm) and `hanzoai@8.5.914` (PyPI) were generated from an earlier release, where this operation carried a different id, so it spells the method differently — regenerating the clients is what makes the two agree. [SDKs →](https://docs.hanzo.ai/docs/sdks)

**HTTP**

```bash
curl https://api.hanzo.ai/v1/task/channels/<channel> \
  -H "Authorization: Bearer $HANZO_API_KEY"
```

**MCP**

MCP reaches **task** through the `task` tool, which names its 11 operations with its own verbs — this one among them, under a name only MCP declares. `describe` explains any of them:

```bash
curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "describe",
         "arguments": {
           "op": "get_task_board"
         }
       }
     }'
```

---

[Task API](https://docs.hanzo.ai/docs/openapi/task) · [All Hanzo APIs](https://docs.hanzo.ai/docs/openapi) · [Interactive reference](https://docs.hanzo.ai/docs/openapi/reference)
