---
title: "Create a new ticket in a brand"
method: POST
path: "/v1/brands/{brandId}/tickets"
tags: ["tickets"]
---

# Create a new ticket in a brand

`POST /v1/brands/{brandId}/tickets`

## Request

- Base URL: `https://api.dispatchtickets.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dispatchtickets.com/v1/brands/{brandId}/tickets`
- Auth: HTTP bearer

## Headers

- `x-idempotency-key` string, required
- `X-Idempotency-Key` string

## Request body

- CreateTicketDto
  - `title` string, required
  - `body` string
  - `status` 'open' | 'pending' | 'resolved' | 'closed'
  - `priority` 'low' | 'normal' | 'medium' | 'high' | 'urgent'
  - `assigneeId` string
  - `createdBy` string
  - `links` LinkDto[]
    - `url` string, required
    - `title` string
    - `type` string
  - `customFields` object: Flexible custom fields - any JSON structure (max 64KB)
  - `metadata` object
  - `source` 'api' | 'web' | 'email' | 'slack' | 'sms' | 'discord' | 'instagram' | 'twitter' | 'whatsapp' | 'recurring' | 'chat' | 'custom': Source channel where the ticket originated
  - `sourceId` string: Original ID from the source (email message-id, slack thread ts, etc.)
  - `sourceData` object: Additional source-specific data (max 64KB)
  - `categoryId` string: Category ID (must exist in brand)
  - `tags` string[]: Tag names (will be created if they don't exist)
  - `dueAt` string: Due date (ISO 8601). Auto-set from brand SLA if not provided.
  - `notifyCustomer` boolean: Send a confirmation email to the customer when ticket is created (manual tickets only)
  - `watchers` WatcherDto[]: Initial watchers to add to the ticket
    - `memberId` string, required: Member ID (can be team member or external user ID)
    - `memberEmail` string, required: Email address for notifications
    - `memberName` string: Display name
  - `attachmentIds` string[]: IDs of pending attachments to associate with the ticket

## Response `200`

Ticket already created (idempotent retry)

## Other responses

- `201`: Ticket created

---

[API](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api.md) · [All operations](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/revisions/82fc25ab859b?raw)
