Add a reply or internal note to the ticket. For customer-visible replies, optional external_recipient_emails sets CC recipients for that message; omit or null to reuse CC recipients from the previous customer-visible message or from ticket creation. Internal notes ignore this field. Optional attachment_ids claims files previously uploaded via POST .../tickets/{ticket_id}/attachments/ (see Tickets tag for the upload flow). A channel may reject a customer-visible reply with 400 {detail, code}. WhatsApp uses whatsapp_window_closed when the customer service window is closed.
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.
Show child attributes
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.
Option 1
Option 2
Option 3
Show child attributes
next_assignee
object | null
required
Show child attributes
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.
Show child attributes
attachments
object[]
required
read-only
Show child attributes
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
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.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"initdesk API","description":"initdesk public API docs and reference","colors":{"primary":"#5E40A1","light":"#e9deff","dark":"#3b236e"},"logo":{"light":"https://mintcdn.com/initdesk-299074c5/DSCP90FOnPuX3Fjf/images/image.webp?fit=max\u0026auto=format\u0026n=DSCP90FOnPuX3Fjf\u0026q=85\u0026s=386dfe553eac3863855af3187bb2629d","dark":"https://mintcdn.com/initdesk-299074c5/DSCP90FOnPuX3Fjf/images/initdesk_logo_white.png?fit=max\u0026auto=format\u0026n=DSCP90FOnPuX3Fjf\u0026q=85\u0026s=adde0da9db7c055adf7e70e40ff60d0d"},"favicon":{"light":"https://mintcdn.com/initdesk-299074c5/m_LpJx0CYWZBvy3V/images/favicon.svg?fit=max\u0026auto=format\u0026n=m_LpJx0CYWZBvy3V\u0026q=85\u0026s=1b4161542c09eb6aa66a9cb2b35263f1","dark":"https://mintcdn.com/initdesk-299074c5/m_LpJx0CYWZBvy3V/images/favicon.svg?fit=max\u0026auto=format\u0026n=m_LpJx0CYWZBvy3V\u0026q=85\u0026s=1b4161542c09eb6aa66a9cb2b35263f1"},"navbar":{"links":[{"href":"https://help.initdesk.com","label":"Help Center"},{"href":"https://status.initdesk.com/","label":"Status"}],"primary":{"type":"button","label":"Open initdesk","href":"https://app.initdesk.com"}},"footer":{"socials":{"x":"https://x.com/initdeskHQ","linkedin":"https://www.linkedin.com/company/initdesk"}},"search":{"prompt":"Search documentation..."},"fonts":{"family":"Inter"},"styling":{"eyebrows":"breadcrumbs","latex":false},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"interaction":{"drilldown":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"initdesk-299074c5","hasAudioNarration":false,"actualSubdomain":"initdesk-299074c5","customDomains":["developers.initdesk.com"],"gitSource":{"type":"github","owner":"mintlify-community","repo":"docs-initdesk-299074c5-906e5790","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10ecb39ffae5051c415f92"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b11e92984c15f8a14b1fe23","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"API docs","count":63},{"language":"default","tag":"API reference","count":60},{"language":"default","tag":"Help Center","count":19},{"language":"default","tag":"Tickets","count":12},{"language":"default","tag":"Business Hours","count":9},{"language":"default","tag":"Companies","count":7},{"language":"default","tag":"Customers","count":5},{"language":"default","tag":"Custom Preset Filters","count":2},{"language":"default","tag":"Inboxes","count":2},{"language":"default","tag":"Organizations","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/tickets/reply-or-create-internal-note","slug":"/api-reference/tickets/reply-or-create-internal-note","pageMetadata":{"title":"Reply or create internal note","description":"Add a reply or internal note to the ticket. For customer-visible replies, optional `external_recipient_emails` sets CC recipients for that message; omit or null to reuse CC recipients from the previous customer-visible message or from ticket creation. Internal notes ignore this field. Optional `attachment_ids` claims files previously uploaded via `POST .../tickets/{ticket_id}/attachments/` (see Tickets tag for the upload flow). A channel may reject a customer-visible reply with 400 `{detail, code}`. WhatsApp uses `whatsapp_window_closed` when the customer service window is closed.","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml post /organizations/{organization_id}/tickets/{ticket_id}/messages/","href":"/api-reference/tickets/reply-or-create-internal-note","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Add a reply or internal note to the ticket. For customer-visible replies, optional \", _jsx(_components.code, {\n children: \"external_recipient_emails\"\n }), \" sets CC recipients for that message; omit or null to reuse CC recipients from the previous customer-visible message or from ticket creation. Internal notes ignore this field. Optional \", _jsx(_components.code, {\n children: \"attachment_ids\"\n }), \" claims files previously uploaded via \", _jsx(_components.code, {\n children: \"POST .../tickets/{ticket_id}/attachments/\"\n }), \" (see Tickets tag for the upload flow). A channel may reject a customer-visible reply with 400 \", _jsx(_components.code, {\n children: \"{detail, code}\"\n }), \". WhatsApp uses \", _jsx(_components.code, {\n children: \"whatsapp_window_closed\"\n }), \" when the customer service window is closed.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Reply or create internal note","description":"Add a reply or internal note to the ticket. For customer-visible replies, optional `external_recipient_emails` sets CC recipients for that message; omit or null to reuse CC recipients from the previous customer-visible message or from ticket creation. Internal notes ignore this field. Optional `attachment_ids` claims files previously uploaded via `POST .../tickets/{ticket_id}/attachments/` (see Tickets tag for the upload flow). A channel may reject a customer-visible reply with 400 `{detail, code}`. WhatsApp uses `whatsapp_window_closed` when the customer service window is closed.","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml post /organizations/{organization_id}/tickets/{ticket_id}/messages/","href":"/api-reference/tickets/reply-or-create-internal-note","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"create_ticket_message","description":"Add a reply or internal note to the ticket. For customer-visible replies, optional `external_recipient_emails` sets CC recipients for that message; omit or null to reuse CC recipients from the previous customer-visible message or from ticket creation. Internal notes ignore this field. Optional `attachment_ids` claims files previously uploaded via `POST .../tickets/{ticket_id}/attachments/` (see Tickets tag for the upload flow). A channel may reject a customer-visible reply with 400 `{detail, code}`. WhatsApp uses `whatsapp_window_closed` when the customer service window is closed.","summary":"Reply or create internal note","parameters":["79a7e0be-13f8-4c99-92d5-ad1a589ba492","62c45b5c-1705-4890-bc19-64a405922a9d"],"tags":["Tickets"],"requestBody":"2b121c4e-bad4-4a35-9253-d2cc43982bfc","security":["adeda0c3-4c1d-4cc0-a85e-30ea6814ab04"],"responses":{"201":"e9d8d999-9b0f-4e70-8b8a-1ce1514af113","400":"0fcba6e2-816a-49f9-9567-e9be8b540539"},"method":"post","type":"path","servers":["f0847b87-c8a0-40a7-98ab-0b603357f2ab"],"path":"/organizations/{organization_id}/tickets/{ticket_id}/messages/","baseUrlOptions":["https://api.initdesk.com"],"title":"Reply or create internal note","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"79a7e0be-13f8-4c99-92d5-ad1a589ba492":{"in":"path","name":"ticket_id","schema":{"type":"string","isRequired":true,"description":"The ticket ID.","uniqueKey":"","typeLabel":"string"},"required":true,"description":"The ticket ID."},"62c45b5c-1705-4890-bc19-64a405922a9d":{"in":"path","name":"organization_id","schema":{"type":"integer","isRequired":true,"description":"Numeric organization id. Get it from `GET /organizations/` (`id` field).","uniqueKey":"","typeLabel":"integer"},"required":true,"description":"Numeric organization id. Get it from `GET /organizations/` (`id` field)."}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"next_assignee_id":{"oneOf":[{"type":"integer","writeOnly":true,"uniqueKey":"next_assignee_id.oneOf.0","typeLabel":"integer"},{"type":"null","writeOnly":true,"uniqueKey":"next_assignee_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"next_assignee_id","typeLabel":"integer | null"},"next_action":{"enum":["","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"],"type":"string","description":"* `` - (none)\n* `close_and_mark_resolved` - Close and Mark Resolved\n* `close_and_mark_invalid` - Close and Mark Invalid\n* `close_and_mark_customer_inactivity` - Close and Mark Customer Inactivity\n* `reopen_waiting_customer` - Reopen Waiting Customer\n* `reopen_waiting_associate` - Reopen Waiting Associate\n* `close_and_mark_other` - Close and Mark Other\n* `report_spam` - Report Spam\n* `remove_from_spam` - Remove from Spam","uniqueKey":"next_action","typeLabel":"enum\u003cstring>"},"content":{"type":"string","uniqueKey":"content","typeLabel":"string"},"content_html":{"type":"string","uniqueKey":"content_html","typeLabel":"string"},"is_visible_to_customer":{"type":"boolean","uniqueKey":"is_visible_to_customer","typeLabel":"boolean"},"external_recipient_emails":{"oneOf":[{"type":"array","items":{"type":"string","format":"email","minLength":1,"uniqueKey":"external_recipient_emails.oneOf.0.items.[INDEX]","typeLabel":"string\u003cemail>"},"description":"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.","uniqueKey":"external_recipient_emails.oneOf.0","typeLabel":"string\u003cemail>[]"},{"type":"null","items":{"type":"string","format":"email","minLength":1},"description":"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.","uniqueKey":"external_recipient_emails.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_recipient_emails","typeLabel":"string\u003cemail>[] | null"},"bcc_recipient_emails":{"oneOf":[{"type":"array","items":{"type":"string","format":"email","minLength":1,"uniqueKey":"bcc_recipient_emails.oneOf.0.items.[INDEX]","typeLabel":"string\u003cemail>"},"description":"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.","uniqueKey":"bcc_recipient_emails.oneOf.0","typeLabel":"string\u003cemail>[]"},{"type":"null","items":{"type":"string","format":"email","minLength":1},"description":"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.","uniqueKey":"bcc_recipient_emails.oneOf.1","typeLabel":"null"}],"uniqueKey":"bcc_recipient_emails","typeLabel":"string\u003cemail>[] | null"},"attachment_ids":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"attachment_ids.items.[INDEX]","typeLabel":"string\u003cuuid>"},"writeOnly":true,"description":"List of attachment IDs to associate with this message.","uniqueKey":"attachment_ids","typeLabel":"string\u003cuuid>[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"next_assignee_id":123,"content":"\u003cstring>","content_html":"\u003cstring>","is_visible_to_customer":true,"external_recipient_emails":["jsmith@example.com"],"bcc_recipient_emails":["jsmith@example.com"],"attachment_ids":["3c90c3cc-0d44-4b50-8888-8dd25736052a"]}}},"exampleType":"generated"},"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"next_assignee_id":{"oneOf":[{"type":"integer","writeOnly":true,"uniqueKey":"next_assignee_id.oneOf.0","typeLabel":"integer"},{"type":"null","writeOnly":true,"uniqueKey":"next_assignee_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"next_assignee_id","typeLabel":"integer | null"},"next_action":{"enum":["","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"],"type":"string","description":"* `` - (none)\n* `close_and_mark_resolved` - Close and Mark Resolved\n* `close_and_mark_invalid` - Close and Mark Invalid\n* `close_and_mark_customer_inactivity` - Close and Mark Customer Inactivity\n* `reopen_waiting_customer` - Reopen Waiting Customer\n* `reopen_waiting_associate` - Reopen Waiting Associate\n* `close_and_mark_other` - Close and Mark Other\n* `report_spam` - Report Spam\n* `remove_from_spam` - Remove from Spam","uniqueKey":"next_action","typeLabel":"enum\u003cstring>"},"content":{"type":"string","uniqueKey":"content","typeLabel":"string"},"content_html":{"type":"string","uniqueKey":"content_html","typeLabel":"string"},"is_visible_to_customer":{"type":"boolean","uniqueKey":"is_visible_to_customer","typeLabel":"boolean"},"external_recipient_emails":{"oneOf":[{"type":"array","items":{"type":"string","format":"email","minLength":1,"uniqueKey":"external_recipient_emails.oneOf.0.items.[INDEX]","typeLabel":"string\u003cemail>"},"description":"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.","uniqueKey":"external_recipient_emails.oneOf.0","typeLabel":"string\u003cemail>[]"},{"type":"null","items":{"type":"string","format":"email","minLength":1},"description":"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.","uniqueKey":"external_recipient_emails.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_recipient_emails","typeLabel":"string\u003cemail>[] | null"},"bcc_recipient_emails":{"oneOf":[{"type":"array","items":{"type":"string","format":"email","minLength":1,"uniqueKey":"bcc_recipient_emails.oneOf.0.items.[INDEX]","typeLabel":"string\u003cemail>"},"description":"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.","uniqueKey":"bcc_recipient_emails.oneOf.0","typeLabel":"string\u003cemail>[]"},{"type":"null","items":{"type":"string","format":"email","minLength":1},"description":"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.","uniqueKey":"bcc_recipient_emails.oneOf.1","typeLabel":"null"}],"uniqueKey":"bcc_recipient_emails","typeLabel":"string\u003cemail>[] | null"},"attachment_ids":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"attachment_ids.items.[INDEX]","typeLabel":"string\u003cuuid>"},"writeOnly":true,"description":"List of attachment IDs to associate with this message.","uniqueKey":"attachment_ids","typeLabel":"string\u003cuuid>[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"next_assignee_id":123,"content":"\u003cstring>","content_html":"\u003cstring>","is_visible_to_customer":true,"external_recipient_emails":["jsmith@example.com"],"bcc_recipient_emails":["jsmith@example.com"],"attachment_ids":["3c90c3cc-0d44-4b50-8888-8dd25736052a"]}}},"exampleType":"generated"},"multipart/form-data":{"schema":{"type":"object","properties":{"next_assignee_id":{"oneOf":[{"type":"integer","writeOnly":true,"uniqueKey":"next_assignee_id.oneOf.0","typeLabel":"integer"},{"type":"null","writeOnly":true,"uniqueKey":"next_assignee_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"next_assignee_id","typeLabel":"integer | null"},"next_action":{"enum":["","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"],"type":"string","description":"* `` - (none)\n* `close_and_mark_resolved` - Close and Mark Resolved\n* `close_and_mark_invalid` - Close and Mark Invalid\n* `close_and_mark_customer_inactivity` - Close and Mark Customer Inactivity\n* `reopen_waiting_customer` - Reopen Waiting Customer\n* `reopen_waiting_associate` - Reopen Waiting Associate\n* `close_and_mark_other` - Close and Mark Other\n* `report_spam` - Report Spam\n* `remove_from_spam` - Remove from Spam","uniqueKey":"next_action","typeLabel":"enum\u003cstring>"},"content":{"type":"string","uniqueKey":"content","typeLabel":"string"},"content_html":{"type":"string","uniqueKey":"content_html","typeLabel":"string"},"is_visible_to_customer":{"type":"boolean","uniqueKey":"is_visible_to_customer","typeLabel":"boolean"},"external_recipient_emails":{"oneOf":[{"type":"array","items":{"type":"string","format":"email","minLength":1,"uniqueKey":"external_recipient_emails.oneOf.0.items.[INDEX]","typeLabel":"string\u003cemail>"},"description":"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.","uniqueKey":"external_recipient_emails.oneOf.0","typeLabel":"string\u003cemail>[]"},{"type":"null","items":{"type":"string","format":"email","minLength":1},"description":"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.","uniqueKey":"external_recipient_emails.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_recipient_emails","typeLabel":"string\u003cemail>[] | null"},"bcc_recipient_emails":{"oneOf":[{"type":"array","items":{"type":"string","format":"email","minLength":1,"uniqueKey":"bcc_recipient_emails.oneOf.0.items.[INDEX]","typeLabel":"string\u003cemail>"},"description":"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.","uniqueKey":"bcc_recipient_emails.oneOf.0","typeLabel":"string\u003cemail>[]"},{"type":"null","items":{"type":"string","format":"email","minLength":1},"description":"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.","uniqueKey":"bcc_recipient_emails.oneOf.1","typeLabel":"null"}],"uniqueKey":"bcc_recipient_emails","typeLabel":"string\u003cemail>[] | null"},"attachment_ids":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"attachment_ids.items.[INDEX]","typeLabel":"string\u003cuuid>"},"writeOnly":true,"description":"List of attachment IDs to associate with this message.","uniqueKey":"attachment_ids","typeLabel":"string\u003cuuid>[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"next_assignee_id":123,"content":"\u003cstring>","content_html":"\u003cstring>","is_visible_to_customer":true,"external_recipient_emails":["jsmith@example.com"],"bcc_recipient_emails":["jsmith@example.com"],"attachment_ids":["3c90c3cc-0d44-4b50-8888-8dd25736052a"]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"e9d8d999-9b0f-4e70-8b8a-1ce1514af113":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"isRequired":true,"uniqueKey":"id","typeLabel":"integer"},"author":{"oneOf":[{"type":"object","description":"Legacy author object; may be deprecated for display in a future API version in favor of `sender`.","required":["email","id","profile_picture_url"],"properties":{"id":{"type":"integer","readOnly":true,"isRequired":true,"uniqueKey":"author.oneOf.0.id","typeLabel":"integer"},"email":{"type":"string","format":"email","maxLength":254,"isRequired":true,"uniqueKey":"author.oneOf.0.email","typeLabel":"string\u003cemail>"},"profile_picture_url":{"oneOf":[{"type":"string","format":"uri","readOnly":true,"isRequired":true,"uniqueKey":"author.oneOf.0.profile_picture_url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","readOnly":true,"isRequired":true,"uniqueKey":"author.oneOf.0.profile_picture_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"author.oneOf.0.profile_picture_url","typeLabel":"string\u003curi> | null"},"name":{"type":"string","maxLength":255,"uniqueKey":"author.oneOf.0.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"author.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"author.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"author","typeLabel":"object | null"},"role":{"enum":["customer","cc","associate","system"],"type":"string","description":"* `customer` - Customer\n* `cc` - Cc\n* `associate` - Associate\n* `system` - System","readOnly":true,"isRequired":true,"uniqueKey":"role","typeLabel":"enum\u003cstring>"},"sender":{"oneOf":[{"type":"object","description":"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.","required":["authentication","email","name","profile_picture","user_id"],"properties":{"email":{"type":"string","format":"email","isRequired":true,"uniqueKey":"sender.oneOf.0.email","typeLabel":"string\u003cemail>"},"name":{"type":"string","isRequired":true,"uniqueKey":"sender.oneOf.0.name","typeLabel":"string"},"user_id":{"type":"integer","isRequired":true,"uniqueKey":"sender.oneOf.0.user_id","typeLabel":"integer"},"profile_picture":{"oneOf":[{"type":"string","format":"uri","description":"Current profile-picture URL of this message's author. Null when the author has no uploaded or Google picture. Never a generated identicon, and never taken from the ticket assignee or owner.","isRequired":true,"uniqueKey":"sender.oneOf.0.profile_picture.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"Current profile-picture URL of this message's author. Null when the author has no uploaded or Google picture. Never a generated identicon, and never taken from the ticket assignee or owner.","isRequired":true,"uniqueKey":"sender.oneOf.0.profile_picture.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sender.oneOf.0.profile_picture","typeLabel":"string\u003curi> | null"},"authentication":{"oneOf":[{"type":"object","description":"`authentication` is null when the message was not checked (for example, it arrived before this check existed, or was imported or created through the API).","required":["reason","status"],"properties":{"status":{"enum":["passed","failed","conflicting","unknown","not_applicable"],"type":"string","readOnly":true,"description":"Whether accepted evidence authenticates the sender identifier for this channel. A pass is not a verified legal identity and does not mean the person or the content is trustworthy.\n\n* `passed` - Passed\n* `failed` - Failed\n* `conflicting` - Conflicting\n* `unknown` - Unknown\n* `not_applicable` - Not applicable","isRequired":true,"uniqueKey":"sender.oneOf.0.authentication.oneOf.0.status","typeLabel":"enum\u003cstring>"},"reason":{"enum":["sender_authenticated","sender_authentication_failed","evidence_conflict","evidence_unavailable","evidence_untrusted","evidence_invalid","assessment_error","not_applicable"],"type":"string","readOnly":true,"description":"Why `status` was stored. Technical evidence is omitted. New reason values may be added and clients must handle unrecognized values.\n\n* `sender_authenticated` - Sender authenticated\n* `sender_authentication_failed` - Sender authentication failed\n* `evidence_conflict` - Evidence conflict\n* `evidence_unavailable` - Evidence unavailable\n* `evidence_untrusted` - Evidence untrusted\n* `evidence_invalid` - Evidence invalid\n* `assessment_error` - Assessment error\n* `not_applicable` - Not applicable","isRequired":true,"uniqueKey":"sender.oneOf.0.authentication.oneOf.0.reason","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"sender.oneOf.0.authentication.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"sender.oneOf.0.authentication.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sender.oneOf.0.authentication","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"sender.oneOf.0","typeLabel":"object"},{"type":"object","description":"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.","required":["authentication","customer_id","email","name","profile_picture"],"properties":{"email":{"oneOf":[{"type":"string","format":"email","description":"Null when no address is stored. Email of the customer who submitted this content. Non-email channels do not invent an address. An email message with an empty sender address still falls back to the customer's email.","isRequired":true,"uniqueKey":"sender.oneOf.1.email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","description":"Null when no address is stored. Email of the customer who submitted this content. Non-email channels do not invent an address. An email message with an empty sender address still falls back to the customer's email.","isRequired":true,"uniqueKey":"sender.oneOf.1.email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sender.oneOf.1.email","typeLabel":"string\u003cemail> | null"},"name":{"type":"string","isRequired":true,"uniqueKey":"sender.oneOf.1.name","typeLabel":"string"},"customer_id":{"type":"integer","isRequired":true,"uniqueKey":"sender.oneOf.1.customer_id","typeLabel":"integer"},"profile_picture":{"oneOf":[{"type":"string","format":"uri","description":"Current profile-picture URL of this message's author. Null when the author has no uploaded or Google picture. Never a generated identicon, and never taken from the ticket assignee or owner.","isRequired":true,"uniqueKey":"sender.oneOf.1.profile_picture.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"Current profile-picture URL of this message's author. Null when the author has no uploaded or Google picture. Never a generated identicon, and never taken from the ticket assignee or owner.","isRequired":true,"uniqueKey":"sender.oneOf.1.profile_picture.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sender.oneOf.1.profile_picture","typeLabel":"string\u003curi> | null"},"authentication":{"oneOf":[{"type":"object","description":"`authentication` is null when the message was not checked (for example, it arrived before this check existed, or was imported or created through the API).","required":["reason","status"],"properties":{"status":{"enum":["passed","failed","conflicting","unknown","not_applicable"],"type":"string","readOnly":true,"description":"Whether accepted evidence authenticates the sender identifier for this channel. A pass is not a verified legal identity and does not mean the person or the content is trustworthy.\n\n* `passed` - Passed\n* `failed` - Failed\n* `conflicting` - Conflicting\n* `unknown` - Unknown\n* `not_applicable` - Not applicable","isRequired":true,"uniqueKey":"sender.oneOf.1.authentication.oneOf.0.status","typeLabel":"enum\u003cstring>"},"reason":{"enum":["sender_authenticated","sender_authentication_failed","evidence_conflict","evidence_unavailable","evidence_untrusted","evidence_invalid","assessment_error","not_applicable"],"type":"string","readOnly":true,"description":"Why `status` was stored. Technical evidence is omitted. New reason values may be added and clients must handle unrecognized values.\n\n* `sender_authenticated` - Sender authenticated\n* `sender_authentication_failed` - Sender authentication failed\n* `evidence_conflict` - Evidence conflict\n* `evidence_unavailable` - Evidence unavailable\n* `evidence_untrusted` - Evidence untrusted\n* `evidence_invalid` - Evidence invalid\n* `assessment_error` - Assessment error\n* `not_applicable` - Not applicable","isRequired":true,"uniqueKey":"sender.oneOf.1.authentication.oneOf.0.reason","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"sender.oneOf.1.authentication.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"sender.oneOf.1.authentication.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sender.oneOf.1.authentication","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"sender.oneOf.1","typeLabel":"object"},{"type":"object","description":"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.","required":["authentication","email","name","profile_picture"],"properties":{"email":{"oneOf":[{"type":"string","format":"email","description":"Null when the external participant has no stored email address.","isRequired":true,"uniqueKey":"sender.oneOf.2.email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","description":"Null when the external participant has no stored email address.","isRequired":true,"uniqueKey":"sender.oneOf.2.email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sender.oneOf.2.email","typeLabel":"string\u003cemail> | null"},"name":{"type":"string","isRequired":true,"uniqueKey":"sender.oneOf.2.name","typeLabel":"string"},"profile_picture":{"oneOf":[{"type":"string","format":"uri","description":"Current profile-picture URL of this message's author. Null when the author has no uploaded or Google picture. Never a generated identicon, and never taken from the ticket assignee or owner.","isRequired":true,"uniqueKey":"sender.oneOf.2.profile_picture.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"Current profile-picture URL of this message's author. Null when the author has no uploaded or Google picture. Never a generated identicon, and never taken from the ticket assignee or owner.","isRequired":true,"uniqueKey":"sender.oneOf.2.profile_picture.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sender.oneOf.2.profile_picture","typeLabel":"string\u003curi> | null"},"authentication":{"oneOf":[{"type":"object","description":"`authentication` is null when the message was not checked (for example, it arrived before this check existed, or was imported or created through the API).","required":["reason","status"],"properties":{"status":{"enum":["passed","failed","conflicting","unknown","not_applicable"],"type":"string","readOnly":true,"description":"Whether accepted evidence authenticates the sender identifier for this channel. A pass is not a verified legal identity and does not mean the person or the content is trustworthy.\n\n* `passed` - Passed\n* `failed` - Failed\n* `conflicting` - Conflicting\n* `unknown` - Unknown\n* `not_applicable` - Not applicable","isRequired":true,"uniqueKey":"sender.oneOf.2.authentication.oneOf.0.status","typeLabel":"enum\u003cstring>"},"reason":{"enum":["sender_authenticated","sender_authentication_failed","evidence_conflict","evidence_unavailable","evidence_untrusted","evidence_invalid","assessment_error","not_applicable"],"type":"string","readOnly":true,"description":"Why `status` was stored. Technical evidence is omitted. New reason values may be added and clients must handle unrecognized values.\n\n* `sender_authenticated` - Sender authenticated\n* `sender_authentication_failed` - Sender authentication failed\n* `evidence_conflict` - Evidence conflict\n* `evidence_unavailable` - Evidence unavailable\n* `evidence_untrusted` - Evidence untrusted\n* `evidence_invalid` - Evidence invalid\n* `assessment_error` - Assessment error\n* `not_applicable` - Not applicable","isRequired":true,"uniqueKey":"sender.oneOf.2.authentication.oneOf.0.reason","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"sender.oneOf.2.authentication.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"sender.oneOf.2.authentication.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sender.oneOf.2.authentication","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"sender.oneOf.2","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"sender.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sender","typeLabel":"object · object · object · null"},"next_assignee":{"oneOf":[{"type":"object","required":["email","id","profile_picture_url"],"properties":{"id":{"type":"integer","readOnly":true,"isRequired":true,"uniqueKey":"next_assignee.oneOf.0.id","typeLabel":"integer"},"email":{"type":"string","format":"email","maxLength":254,"isRequired":true,"uniqueKey":"next_assignee.oneOf.0.email","typeLabel":"string\u003cemail>"},"profile_picture_url":{"oneOf":[{"type":"string","format":"uri","readOnly":true,"isRequired":true,"uniqueKey":"next_assignee.oneOf.0.profile_picture_url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","readOnly":true,"isRequired":true,"uniqueKey":"next_assignee.oneOf.0.profile_picture_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"next_assignee.oneOf.0.profile_picture_url","typeLabel":"string\u003curi> | null"},"name":{"type":"string","maxLength":255,"uniqueKey":"next_assignee.oneOf.0.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"next_assignee.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"next_assignee.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"next_assignee","typeLabel":"object | null"},"next_priority":{"oneOf":[{"enum":["not_set","low","medium","high","urgent",null],"type":"string","readOnly":true,"description":"Priority this message sets on the ticket. Null means no change.\n\n* `not_set` - No priority\n* `low` - Low\n* `medium` - Medium\n* `high` - High\n* `urgent` - Urgent","isRequired":true,"uniqueKey":"next_priority.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["not_set","low","medium","high","urgent",null],"type":"null","readOnly":true,"description":"Priority this message sets on the ticket. Null means no change.\n\n* `not_set` - No priority\n* `low` - Low\n* `medium` - Medium\n* `high` - High\n* `urgent` - Urgent","isRequired":true,"uniqueKey":"next_priority.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"next_priority","typeLabel":"enum\u003cstring> | null"},"kind":{"enum":["text","audio"],"type":"string","readOnly":true,"description":"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.\n\n* `text` - Text\n* `audio` - Audio","isRequired":true,"uniqueKey":"kind","typeLabel":"enum\u003cstring>"},"has_raw_content":{"type":"boolean","readOnly":true,"description":"True when the full original message is available.","isRequired":true,"uniqueKey":"has_raw_content","typeLabel":"boolean"},"created_at":{"type":"string","format":"date-time","readOnly":true,"isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","readOnly":true,"isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"content_updated_at":{"oneOf":[{"type":"string","format":"date-time","readOnly":true,"description":"When the author last changed this message's text. Empty when the text has not changed.","isRequired":true,"uniqueKey":"content_updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","readOnly":true,"description":"When the author last changed this message's text. Empty when the text has not changed.","isRequired":true,"uniqueKey":"content_updated_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content_updated_at","typeLabel":"string\u003cdate-time> | null"},"deleted_at":{"oneOf":[{"type":"string","format":"date-time","readOnly":true,"description":"When the author deleted this message. Empty when the message is still available. A deleted message has no text.","isRequired":true,"uniqueKey":"deleted_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","readOnly":true,"description":"When the author deleted this message. Empty when the message is still available. A deleted message has no text.","isRequired":true,"uniqueKey":"deleted_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"deleted_at","typeLabel":"string\u003cdate-time> | null"},"delivery_status":{"oneOf":[{"enum":["pending","sent","read","failed",null],"type":"string","readOnly":true,"description":"Delivery state of this message. Empty when delivery is not tracked for this message.\n\n* `pending` - Pending\n* `sent` - Sent\n* `read` - Read\n* `failed` - Failed","isRequired":true,"uniqueKey":"delivery_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["pending","sent","read","failed",null],"type":"null","readOnly":true,"description":"Delivery state of this message. Empty when delivery is not tracked for this message.\n\n* `pending` - Pending\n* `sent` - Sent\n* `read` - Read\n* `failed` - Failed","isRequired":true,"uniqueKey":"delivery_status.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"delivery_status","typeLabel":"enum\u003cstring> | null"},"sent_at":{"oneOf":[{"type":"string","format":"date-time","readOnly":true,"description":"When this message was accepted for delivery. Empty until it is sent.","isRequired":true,"uniqueKey":"sent_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","readOnly":true,"description":"When this message was accepted for delivery. Empty until it is sent.","isRequired":true,"uniqueKey":"sent_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"sent_at","typeLabel":"string\u003cdate-time> | null"},"read_at":{"oneOf":[{"type":"string","format":"date-time","readOnly":true,"description":"When the recipient read this message. Empty until then. Some channels do not report this.","isRequired":true,"uniqueKey":"read_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","readOnly":true,"description":"When the recipient read this message. Empty until then. Some channels do not report this.","isRequired":true,"uniqueKey":"read_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"read_at","typeLabel":"string\u003cdate-time> | null"},"failed_at":{"oneOf":[{"type":"string","format":"date-time","readOnly":true,"description":"When delivery of this message failed. Empty until then.","isRequired":true,"uniqueKey":"failed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","readOnly":true,"description":"When delivery of this message failed. Empty until then.","isRequired":true,"uniqueKey":"failed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"failed_at","typeLabel":"string\u003cdate-time> | null"},"delivery_failure_reason":{"type":"string","readOnly":true,"description":"Short reason when delivery of this message failed. The wording can change.","isRequired":true,"uniqueKey":"delivery_failure_reason","typeLabel":"string"},"merged_from_ticket":{"oneOf":[{"type":"object","description":"Ticket this message was originally created on, when a merge moved it here. Null for messages created on this ticket.","required":["id","public_id","subject"],"properties":{"id":{"type":"integer","readOnly":true,"isRequired":true,"uniqueKey":"merged_from_ticket.oneOf.0.id","typeLabel":"integer"},"public_id":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"merged_from_ticket.oneOf.0.public_id","typeLabel":"string"},"subject":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"merged_from_ticket.oneOf.0.subject","typeLabel":"string"}},"isRequired":true,"uniqueKey":"merged_from_ticket.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"merged_from_ticket.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"merged_from_ticket","typeLabel":"object | null"},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true,"isRequired":true,"uniqueKey":"attachments.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"name":{"oneOf":[{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"attachments.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"isRequired":true,"uniqueKey":"attachments.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"attachments.items.[INDEX].name","typeLabel":"string | null"},"size":{"type":"integer","readOnly":true,"description":"Attachment file size in bytes.","isRequired":true,"uniqueKey":"attachments.items.[INDEX].size","typeLabel":"integer"},"content_type":{"type":"string","readOnly":true,"description":"MIME type without parameters, used for playback.","isRequired":true,"uniqueKey":"attachments.items.[INDEX].content_type","typeLabel":"string"},"download_url":{"type":"string","readOnly":true,"isRequired":true,"uniqueKey":"attachments.items.[INDEX].download_url","typeLabel":"string"}},"required":["content_type","download_url","id","name","size"],"uniqueKey":"attachments.items.[INDEX]","typeLabel":"object"},"readOnly":true,"isRequired":true,"uniqueKey":"attachments","typeLabel":"object[]"},"next_action":{"enum":["","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"],"type":"string","description":"* `` - (none)\n* `close_and_mark_resolved` - Close and Mark Resolved\n* `close_and_mark_invalid` - Close and Mark Invalid\n* `close_and_mark_customer_inactivity` - Close and Mark Customer Inactivity\n* `reopen_waiting_customer` - Reopen Waiting Customer\n* `reopen_waiting_associate` - Reopen Waiting Associate\n* `close_and_mark_other` - Close and Mark Other\n* `report_spam` - Report Spam\n* `remove_from_spam` - Remove from Spam","uniqueKey":"next_action","typeLabel":"enum\u003cstring>"},"content":{"type":"string","uniqueKey":"content","typeLabel":"string"},"content_html":{"type":"string","uniqueKey":"content_html","typeLabel":"string"},"is_visible_to_customer":{"type":"boolean","uniqueKey":"is_visible_to_customer","typeLabel":"boolean"},"external_recipient_emails":{"oneOf":[{"type":"array","items":{"type":"string","format":"email","uniqueKey":"external_recipient_emails.oneOf.0.items.[INDEX]","typeLabel":"string\u003cemail>"},"description":"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.","uniqueKey":"external_recipient_emails.oneOf.0","typeLabel":"string\u003cemail>[]"},{"type":"null","items":{"type":"string","format":"email"},"description":"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.","uniqueKey":"external_recipient_emails.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_recipient_emails","typeLabel":"string\u003cemail>[] | null"},"bcc_recipient_emails":{"oneOf":[{"type":"array","items":{"type":"string","format":"email","uniqueKey":"bcc_recipient_emails.oneOf.0.items.[INDEX]","typeLabel":"string\u003cemail>"},"description":"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.","uniqueKey":"bcc_recipient_emails.oneOf.0","typeLabel":"string\u003cemail>[]"},{"type":"null","items":{"type":"string","format":"email"},"description":"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.","uniqueKey":"bcc_recipient_emails.oneOf.1","typeLabel":"null"}],"uniqueKey":"bcc_recipient_emails","typeLabel":"string\u003cemail>[] | null"}},"required":["attachments","author","content_updated_at","created_at","deleted_at","delivery_failure_reason","delivery_status","failed_at","has_raw_content","id","kind","merged_from_ticket","next_assignee","next_priority","read_at","role","sender","sent_at","updated_at"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":123,"author":{"id":123,"email":"jsmith@example.com","profile_picture_url":"\u003cstring>","name":"\u003cstring>"},"role":"customer","sender":{"email":"jsmith@example.com","name":"\u003cstring>","user_id":123,"profile_picture":"\u003cstring>","authentication":{"status":"passed","reason":"sender_authenticated"}},"next_assignee":{"id":123,"email":"jsmith@example.com","profile_picture_url":"\u003cstring>","name":"\u003cstring>"},"next_priority":"not_set","kind":"text","has_raw_content":true,"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","content_updated_at":"2023-11-07T05:31:56Z","deleted_at":"2023-11-07T05:31:56Z","delivery_status":"pending","sent_at":"2023-11-07T05:31:56Z","read_at":"2023-11-07T05:31:56Z","failed_at":"2023-11-07T05:31:56Z","delivery_failure_reason":"\u003cstring>","merged_from_ticket":{"id":123,"public_id":"\u003cstring>","subject":"\u003cstring>"},"attachments":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","name":"\u003cstring>","size":123,"content_type":"\u003cstring>","download_url":"\u003cstring>"}],"next_action":"","content":"\u003cstring>","content_html":"\u003cstring>","is_visible_to_customer":true,"external_recipient_emails":["jsmith@example.com"],"bcc_recipient_emails":["jsmith@example.com"]}}},"exampleType":"generated"}},"description":"","exampleType":"generated"},"0fcba6e2-816a-49f9-9567-e9be8b540539":{"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"HTTP body for any channel that rejects a customer-visible reply.","required":["code","detail"],"properties":{"detail":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.detail","typeLabel":"string"},"code":{"type":"string","enum":["whatsapp_window_closed"],"isRequired":true,"uniqueKey":"oneOf.0.code","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Field and non-field errors from message create, besides channel reply codes.","properties":{"non_field_errors":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.non_field_errors.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.non_field_errors","typeLabel":"string[]"},"content":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.content.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.content","typeLabel":"string[]"},"content_html":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.content_html.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.content_html","typeLabel":"string[]"},"next_assignee_id":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.next_assignee_id.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.next_assignee_id","typeLabel":"string[]"},"next_action":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.next_action.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.next_action","typeLabel":"string[]"},"attachment_ids":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.attachment_ids.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.attachment_ids","typeLabel":"string[]"},"external_recipient_emails":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.external_recipient_emails.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.external_recipient_emails","typeLabel":"string[]"},"bcc_recipient_emails":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.bcc_recipient_emails.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.bcc_recipient_emails","typeLabel":"string[]"},"next_priority":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.next_priority.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.next_priority","typeLabel":"string[]"},"is_visible_to_customer":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.is_visible_to_customer.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.is_visible_to_customer","typeLabel":"string[]"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>","code":"whatsapp_window_closed"}}},"exampleType":"generated"}},"description":"","exampleType":"generated"}},"security":{"adeda0c3-4c1d-4cc0-a85e-30ea6814ab04":{"IntegrationToken":{"type":"apiKey","in":"header","name":"X-Initdesk-Token","scopes":[],"schemeName":"IntegrationToken"}}},"servers":{"f0847b87-c8a0-40a7-98ab-0b603357f2ab":{"url":"https://api.initdesk.com","description":"initdesk API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-Initdesk-Token","scopes":[],"schemeName":"IntegrationToken"},"schema":{"title":"X-Initdesk-Token","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"IntegrationToken","name":"X-Initdesk-Token"}],"title":"IntegrationToken"}]},"originalFileLocation":"https://api.initdesk.com/schema.yaml"},"subdomain":"initdesk-299074c5","siteName":"initdesk API","title":"Reply or create internal note - initdesk API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-03T22:11:58.629Z","originalFileLocation":"api-reference/tickets/reply-or-create-internal-note.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Add a reply or internal note to the ticket. For customer-visible replies, optional external_recipient_emails sets CC recipients for that message; omit or null to reuse CC recipients from the previous customer-visible message or from ticket creation. Internal notes ignore this field. Optional attachment_ids claims files previously uploaded via POST .../tickets/{ticket_id}/attachments/ (see Tickets tag for the upload flow). A channel may reject a customer-visible reply with 400 {detail, code}. WhatsApp uses whatsapp_window_closed when the customer service window is closed.\">\u003cmeta data-mint-head name=\"application-name\" content=\"initdesk API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/initdesk-299074c5/KqVC2jvvVcaa16ll/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/initdesk-299074c5/KqVC2jvvVcaa16ll/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/initdesk-299074c5/KqVC2jvvVcaa16ll/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/initdesk-299074c5/KqVC2jvvVcaa16ll/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/initdesk-299074c5/KqVC2jvvVcaa16ll/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/initdesk-299074c5/KqVC2jvvVcaa16ll/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/initdesk-299074c5/KqVC2jvvVcaa16ll/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/initdesk-299074c5/KqVC2jvvVcaa16ll/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/initdesk-299074c5/KqVC2jvvVcaa16ll/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Reply or create internal note - initdesk API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add a reply or internal note to the ticket. For customer-visible replies, optional external_recipient_emails sets CC recipients for that message; omit or null to reuse CC recipients from the previous customer-visible message or from ticket creation. Internal notes ignore this field. Optional attachment_ids claims files previously uploaded via POST .../tickets/{ticket_id}/attachments/ (see Tickets tag for the upload flow). A channel may reject a customer-visible reply with 400 {detail, code}. WhatsApp uses whatsapp_window_closed when the customer service window is closed.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"initdesk API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.initdesk.com/api-reference/tickets/reply-or-create-internal-note\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://initdesk-299074c5.mintlify.site/_mintlify/api/og/v2?division=Tickets\u0026amp;title=Reply+or+create+internal+note\u0026amp;description=Add+a+reply+or+internal+note+to+the+ticket.+For+customer-visible+replies%2C+optional+%60external_recipient_emails%60+sets+CC+recipients+for+that+message%3B+omit+or+null\u0026amp;theme=ec69c6acc210ed475f6e1fc1\u0026amp;signature=9a6465f83d5a3292de7ab1759923be91a69fe09cbe4b5e49e2ad416330cc94ab\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Reply or create internal note - initdesk API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add a reply or internal note to the ticket. For customer-visible replies, optional external_recipient_emails sets CC recipients for that message; omit or null to reuse CC recipients from the previous customer-visible message or from ticket creation. Internal notes ignore this field. Optional attachment_ids claims files previously uploaded via POST .../tickets/{ticket_id}/attachments/ (see Tickets tag for the upload flow). A channel may reject a customer-visible reply with 400 {detail, code}. WhatsApp uses whatsapp_window_closed when the customer service window is closed.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://initdesk-299074c5.mintlify.site/_mintlify/api/og/v2?division=Tickets\u0026amp;title=Reply+or+create+internal+note\u0026amp;description=Add+a+reply+or+internal+note+to+the+ticket.+For+customer-visible+replies%2C+optional+%60external_recipient_emails%60+sets+CC+recipients+for+that+message%3B+omit+or+null\u0026amp;theme=ec69c6acc210ed475f6e1fc1\u0026amp;signature=9a6465f83d5a3292de7ab1759923be91a69fe09cbe4b5e49e2ad416330cc94ab\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/initdesk-299074c5/KqVC2jvvVcaa16ll/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"initdesk API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5E40A1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.initdesk.com/api-reference/tickets/reply-or-create-internal-note\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/tickets/reply-or-create-internal-note.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.initdesk.com/#organization\",\"name\":\"initdesk API\",\"url\":\"https://developers.initdesk.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/initdesk-299074c5/DSCP90FOnPuX3Fjf/images/image.webp?fit=max\u0026auto=format\u0026n=DSCP90FOnPuX3Fjf\u0026q=85\u0026s=386dfe553eac3863855af3187bb2629d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.initdesk.com#website\",\"name\":\"initdesk API\",\"url\":\"https://developers.initdesk.com\",\"publisher\":{\"@id\":\"https://developers.initdesk.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.initdesk.com/api-reference/tickets/reply-or-create-internal-note#webpage\",\"url\":\"https://developers.initdesk.com/api-reference/tickets/reply-or-create-internal-note\",\"name\":\"Reply or create internal note\",\"description\":\"Add a reply or internal note to the ticket. For customer-visible replies, optional external_recipient_emails sets CC recipients for that message; omit or null to reuse CC recipients from the previous customer-visible message or from ticket creation. Internal notes ignore this field. Optional attachment_ids claims files previously uploaded via POST .../tickets/{ticket_id}/attachments/ (see Tickets tag for the upload flow). A channel may reject a customer-visible reply with 400 {detail, code}. WhatsApp uses whatsapp_window_closed when the customer service window is closed.\",\"dateModified\":\"2026-12-03T22:11:58.629Z\",\"isPartOf\":{\"@id\":\"https://developers.initdesk.com#website\"},\"breadcrumb\":{\"@id\":\"https://developers.initdesk.com/api-reference/tickets/reply-or-create-internal-note#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.initdesk.com/api-reference/tickets/reply-or-create-internal-note#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API reference\",\"item\":\"https://developers.initdesk.com/api-reference/organizations/list-organizations\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tickets\",\"item\":\"https://developers.initdesk.com/api-reference/tickets/create-pending-attachment\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Reply or create internal note\",\"item\":\"https://developers.initdesk.com/api-reference/tickets/reply-or-create-internal-note\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.initdesk.com/api-reference/tickets/reply-or-create-internal-note#apireference\",\"headline\":\"Reply or create internal note\",\"name\":\"Reply or create internal note\",\"description\":\"Add a reply or internal note to the ticket. For customer-visible replies, optional external_recipient_emails sets CC recipients for that message; omit or null to reuse CC recipients from the previous customer-visible message or from ticket creation. Internal notes ignore this field. Optional attachment_ids claims files previously uploaded via POST .../tickets/{ticket_id}/attachments/ (see Tickets tag for the upload flow). A channel may reject a customer-visible reply with 400 {detail, code}. WhatsApp uses whatsapp_window_closed when the customer service window is closed.\",\"url\":\"https://developers.initdesk.com/api-reference/tickets/reply-or-create-internal-note\",\"mainEntityOfPage\":{\"@id\":\"https://developers.initdesk.com/api-reference/tickets/reply-or-create-internal-note#webpage\"},\"dateModified\":\"2026-12-03T22:11:58.629Z\",\"publisher\":{\"@id\":\"https://developers.initdesk.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.initdesk.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"initdesk API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"initdesk API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/tickets/reply-or-create-internal-note.md","siteName":"initdesk API","nav":{"global":null,"tabs":[{"tab":"API docs","pages":[{"title":"initdesk API","href":"/endpoints"},{"title":"Authentication and limits","href":"/authentication"},{"title":"Entities and relationships","href":"/main-entities"},{"group":"API reference","expanded":true,"pages":[{"group":"Organizations","pages":[{"title":"List organizations","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/","href":"/api-reference/organizations/list-organizations"},{"title":"Retrieve organization","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/","href":"/api-reference/organizations/retrieve-organization"}]},{"group":"Business Hours","pages":[{"title":"List business hours exceptions","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/business-hours/exceptions/","href":"/api-reference/business-hours/list-business-hours-exceptions"},{"title":"Create business hours exception","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml post /organizations/{organization_id}/business-hours/exceptions/","href":"/api-reference/business-hours/create-business-hours-exception"},{"title":"Retrieve business hours exception","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/business-hours/exceptions/{pk}/","href":"/api-reference/business-hours/retrieve-business-hours-exception"},{"title":"Replace business hours exception","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml put /organizations/{organization_id}/business-hours/exceptions/{pk}/","href":"/api-reference/business-hours/replace-business-hours-exception"},{"title":"Delete business hours exception","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml delete /organizations/{organization_id}/business-hours/exceptions/{pk}/","href":"/api-reference/business-hours/delete-business-hours-exception"},{"title":"Update business hours exception","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml patch /organizations/{organization_id}/business-hours/exceptions/{pk}/","href":"/api-reference/business-hours/update-business-hours-exception"},{"title":"Get business hours","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/business-hours/","href":"/api-reference/business-hours/get-business-hours"},{"title":"Replace business hours","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml put /organizations/{organization_id}/business-hours/","href":"/api-reference/business-hours/replace-business-hours"},{"title":"Delete business hours","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml delete /organizations/{organization_id}/business-hours/","href":"/api-reference/business-hours/delete-business-hours"}]},{"group":"Companies","pages":[{"title":"List companies","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/companies/","href":"/api-reference/companies/list-companies"},{"title":"Create company","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml post /organizations/{organization_id}/companies/","href":"/api-reference/companies/create-company"},{"title":"Retrieve company","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/companies/{pk}/","href":"/api-reference/companies/retrieve-company"},{"title":"Update company","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml put /organizations/{organization_id}/companies/{pk}/","href":"/api-reference/companies/update-company"},{"title":"Delete company","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml delete /organizations/{organization_id}/companies/{pk}/","href":"/api-reference/companies/delete-company"},{"title":"Partially update company","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml patch /organizations/{organization_id}/companies/{pk}/","href":"/api-reference/companies/partially-update-company"},{"title":"Attach company members","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml post /organizations/{organization_id}/companies/{pk}/members/","href":"/api-reference/companies/attach-company-members"}]},{"group":"Custom Preset Filters","pages":[{"title":"List custom preset filters","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/custom-preset-filters/","href":"/api-reference/custom-preset-filters/list-custom-preset-filters"},{"title":"Retrieve custom preset filter","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/custom-preset-filters/{id}/","href":"/api-reference/custom-preset-filters/retrieve-custom-preset-filter"}]},{"group":"Customers","pages":[{"title":"List customers","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/customers/","href":"/api-reference/customers/list-customers"},{"title":"Create customer","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml post /organizations/{organization_id}/customers/","href":"/api-reference/customers/create-customer"},{"title":"Retrieve customer","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/customers/{pk}/","href":"/api-reference/customers/retrieve-customer"},{"title":"Update customer","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml put /organizations/{organization_id}/customers/{pk}/","href":"/api-reference/customers/update-customer"},{"title":"Partial update customer","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml patch /organizations/{organization_id}/customers/{pk}/","href":"/api-reference/customers/partial-update-customer"}]},{"group":"Inboxes","pages":[{"title":"List inboxes","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/inboxes/","href":"/api-reference/inboxes/list-inboxes"},{"title":"Retrieve inbox","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/inboxes/{pk}/","href":"/api-reference/inboxes/retrieve-inbox"}]},{"group":"Tickets","pages":[{"title":"Create pending attachment","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml post /organizations/{organization_id}/pending-attachments/","href":"/api-reference/tickets/create-pending-attachment"},{"title":"Search tickets","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/search/","href":"/api-reference/tickets/search-tickets"},{"title":"List tickets","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/tickets/","href":"/api-reference/tickets/list-tickets"},{"title":"Create ticket","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml post /organizations/{organization_id}/tickets/","href":"/api-reference/tickets/create-ticket"},{"title":"Retrieve ticket","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/tickets/{ticket_id}/","href":"/api-reference/tickets/retrieve-ticket"},{"title":"Unassign ticket","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml post /organizations/{organization_id}/tickets/{ticket_id}/unassign/","href":"/api-reference/tickets/unassign-ticket"},{"title":"List ticket statuses","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/ticketstatus/","href":"/api-reference/tickets/list-ticket-statuses"},{"title":"Create ticket attachment","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml post /organizations/{organization_id}/tickets/{ticket_id}/attachments/","href":"/api-reference/tickets/create-ticket-attachment"},{"title":"Download ticket attachment","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/tickets/{ticket_id}/attachments/{pk}/","href":"/api-reference/tickets/download-ticket-attachment"},{"title":"List ticket messages","description":"Return messages for a ticket. A deleted message stays in the list without its text: `deleted_at` is set, and `content` and `content_html` are empty.","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/tickets/{ticket_id}/messages/","href":"/api-reference/tickets/list-ticket-messages"},{"title":"Reply or create internal note","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml post /organizations/{organization_id}/tickets/{ticket_id}/messages/","href":"/api-reference/tickets/reply-or-create-internal-note"},{"title":"Retrieve ticket message raw content","description":"Return the full original text of an inbound message when it differs from the message shown on the timeline. Returns 404 when that text is not available.","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/tickets/{ticket_id}/messages/{pk}/raw-content/","href":"/api-reference/tickets/retrieve-ticket-message-raw-content"}]},{"group":"Help Center","pages":[{"title":"Get portal settings","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/portal/","href":"/api-reference/help-center/get-portal-settings"},{"title":"Replace portal settings","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml put /organizations/{organization_id}/portal/","href":"/api-reference/help-center/replace-portal-settings"},{"title":"Update portal settings","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml patch /organizations/{organization_id}/portal/","href":"/api-reference/help-center/update-portal-settings"},{"title":"List articles","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/portal/articles/","href":"/api-reference/help-center/list-articles"},{"title":"Create article","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml post /organizations/{organization_id}/portal/articles/","href":"/api-reference/help-center/create-article"},{"title":"Retrieve article","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/portal/articles/{pk}/","href":"/api-reference/help-center/retrieve-article"},{"title":"Update article","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml put /organizations/{organization_id}/portal/articles/{pk}/","href":"/api-reference/help-center/update-article"},{"title":"Delete article","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml delete /organizations/{organization_id}/portal/articles/{pk}/","href":"/api-reference/help-center/delete-article"},{"title":"Partially update article","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml patch /organizations/{organization_id}/portal/articles/{pk}/","href":"/api-reference/help-center/partially-update-article"},{"title":"Get portal favicon URL","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/portal/favicon/{size}/","href":"/api-reference/help-center/get-portal-favicon-url"},{"title":"Get portal logo URL","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/portal/logo/{size}/","href":"/api-reference/help-center/get-portal-logo-url"},{"title":"Search knowledge base articles","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/portal/search/","href":"/api-reference/help-center/search-knowledge-base-articles"},{"title":"List collections","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/portal/collections/","href":"/api-reference/help-center/list-collections"},{"title":"Create collection","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml post /organizations/{organization_id}/portal/collections/","href":"/api-reference/help-center/create-collection"},{"title":"Retrieve collection","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/portal/collections/{pk}/","href":"/api-reference/help-center/retrieve-collection"},{"title":"Update collection","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml put /organizations/{organization_id}/portal/collections/{pk}/","href":"/api-reference/help-center/update-collection"},{"title":"Delete collection","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml delete /organizations/{organization_id}/portal/collections/{pk}/","href":"/api-reference/help-center/delete-collection"},{"title":"Partially update collection","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml patch /organizations/{organization_id}/portal/collections/{pk}/","href":"/api-reference/help-center/partially-update-collection"},{"title":"List collection tree","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/portal/collections/tree/","href":"/api-reference/help-center/list-collection-tree"}]},{"group":"Tags","pages":[{"title":"List organization tags","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/tags/","href":"/api-reference/tags/list-organization-tags"},{"title":"Retrieve organization tag","deprecated":null,"version":null,"openapi":"https://api.initdesk.com/schema.yaml get /organizations/{organization_id}/tags/{pk}/","href":"/api-reference/tags/retrieve-organization-tag"}]}]}]}]},"basePath":"","title":"Reply or create internal note - initdesk API","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js","Markdown-4tjIF-hK.js","AssistantPageLink-BcChI7L3.js","dist-MIf_HGLZ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}