# Task

URL: https://docs.hanzo.ai/docs/openapi/task

> Hanzo Task: boards, the work items on them, and the filters that make a board.

Also for this capability: **API** · [CLI](https://docs.hanzo.ai/docs/cli/task) · [MCP](https://docs.hanzo.ai/docs/mcp-tools/task) · [SDKs](https://docs.hanzo.ai/docs/sdks)

Hanzo Task: boards, the work items on them, and the filters that make a board.

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

|                |                                        |
| -------------- | -------------------------------------- |
| **Base URL**   | `https://api.hanzo.ai`                 |
| **Operations** | 14                                     |
| **Auth**       | `Authorization: Bearer $HANZO_API_KEY` |

## Specification

Specification pending — no HIP in [hanzoai/hips](https://github.com/hanzoai/hips) declares `capability: task` yet. What this capability serves is below, from the API document; what it is — the store it owns, how it meters, what it publishes — is written as a HIP under HIP-0139.

## Four surfaces

| Surface  | Reaches this capability as                   | Coverage                                                                   |
| -------- | -------------------------------------------- | -------------------------------------------------------------------------- |
| **REST** | `task` at its own prefix                     | 14 operations                                                              |
| **CLI**  | `hanzo task …`                               | 13 of 14 — the CLI pins the document on its own clock                      |
| **SDK**  | `TaskApi` in every published client          | 14 methods                                                                 |
| **MCP**  | tool `task` on `https://api.hanzo.ai/v1/mcp` | 10 operations, 1 under the document's own id — ask `describe` for the rest |

## Quickstart

```bash
export HANZO_API_KEY=sk-...   # console.hanzo.ai → API keys
```

Then the first call — a read that needs nothing but the key. `GET /v1/task/board`, operation `get_task_board`:

**CLI**

```bash
hanzo task board
```

**SDK**

**.ts**

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

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

**.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_board()
```

**.go**

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

resp, _, err := client.TaskAPI.GetTaskBoard(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_board(&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).getTaskBoard();
```

**HTTP**

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

**MCP**

Tool `task`, op `get_task_board` — POST the JSON-RPC envelope to `https://api.hanzo.ai/v1/mcp`.

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

Answers `200` with `task.issueView[]` — ok.

## Endpoints

| Endpoint                                                                                                                                       | What it does                                                                                                                                                                                      |
| ---------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`GET /v1/task/board`](https://docs.hanzo.ai/docs/openapi/task/get-task-board)                                                                 | Returns a board's issues — work items with their column, priority, assignee, labels and schedule.                                                                                                 |
| [`GET /v1/task/issues`](https://docs.hanzo.ai/docs/openapi/task/get-task-issues)                                                               | Answers across every project in the org.                                                                                                                                                          |
| [`POST /v1/task/projects/{key}/issues/{num}/claim`](https://docs.hanzo.ai/docs/openapi/task/post-task-projects-by-key-issues-by-num-claim)     | Takes an issue: it becomes yours and it moves to in\_progress.                                                                                                                                    |
| [`GET /v1/task/projects/{key}/issues/{num}/comments`](https://docs.hanzo.ai/docs/openapi/task/get-task-projects-by-key-issues-by-num-comments) | One issue's conversation, oldest first, read as the caller.                                                                                                                                       |
| [`GET /v1/task/projects/{key}/issues/{num}`](https://docs.hanzo.ai/docs/openapi/task/get-task-projects-by-key-issues-by-num)                   | Returns ONE work item in full — its description included.                                                                                                                                         |
| [`PATCH /v1/task/projects/{key}/issues/{num}`](https://docs.hanzo.ai/docs/openapi/task/patch-task-projects-by-key-issues-by-num)               | Edits a work item — rename it, rewrite it, move it to another column, re-prioritise it, hand it to somebody, or comment on it.                                                                    |
| [`GET /v1/task/projects/{key}/issues`](https://docs.hanzo.ai/docs/openapi/task/get-task-projects-by-key-issues)                                | Returns a board's issues — work items with their column, priority, assignee, labels and schedule.                                                                                                 |
| [`POST /v1/task/projects/{key}/issues`](https://docs.hanzo.ai/docs/openapi/task/post-task-projects-by-key-issues)                              | Opens a work item on the board, filed as YOU, where the repository lives: an issue on the deployment's forge, or on GitHub for a repository the forge mirrors from there or does not hold at all. |
| [`GET /v1/task/projects/{key}`](https://docs.hanzo.ai/docs/openapi/task/get-task-projects-by-key)                                              | Returns one board of your org by its key — the repository name.                                                                                                                                   |
| [`PATCH /v1/task/projects/{key}`](https://docs.hanzo.ai/docs/openapi/task/patch-task-projects-by-key)                                          | Refused — a board is a repository on the forge                                                                                                                                                    |
| [`DELETE /v1/task/projects/{key}`](https://docs.hanzo.ai/docs/openapi/task/delete-task-projects-by-key)                                        | Refused — a board is a repository on the forge                                                                                                                                                    |
| [`GET /v1/task/projects`](https://docs.hanzo.ai/docs/openapi/task/get-task-projects)                                                           | Returns the boards of your org — the places your work actually is.                                                                                                                                |
| [`POST /v1/task/projects`](https://docs.hanzo.ai/docs/openapi/task/post-task-projects)                                                         | Refused — a board is a repository on the forge                                                                                                                                                    |
| [`GET /v1/task/rooms/{room}`](https://docs.hanzo.ai/docs/openapi/task/get-task-rooms-by-room)                                                  | Summarises one room's work.                                                                                                                                                                       |

---

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