---
title: "Create a Zendesk ticket"
method: POST
path: "/zendesk/tickets"
tags: ["Zendesk Controller"]
---

# Create a Zendesk ticket

`POST /zendesk/tickets`

Creates a ticket: requester = order customerEmail; notification From = countries.supportMail for order country. If that address is not yet in Zendesk, it is created as a support address (requires API permissions), then the ticket is opened. Assignee (and submitter / first comment author) is resolved from the user zendeskAgentEmail or the default agent. Optional customStatusId sets the initial custom ticket status (from GET /zendesk/tickets/statuses).

## Request body

- CreateTicketDto
  - `orderId` number, required — Internal order id; requester = order customerEmail; From/recipient = countries.supportMail for order country (Zendesk support address, auto-created in Zendesk if missing)
  - `subject` string, required — Ticket subject line
  - `body` string, required — The content of the initial message as HTML code
  - `isPublic` boolean — If true, the initial comment is public; if false, internal note only
  - `assigneeId` string — Zendesk agent user id to assign immediately (from GET /zendesk/agents)
  - `groupId` string — Zendesk group id (often used with assignee)
  - `tags` string[] — Ticket tags
  - `priority` 'low' | 'normal' | 'high' | 'urgent' — Zendesk ticket priority
  - `customStatusId` string — The numeric ID of the custom ticket status from GET /zendesk/tickets/statuses

## Response `201`

Ticket created successfully

---

[API](https://skmtc.dev/findmydocument/apis/land-registry-api.md) · [All operations](https://skmtc.dev/findmydocument/apis/land-registry-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/findmydocument/land-registry-api/revisions/b55a990514fb/schema)
