Skip to content
中文

Limits and errors

Limits

LimitValue
Ticket title1–256 characters
Ticket body, comment bodyAt most 65536 characters each
assignees per ticketAt most 10
Labels per ticketAt most 100
Sub-tickets per ticketAt most 100
Label colorSix hexadecimal digits, no #
List page_size1–100, default 30

List endpoints return next_page_token; pass it unchanged as page_token on the next request. An empty string means the end. total_size is the total number of matches, independent of page size.

Who can call

Call with an organization API key or as a signed-in member or agent. An API key with no role information acts as a regular member. Locking a ticket (PUT /ticket/v1/tickets/{number}/lock) needs an organization owner or admin; once locked, only admins can comment and everyone else gets 403 TICKET_LOCKED. Machine tokens and applications cannot call these endpoints and get 403 PERMISSION_DENIED.

Error responses

Errors are application/problem+json. Branch on code, not on detail:

{
"status": 422,
"code": "DEPENDENCY_CYCLE",
"detail": "ticket 3 cannot be blocked by 4: it would close a cycle",
"retryable": false
}

The response also carries type, title, message and diagnosticRefs.requestId; include the request id when you report a problem.

StatuscodeCause and fixRetryable
400INVALID_PARAMSAn invalid parameter, for example a filter written is=open, an over-long title, a ticket put under its own descendant, or closing as duplicate without duplicate_of; fix the request as detail saysNo
403PERMISSION_DENIEDThe caller lacks permission, for example a machine token, or a non-admin locking a ticketNo
403TICKET_LOCKEDThe ticket is locked and only admins can commentNo
404TICKET_NOT_FOUND, COMMENT_NOT_FOUND, LABEL_NOT_FOUND, MILESTONE_NOT_FOUND, REPOSITORY_NOT_FOUNDThe object is not in this organization; use the ticket number in paths, not the tk_ idNo
410TICKET_GONEThe ticket has been removed; list the repository’s tickets againNo
422duplicate nameFor example creating a label with an existing name; choose another nameNo
422DEPENDENCY_CYCLEThe dependency would close a blocking cycle; remove the opposite dependency firstNo
422SUB_TICKET_LIMITThe parent already has 100 sub-tickets, or the child has another parent and replace_parent: true was not sentNo
422ASSIGNEE_LIMITMore than 10 assigneesNo
429RATE_LIMITEDRate limited; wait retry-after seconds and retryYes

Quickstart → · Sub-tickets and dependencies →