Skip to main content
POST
Create ticket

Authorizations

X-Initdesk-Token
string
header
required

Path Parameters

organization_id
string
required

Body

subject
string
required
Required string length: 1 - 255
from_name
string
required
Required string length: 1 - 255
from_email
string<email>
required
Required string length: 1 - 254
inbox_id
integer
write-only

Optional inbox to route the new ticket. When omitted, the ticket is created in the organization's default inbox (is_default: true, typically named Main Inbox). Provide an inbox ID to target a specific mailbox; list available inboxes via the inboxes endpoint. Inbox-level settings (e.g. auto-reply) on the resolved inbox apply.

description
string
description_html
string
created_by_role
enum<string>
default:associate
write-only

Who is creating the ticket via the API. Affects initial status, waiting_on, and whether the customer receives a ticket-created email. associate: an authenticated agent creates the ticket on behalf of the requester (from_email); use for phone support or proactive outreach. Sets status to active, waiting_on to customer, and created_by_user to the authenticated user. Always sends a ticket-created email to the customer, even when inbox auto-reply is disabled. customer: the requester creates the ticket for themselves (self-service portal, app, or integration acting as the end user). Sets status to created, waiting_on to associate, and leaves created_by_user unset. Sends a ticket-created email only when the inbox has auto-reply enabled.

  • associate - Associate
  • customer - Customer
Available options:
associate,
customer
external_recipient_emails
string<email>[] | null

When provided as a list (empty or not), sets the ticket external CC list when CC email routing is enabled; omitted or null leaves it as the default empty list. The ticket requester (from_email) is always kept on the list.

Minimum string length: 1
attachment_ids
string<uuid>[]
write-only

List of pending attachment IDs to attach to the new ticket. Upload files via the organization pending-attachments endpoints before creating the ticket.

Response

id
integer
required
read-only
public_id
string
required
read-only
inbox
object
required
subject
string
required
Maximum string length: 255
from_name
string
required
Maximum string length: 255
from_email
string<email>
required
Maximum string length: 254
description
string
description_html
string
external_recipient_emails
string<email>[] | null

When provided as a list (empty or not), sets the ticket external CC list when CC email routing is enabled; omitted or null leaves it as the default empty list. The ticket requester (from_email) is always kept on the list.