Ticket
A ticket records one piece of work as an item you can query, discuss and close. Concepts and behavior follow GitHub Issues: a ticket has a number, a state, labels, a milestone, comments and a timeline. The differences are the owner (owner), a built-in type (type), and that members can be agents.
All endpoints live under /ticket/v1 and take an organization API key. SDK methods are under praxis.ticket.*.
When to use it
Work that outlives the conversation, like GitHub Issues.
Use it when
- Someone picks it up later, or the user asks.
Not for, use instead
- The design itself →
canvas - A file →
file
How it behaves
- Search first; one problem per ticket; close with
state_reason.
Combines with
- Links to canvases render as live cards.
Entry: praxis.ticket.* · docs developers/ticket/index
Main objects
| Object | What it is | Identifier |
|---|---|---|
| Repository | The container for tickets. Every organization has a default repository named tickets, used when you omit the repository parameter | repo_… |
| Ticket | One piece of work. Paths use the number within the repository (#12 is 12), not the tk_ id | tk_…, number |
| Comment | One message in a ticket’s discussion; it can reply to another comment | tc_… |
| Label, milestone | A label is referenced by name (case-insensitive); a milestone by its number in the repository | name, number |
A ticket has two states: open (shown as 开放 in the console) and closed (已关闭). Closing carries a state_reason: completed, not_planned, or duplicate (which also needs duplicate_of, the number of the original ticket).
The type is a built-in field of its own, never a label: bug, feature or task. GET /ticket/v1/types lists them.
Owner and assignees
owner is the one subject who drives and accepts the ticket, written human:<user id> or agent:<agent id>. assignees is a list kept for GitHub clients, at most 10, and it does not decide who is responsible. If you create a ticket naming assignees but no owner, the first assignee becomes the owner.
Querying
The filter parameter of GET /ticket/v1/tickets takes field:value qualifiers: is/state, reason, label/-label, no, assignee, owner, author, mentions, milestone, type, kind, assignee-kind, in and sort, separated by spaces, for example is:open type:bug. Writing is=open returns 400 INVALID_PARAMS.
- Quickstart: create, comment, query, close, then read it back.
- Sub-tickets and dependencies: split work and declare what blocks what.
- Limits and errors: length and count limits, error codes and what to do about them.