Skip to content

Tickets API

The tickets API is the programmatic side of the support portal: open a ticket, reply, follow it, close and reopen it. For contact channels and severities see Support & SLAs.

Endpoints

Method Path Description
GET /tickets List tickets (parameters: see the Interactive Reference)
POST /tickets Create a ticket
GET /tickets/{id} Show a ticket
DELETE /tickets/{id} Delete a ticket
GET /tickets/{id}/comments List the comments of a ticket
POST /tickets/{id}/comments Reply on a ticket
POST /tickets/{id}/close Close a ticket
POST /tickets/{id}/reopen Reopen a closed ticket
GET /tickets/{id}/watchers List the watchers
POST /tickets/{id}/watchers Watch a ticket, or add a watcher
DELETE /tickets/{id}/watchers/{account_id} Stop watching, or remove a watcher

Responses use the response envelope. The API reference lists every field.

Tickets and comments

A ticket has a number, a title, a body, a priority (low, normal, high, urgent) and a status: open, in_progress, waiting_on_customer or closed.

POST /tickets
Authorization: Bearer <token>
Content-Type: application/json

{
  "ticket": {
    "title": "Cannot reach my load balancer",
    "body": "Requests time out since this morning.",
    "priority": "high",
    "organization_id": "<org-uuid>"
  }
}

GET /tickets lists your organization's tickets; the full parameters are in the Interactive Reference.

The response is 201 with the ticket. project_id links the ticket to a project. Creating tickets is rate limited; the response is 429 when the limit is exceeded.

POST /tickets/<ticket-uuid>/comments
Authorization: Bearer <token>
Content-Type: application/json

{
  "comment": { "body": "The problem is gone after a restart." }
}

Replying is allowed for the ticket's creator (always), organization admins and members holding tickets:create. The viewer preset carries it, so a read-only member can still reply to support. Other members get 403. Internal staff notes are never created through this endpoint.

DELETE /tickets/{id} is a soft delete and answers 204. The ticket then disappears from your organization's view: it leaves GET /tickets, and every endpoint on this page answers 404 for it, as for a ticket that never existed. b'nerd support retains the ticket. All notifications and e-mails about it stop, and there is no undelete. Only the ticket's creator and organization admins may delete; any other member gets 403.

Close and reopen

POST /tickets/<ticket-uuid>/close
Authorization: Bearer <token>
POST /tickets/<ticket-uuid>/reopen
Authorization: Bearer <token>

Both answer 200 with the updated ticket. Reopening sets the status to open. Both are allowed for the ticket's creator, organization admins and members holding tickets:update.

Status Meaning
200 Ticket closed or reopened.
403 The caller may read the organization but may not change this ticket (errors[0].code is forbidden). A read-only member is 403, including one carrying the viewer preset, which grants tickets:read and tickets:create only.
404 The ticket was not found in your organization. A ticket in another organization is 404, never 403.
422 errors[0].code is invalid_transition: close on a ticket that is already closed, or reopen on a ticket that is not closed. errors[0].meta.status carries the ticket's current status.
{
  "request_id": "550e8400-e29b-41d4-a716-446655440000",
  "errors": [
    {
      "code": "invalid_transition",
      "status": 422,
      "meta": { "status": "closed" }
    }
  ]
}

Watchers

Watchers are the organization members following a ticket.

GET /tickets/<ticket-uuid>/watchers
Authorization: Bearer <token>

Each entry is a TicketWatcher:

Field Description
id The account's id.
name The member's name.
added_by_id Account id of whoever added the watcher; can be null.
created_at When the watcher was added.

The list identifies watchers by name and id only; it never discloses other members' e-mail addresses. The watcher id is the account's id: a watcher is addressed by account, not by a row of its own.

The list answers 404 when the ticket does not belong to your organization.

Watch a ticket

POST /tickets/<ticket-uuid>/watchers
Authorization: Bearer <token>

Omit account_id to watch the ticket yourself. To add another member, send their account ID:

POST /tickets/<ticket-uuid>/watchers
Authorization: Bearer <token>
Content-Type: application/json

{ "account_id": "<account-uuid>" }

Adding somebody else is reserved for the ticket's creator, organization admins and b'nerd staff; a plain member may only add themselves and gets 403 otherwise.

Status Meaning
201 Watcher added; the body is the TicketWatcher.
200 Already watching. Watching twice is idempotent and returns the existing watcher.
403 A plain member tried to add somebody else.
404 The ticket does not belong to your organization.
422 not_a_member: the account is not a member of the ticket's organization.

Stop watching

DELETE /tickets/<ticket-uuid>/watchers/<account-uuid>
Authorization: Bearer <token>

A watcher may always remove themselves. Removing somebody else is reserved for the ticket's creator, organization admins and b'nerd staff. The response is 204. A plain watcher removing somebody else gets 403; 404 means the ticket is not in your organization, or that account is not watching it.