Tickets
Adds a new message to the ticket identified by path id with one or more file attachments (images, PDFs, etc.), and returns the created message object including its attachments. Send the request as multipart/form-data: put the note text in the content field and each file in an attachments field (repeat the field to send several files in one message). The message is posted into the ticket conversation as an outgoing reply on the underlying channel where applicable. For text-only messages without files, use POST /api/ext/omni_v2/ticket/{id}/messages instead.
curl --request POST \
--url 'https://api.nabrah.ai/api/ext/omni_v2/ticket/<id>/messages_with_attachment' \
--header 'X-API-Key: <your-api-key>'{
"content": "string",
"content_attributes": {},
"content_type": "string",
"conversation_id": 0,
"created_at": 0,
"echo_id": "string",
"id": 0,
"inbox_id": 0,
"message_type": 0,
"private": false,
"sender": {
"id": 0,
"name": "string",
"type": "string",
"email": "string",
"phone_number": "string"
},
"source_id": "string",
"status": "string",
"attachments": [
{
"id": 0,
"account_id": 0,
"message_id": 0,
"thumb_url": "string",
"data_url": "string",
"file_size": 0,
"file_type": "string",
"extension": "string"
}
]
}Send the request as multipart/form-data (not JSON).
contentThe text content of the message. May be empty when only attachments are sent.
attachmentsOne or more files to attach. Repeat the attachments field once per file to upload several files in a single message.
Uploads are restricted for security.
Images (png, jpg, jpeg, gif, webp), pdf, xlsx, csv. SVG and executable/script files are rejected.
Up to 10 files per message, 10 MB per file.
Disallowed type → 415; oversized file → 413; too many files → 400.
Returns the created message with its server-assigned id, message_type, sender, created_at (Unix epoch seconds), and an attachments array — each entry with data_url, thumb_url, file_type, file_size, and extension.
X-API-KeystringheaderrequiredYour workspace API key. Create one in the dashboard under API keys.
idintegerrequiredNumeric identifier of the ticket to add a message to.
From GET /api/ext/omni_v2/ticket or the create-ticket response.
Successful Response
application/json
Validation Error
application/json