Skip to main content
POST
Reply or create internal note

Authorizations

X-Initdesk-Token
string
header
required

Path Parameters

ticket_id
string
required

The ticket ID.

organization_id
integer
required

Numeric organization id. Get it from GET /organizations/ (id field).

Body

next_assignee_id
integer | null
write-only
next_action
enum<string>
  • `` - (none)
  • close_and_mark_resolved - Close and Mark Resolved
  • close_and_mark_invalid - Close and Mark Invalid
  • close_and_mark_customer_inactivity - Close and Mark Customer Inactivity
  • reopen_waiting_customer - Reopen Waiting Customer
  • reopen_waiting_associate - Reopen Waiting Associate
  • close_and_mark_other - Close and Mark Other
  • report_spam - Report Spam
  • remove_from_spam - Remove from Spam
Available options:
,
close_and_mark_resolved,
close_and_mark_invalid,
close_and_mark_customer_inactivity,
reopen_waiting_customer,
reopen_waiting_associate,
close_and_mark_other,
report_spam,
remove_from_spam
content
string
content_html
string
is_visible_to_customer
boolean
external_recipient_emails
string<email>[] | null

On create with CC email routing: for messages the customer can see, a list (empty or not) sets the CC addresses on this message only. The ticket itself is not changed. Omitted or null copies the CC addresses from the latest message the customer can see, or the addresses saved when the ticket was created. Messages the customer cannot see always store an empty list, and this field is ignored for them. The customer is always kept when a list is sent. On read: the addresses stored on this message.

Minimum string length: 1
bcc_recipient_emails
string<email>[] | null

On create with CC email routing: for messages the customer can see, an optional hidden-copy list for this send only. Omitted, null, or empty means no hidden copy. Earlier messages do not carry their hidden copy forward. Messages the customer cannot see, and organizations without CC routing, always store an empty list. The list cannot include the customer or this message's CC addresses. On read: the addresses stored on this message.

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

List of attachment IDs to associate with this message.

Response

id
integer
required
read-only
author
object | null
required

Legacy author object; may be deprecated for display in a future API version in favor of sender.

role
enum<string>
required
read-only
  • customer - Customer
  • cc - Cc
  • associate - Associate
  • system - System
Available options:
customer,
cc,
associate,
system
sender
object
required

Who sent the message. Shape is one of the MessageSender variants in the schema; use top-level role to select it. Each variant includes nullable profile_picture for that author only and read-only authentication with status and reason. null when role is system, or for associate without author. Request bodies cannot set authentication.

next_assignee
object | null
required
next_priority
enum<string> | null
required
read-only

Priority this message sets on the ticket. Null means no change.

  • not_set - No priority
  • low - Low
  • medium - Medium
  • high - High
  • urgent - Urgent
Available options:
not_set,
low,
medium,
high,
urgent,
null
kind
enum<string>
required
read-only

How this message was written. text is a written message. audio is a voice message. For a voice message, the transcript is in content. An empty content means the transcript is not ready yet, and content_html stays empty.

  • text - Text
  • audio - Audio
Available options:
text,
audio
has_raw_content
boolean
required
read-only

True when the full original message is available.

created_at
string<date-time>
required
read-only
updated_at
string<date-time>
required
read-only
content_updated_at
string<date-time> | null
required
read-only

When the author last changed this message's text. Empty when the text has not changed.

deleted_at
string<date-time> | null
required
read-only

When the author deleted this message. Empty when the message is still available. A deleted message has no text.

delivery_status
enum<string> | null
required
read-only

Delivery state of this message. Empty when delivery is not tracked for this message.

  • pending - Pending
  • sent - Sent
  • read - Read
  • failed - Failed
Available options:
pending,
sent,
read,
failed,
null
sent_at
string<date-time> | null
required
read-only

When this message was accepted for delivery. Empty until it is sent.

read_at
string<date-time> | null
required
read-only

When the recipient read this message. Empty until then. Some channels do not report this.

failed_at
string<date-time> | null
required
read-only

When delivery of this message failed. Empty until then.

delivery_failure_reason
string
required
read-only

Short reason when delivery of this message failed. The wording can change.

merged_from_ticket
object | null
required

Ticket this message was originally created on, when a merge moved it here. Null for messages created on this ticket.

attachments
object[]
required
read-only
next_action
enum<string>
  • `` - (none)
  • close_and_mark_resolved - Close and Mark Resolved
  • close_and_mark_invalid - Close and Mark Invalid
  • close_and_mark_customer_inactivity - Close and Mark Customer Inactivity
  • reopen_waiting_customer - Reopen Waiting Customer
  • reopen_waiting_associate - Reopen Waiting Associate
  • close_and_mark_other - Close and Mark Other
  • report_spam - Report Spam
  • remove_from_spam - Remove from Spam
Available options:
,
close_and_mark_resolved,
close_and_mark_invalid,
close_and_mark_customer_inactivity,
reopen_waiting_customer,
reopen_waiting_associate,
close_and_mark_other,
report_spam,
remove_from_spam
content
string
content_html
string
is_visible_to_customer
boolean
external_recipient_emails
string<email>[] | null

On create with CC email routing: for messages the customer can see, a list (empty or not) sets the CC addresses on this message only. The ticket itself is not changed. Omitted or null copies the CC addresses from the latest message the customer can see, or the addresses saved when the ticket was created. Messages the customer cannot see always store an empty list, and this field is ignored for them. The customer is always kept when a list is sent. On read: the addresses stored on this message.

bcc_recipient_emails
string<email>[] | null

On create with CC email routing: for messages the customer can see, an optional hidden-copy list for this send only. Omitted, null, or empty means no hidden copy. Earlier messages do not carry their hidden copy forward. Messages the customer cannot see, and organizations without CC routing, always store an empty list. The list cannot include the customer or this message's CC addresses. On read: the addresses stored on this message.