List tickets
Code Mode: praxis.ticket.tickets.list
HTTP: GET /ticket/v1/tickets
List tickets within the authenticated organization. Obtain resource identifiers from the corresponding list or create response. Pass next_page_token as page_token to continue with the same filter. Service authorization applies to the verified human subject.
Signature
praxis.ticket.tickets.list(args?:{query?:{/** Opaque repository id. */ repository?:string;/** Page size. */ page_size?:number;/** Opaque cursor. */ page_token?:string;/** Filter expression using field:value qualifiers, such as is:open milestone:5. */ filter?:string}}):Promise<{/** Selected tickets records. */ tickets:Array<{/** Opaque identifier returned by this resource's create or list operation. */ id:string;/** Opaque identifier returned by this resource's create or list operation. */ repository:string;/** Repository-local number returned by create or list; distinct from the object's id. */ number:number;/** Short title, at most 256 Unicode characters. */ title:string;/** Markdown text, at most 65536 characters. */ body:string;/** open (console: 开放) is actionable; closed (console: 已关闭) is resolved or declined; to a person say the console word, not the stored value. e.g. "open" */ state:"open"|"closed";/** completed means resolved; not_planned means declined; duplicate identifies a duplicate; reopened records reopening. e.g. "completed" */ state_reason:"completed"|"not_planned"|"duplicate"|"reopened";/** The original ticket's number; required when state_reason is duplicate. */ duplicate_of:number|null;/** Built-in type name (console: bug 缺陷, feature 功能, task 任务; to a person say the console word), null when unset; the list is GET /ticket/v1/types. */ type:string|null;/** Labels attached to this ticket, never its type (type is its own field); updates replace the complete list. */ labels:Array<string>;/** The one subject who drives and accepts the ticket; the detail view shows it as the owner. pattern: ^(human|agent):.+$ e.g. "human:usr_example" */ owner:string|null;/** Compatibility list kept for GitHub clients, at most ten; it does not decide who drives the ticket. */ assignees:Array<string>;/** Repository-local number returned by create or list; distinct from the object's id. */ milestone:number|null;/** Whether non-admin conversation writes are blocked. */ locked:boolean;/** Reason recorded when the conversation was locked. */ active_lock_reason:string|null;/** Opaque human:<user_id> or agent:<individual_id> subject. pattern: ^(human|agent):.+$ e.g. "human:usr_example" */ author:string;/** Opaque human:<user_id> or agent:<individual_id> subject. pattern: ^(human|agent):.+$ e.g. "human:usr_example" */ closed_by:string|null;/** Subjects resolved from mentions in the body. */ mentions:Array<string>;/** Platform file ids written as `…/files/<id>` links in the body, in order of appearance, de-duplicated. */ attachments:Array<string>;/** Repository-local number returned by create or list; distinct from the object's id. */ parent:number|null;/** Direct child progress. */ sub_tickets_summary:{/** Direct child count. */ total:number;/** Closed child count. */ completed:number;/** Percentage of direct children that are closed. */ percent_completed:number};/** Direct dependency counts. */ ticket_dependencies_summary:{/** Open direct blockers. */ blocked_by:number;/** Open directly blocked tickets. */ blocking:number;/** All direct blockers. */ total_blocked_by:number;/** All directly blocked tickets. */ total_blocking:number};/** Number of comments. */ comments:number;reactions:{/** Total reactions on this target. */ total_count:number;/** Number of +1 reactions. */ "+1":number;/** Number of -1 reactions. */ "-1":number;/** Number of laugh reactions. */ laugh:number;/** Number of confused reactions. */ confused:number;/** Number of heart reactions. */ heart:number;/** Number of hooray reactions. */ hooray:number;/** Number of eyes reactions. */ eyes:number;/** Number of rocket reactions. */ rocket:number};/** Creation timestamp. e.g. "2026-12-01T00:00:00Z" */ create_time:string;/** Most recent update timestamp. e.g. "2026-12-01T00:00:00Z" */ update_time:string;/** Closing timestamp; null while open. e.g. "2026-12-01T00:00:00Z" */ close_time:string|null}>;/** Opaque cursor for the next page; empty when exhausted. */ next_page_token:string;/** Total matching tickets, independent of page size. */ total_size?:number}>;Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| repository | query | string | no | Repository id from GET /ticket/v1/repositories; omit for the default tickets container. |
| page_size | query | number | no | Records per page; defaults to 30, maximum 100. |
| page_token | query | string | no | Cursor returned as next_page_token; omit for the first page. |
| filter | query | string | no | Search qualifier subset: is/state, reason, label/-label, no, assignee, owner, author, mentions, milestone, type, kind, assignee-kind, in and sort (owner:<subject>|none|*|me and no:owner match the single ticket owner; assignee: matches the GitHub-compatible assignees); write each qualifier as field:value (for example, is:open milestone:5), never field=value. Unknown qualifiers return INVALID_PARAMS, and so does a known qualifier written with = instead of : (spaces optional, for example milestone = 5); write it as milestone:5. Passed unchanged to the service. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | The operation succeeded; the body contains the requested resource or page. |
| 400 | Invalid native input or unsupported GitHub API version; correct the request before retrying. | |
| 401 | Credentials are absent or invalid; supply a valid API key or signed browser session. | |
| 403 | Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers. | |
| 404 | Resource or repository is absent from this organization; a different owner has the identical missing-resource response. | |
| 410 | Ticket is gone; refresh the repository’s ticket list. | |
| 422 | Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships. | |
| 429 | Native rate limit; wait for retry-after before retrying. |