Hanzo AI
OpenapiTodo

Create issues

Opens a work item on the board — an issue on that repository on the deployment's forge, filed as YOU.

POST /v1/todo/projects/{key}/issues

Addresshttps://api.hanzo.ai/v1/todo/projects/{key}/issues
MethodPOST
Operationpost_todo_projects_by_key_issues
AuthAuthorization: Bearer $HANZO_API_KEY

Opens a work item on the board — an issue on that repository on the deployment's forge, filed as YOU.

The column and priority are written as LABELS, which is what makes the card and the forge issue the same object: someone relabelling in the forge web UI has moved your card.

Request

6 fields, body application/json (required).

FieldInTypeRequiredDescription
keypathstringyesKey is the board — the repository name, from the path.
descriptionbodystring—Description becomes the issue body.
keybodystring—Key is the board — the repository name, from the path.
prioritybodystring—Priority is one of none, urgent, high, medium or low.
statusbodystring—Status is the board column to open into: backlog, todo, in_progress, done or canceled.
titlebodystring—Title is the one line the card is read by on the board.

Response

StatusBodyMeaning
200issueViewok

200 body — 18 fields.

FieldInTypeAlwaysDescription
assigneebodystring—Assignee is who holds the work — an IAM username, or the login of the FIRST assignee when a forge issue has several.
createdAtbodyinteger—CreatedAt is when the item was opened, in unix seconds.
descriptionbodystring—Description is the body, markdown as its author wrote it.
dueAtbodyinteger—DueAt is when the work is due, in unix seconds; absent means no due date.
extRefbodystring—ExtRef anchors the item to something outside the todo — a mirrored issue ("github:owner/repo#123"), a pushed PR branch, or a record on another plane.
idbodystring—ID is the work item's opaque handle, and it is NOT how you address it — ProjectKey plus Number is.
identifierbodystring—Identifier is the human handle, "<key>#<number>" — the board and the number on it, joined.
kindbodystring—Kind is what the item IS: issue, pr or epic. Set once at create and never changed, so a row does not migrate between surfaces.
labelsbodystring[]—Labels are the item's remaining tags, with the status and priority labels lifted OUT — a column that stayed here would render twice, once as the card's column…
numberbodyinteger—Number is the item's number ON ITS BOARD, from 1 and monotonic there — the forge's own issue number for a forge row, allocated inside the create transaction…
prioritybodystring—Priority is urgent, high, medium, low or none. Also a label on a forge row.
projectKeybodystring—ProjectKey is the board this item is on: the repository name for a forge issue, the index board's key otherwise.
repobodystring—Repo is the git repository the item is bound to, so a repository's Issues and PRs tabs are filters over this one table.
sourcebodystring—Source is which surface OPENED it: team, git, crm, helpdesk, cms or agent. Also set once.
startAtbodyinteger—StartAt is when the work starts, in unix seconds; absent means unscheduled.
statusbodystring—Status is the board column: backlog, todo, in_progress, done or canceled, and nothing else.
titlebodystring—Title is the item's one-line summary.
updatedAtbodyinteger—UpdatedAt is when it last changed, in unix seconds.

Failure carries the platform error shape — see Errors.

Examples

hanzo todo projects issues create <key>

Todo API · All Hanzo APIs · Interactive reference

How is this guide?

On this page