Skip to main content

Support Tickets

Read the Overview first for authentication, request conventions, and errors.

An account sees only the tickets that it created in the organization. Rules for API tokens:

  • Attachments are not available. A create or comment request with attachments returns HTTP 400.
  • Creating a ticket, adding a comment, and changing the status notify the support team. Each token can send 3 of these requests at once, then one every 10 seconds. More requests return HTTP 429.

List Ticket Categories​

GET /api/v1/tickets/category-options · Read · Self

Returns the categories for Create a Ticket. See also Ticket Category.

{ "success": true, "data": [{ "name": "Warehouse", "value": 1 }, { "name": "Billing", "value": 8 }] }

List Tickets​

POST /api/v1/orgs/{orgSlug}/tickets/query · Read · Creator

Returns the tickets that the account created in the organization. By default, the newest last reply comes first. All body fields are optional. Send {} to list all tickets.

FieldTypeRequiredDescription
pageintegerNoPage number. Default: 1.
perPageintegerNoRows per page. Default: 50.
statusstring (enum)Nonew, open, pending, hold, solved, or closed.
categoryinteger (enum)NoTicket category.
subjectstringNoText that the subject contains.
ticketNostringNoTicket number. Exact match.
prioritystring (enum)Nolow, normal, high, or urgent.
createdTimeFrom, createdTimeTostringNoRange of the creation time, RFC 3339.
lastReplyTimeFrom, lastReplyTimeTostringNoRange of the last reply time, RFC 3339.
sortstringNolastReplyTime (default), createdAt, or updatedAt.
directionstringNoasc or desc. Default: desc.

Response example. type is the category name. priority is low, normal, high, or urgent.

{
"success": true,
"data": {
"page": 1,
"perPage": 50,
"total": 1,
"list": [
{
"id": 3051,
"number": "T202611090001",
"subject": "Warehouse does not resume",
"description": "The default warehouse stays in Starting.",
"status": "open",
"type": "Warehouse",
"priority": "normal",
"tags": [],
"lastReplyAuthorType": "agent",
"lastReplyTime": "2026-11-09T08:30:00Z",
"lastRepliedBy": null,
"lastRepliedByAvatar": null,
"repliesCount": 2,
"orgName": "Acme",
"orgSlug": "acme-prod",
"createdAt": "2026-11-09T07:00:00Z",
"updatedAt": "2026-11-09T08:30:00Z"
}
]
}
}

lastReplyAuthorType is customer or agent.

Get a Ticket​

GET /api/v1/orgs/{orgSlug}/tickets/{ticketId} · Read · Creator

ParameterInTypeRequiredDescription
orgSlugpathstringYesOrganization ID.
ticketIdpathintegerYesTicket ID.

Response: data is one ticket with id, number, subject, description, status, type, priority, tags, attachments, orgName, orgSlug, createdAt, and updatedAt. Each attachment has name, size, url, and fileID. API tokens cannot download attachments.

List Ticket Comments​

GET /api/v1/orgs/{orgSlug}/tickets/{ticketId}/comments · Read · Creator

Returns the public comments of a ticket, from the oldest.

{
"success": true,
"data": [
{ "id": 8812, "authorID": 7, "authorName": "Alice", "authorAvatar": "", "authorType": "customer", "content": "It started after the resize.", "public": true, "replyTime": "2026-11-09T07:10:00Z" }
]
}

Create a Ticket​

POST /api/v1/orgs/{orgSlug}/tickets · Write · Member

FieldTypeRequiredDescription
categoryinteger (enum)NoTicket category. Default: 0 (Other).
subjectstringYesSubject, at most 1,000 characters.
descriptionstringNoDescription of the problem.
{ "category": 1, "subject": "Warehouse does not resume", "description": "The default warehouse stays in Starting since 07:00 UTC." }

Response:

{ "success": true, "data": { "id": 3051 } }

Add a Ticket Comment​

POST /api/v1/orgs/{orgSlug}/tickets/{ticketId}/comments · Write · Creator

FieldTypeRequiredDescription
commentstringYesText of the comment.
{ "comment": "The warehouse resumed after a retry. You can close the ticket." }

Response: { "success": true }.

Change Ticket Status​

POST /api/v1/orgs/{orgSlug}/tickets/{ticketId}/{status} · Write · Creator

ParameterInTypeRequiredDescription
orgSlugpathstringYesOrganization ID.
ticketIdpathintegerYesTicket ID.
statuspathstring (enum)Yessolved to close the ticket, or open to open it again. Other values return HTTP 400.

Response: { "success": true }.

Types​

Ticket Category​

ValueNameValueName
0Other11Dashboard
1Warehouse12Pipeline
2Worksheet13SQLHistory
3Load Data14Task
4Database15Data Sources
5Integrations16Data Integrations
6Activity17SQLRunning
7Metrics18AuditLogs
8Billing19Documentation
9Invite Member20Features
10Business
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today