Limits and errors
Limits
| Limit | Value |
|---|---|
Ticket title | 1–256 characters |
Ticket body, comment body | At most 65536 characters each |
assignees per ticket | At most 10 |
| Labels per ticket | At most 100 |
| Sub-tickets per ticket | At most 100 |
Label color | Six hexadecimal digits, no # |
List page_size | 1–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.
| Status | code | Cause and fix | Retryable |
|---|---|---|---|
| 400 | INVALID_PARAMS | An 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 says | No |
| 403 | PERMISSION_DENIED | The caller lacks permission, for example a machine token, or a non-admin locking a ticket | No |
| 403 | TICKET_LOCKED | The ticket is locked and only admins can comment | No |
| 404 | TICKET_NOT_FOUND, COMMENT_NOT_FOUND, LABEL_NOT_FOUND, MILESTONE_NOT_FOUND, REPOSITORY_NOT_FOUND | The object is not in this organization; use the ticket number in paths, not the tk_ id | No |
| 410 | TICKET_GONE | The ticket has been removed; list the repository’s tickets again | No |
| 422 | duplicate name | For example creating a label with an existing name; choose another name | No |
| 422 | DEPENDENCY_CYCLE | The dependency would close a blocking cycle; remove the opposite dependency first | No |
| 422 | SUB_TICKET_LIMIT | The parent already has 100 sub-tickets, or the child has another parent and replace_parent: true was not sent | No |
| 422 | ASSIGNEE_LIMIT | More than 10 assignees | No |
| 429 | RATE_LIMITED | Rate limited; wait retry-after seconds and retry | Yes |