Skip to content
Navigation
POST/tickets

Create a ticket

Open a ticket as a team API key. Requires a team-role API key.

Request body

FieldTypeDescription
type"customer" | "back_office" | "tracker"Ticket object type
ticketTypeIdstringRegistry ticket-type ID — its category becomes the ticket type
titlerequiredstring
descriptionstringOpening message as markdown
priority"none" | "low" | "medium" | "high" | "urgent"
requesterPrincipalIdstringRequester principal ID
companyIdstringAssociated company ID
attachmentsobject[]

Response

Ticket created

FieldTypeDescription
idrequiredstringTypeID - a type-prefixed UUID
numberrequirednumberPer-workspace sequential ticket number
referencerequiredstringHuman reference, "#" + number
typerequired"customer" | "back_office" | "tracker"Ticket object type
ticketTyperequiredobject | nullWorkspace-defined registry type, null on legacy typeless tickets
titlerequiredstring
statusrequiredobjectInternal workspace status: its display name + stable category
stagerequired"received" | "in_progress" | "awaiting_requester" | "resolved" | nullCustomer-facing public stage, null when the status projects none
priorityrequired"none" | "low" | "medium" | "high" | "urgent"Triage priority
requesterPrincipalIdrequiredstring | nullPrincipal ID of the requester, null if unattributed
assigneePrincipalIdrequiredstring | nullPrincipal ID of the assigned teammate, null if unassigned
assigneeTeamIdrequiredstring | nullID of the assigned team, null if unassigned
companyIdrequiredstring | nullID of the associated company, null if none
firstResponseAtrequiredstring | nullWhen a teammate first responded, null until then
dueAtrequiredstring | nullSLA due time, null if no policy applies
resolvedAtrequiredstring | nullWhen the ticket entered a closed status, null while open
createdAtrequiredstringISO 8601 timestamp
updatedAtrequiredstringISO 8601 timestamp
reopenedCountrequirednumberHow many times the ticket has reopened

Errors

400Validation error
401Unauthorized

Example request

curl \
  -X POST \
  "https://feedback.quackback.io/api/v1/tickets" \
  -H "Authorization: Bearer qb_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "customer",
  "ticketTypeId": "ticket_type_01h455vb4pex5vsknk084sn02q",
  "title": "Cannot log in",
  "description": "Steps to reproduce…",
  "priority": "high",
  "requesterPrincipalId": "example_requesterPrincipalId",
  "companyId": "example_companyId",
  "attachments": []
}'