---
title: "Create a new ticket with an optional initial message"
method: POST
path: "/tickets/compose"
tags: ["Ticket"]
---

# Create a new ticket with an optional initial message

`POST /tickets/compose`

Create a new ticket and optionally post an initial message in a single request.
Provide either a session (contact ID) or email to associate the ticket with a contact.
If an email is provided and no contact exists, one will be created automatically.

## Headers

- `project` string, required

## Request body

- CreateTicketWithMessageDto
  - `type` string, required
  - `title` string, required
  - `message` string
  - `priority` string
  - `status` string
  - `processingUser` string
  - `processingTeam` string
  - `tags` string[]
  - `session` string
  - `email` string
  - `formData` unknown
  - `preventAutoReply` boolean

## Response `200`

Ok

- unknown

---

[API](https://skmtc.net/gleap/apis/gleap-server.md) · [All operations](https://skmtc.net/gleap/apis/gleap-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gleap/gleap-server/versions/2bfe054193b5/schema)
