Skip to main content
POST
Create ticket

Authorizations

X-Initdesk-Token
string
header
required

Path Parameters

organization_id
string
required
Pattern: ^[-a-zA-Z0-9_]+$

Body

subject
string
required
Required string length: 1 - 255
from_name
string
required

Display name used only when resolving or creating the requester Customer at ticket creation. After create, read customer.name for the live requester. Not updated when the requester is changed.

Required string length: 1 - 255
from_email
string<email>
required

Email used only to resolve or create the requester Customer at ticket creation. After create, read customer.email for the live requester. Not updated when the requester is changed.

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
bcc_recipient_emails
string<email>[] | null

When provided as a list (empty or not), sets creation-time BCC addresses used only for the ticket-created outbound email when CC email routing is enabled. Omitted or null leaves an empty list. Cannot overlap the requester or the CC list. Not applied to later associate replies.

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

Display name used only when resolving or creating the requester Customer at ticket creation. After create, read customer.name for the live requester. Not updated when the requester is changed.

Maximum string length: 255
from_email
string<email>
required

Email used only to resolve or create the requester Customer at ticket creation. After create, read customer.email for the live requester. Not updated when the requester is changed.

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.

bcc_recipient_emails
string<email>[] | null

When provided as a list (empty or not), sets creation-time BCC addresses used only for the ticket-created outbound email when CC email routing is enabled. Omitted or null leaves an empty list. Cannot overlap the requester or the CC list. Not applied to later associate replies.