Tickets
Adds a new message to the ticket identified by path id and returns the created message object (id, content, sender, type, timestamps). Provide the text in the message field. The message is posted into the ticket conversation as a reply on the underlying channel where applicable.
curl --request POST \
--url 'https://api.nabrah.ai/api/ext/omni_v2/ticket/<id>/messages' \
--header 'X-API-Key: <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"message": "Thanks for reaching out! We'\''ve issued your refund and you should see it within 3-5 business days."
}'{
"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"
}messageThe text content of the message to add to the ticket.
messageReturns the created message with its server-assigned id, message_type, sender, and created_at (Unix epoch seconds).
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.
Post a reply/message into the ticket conversation.
{
"message": "Thanks for reaching out! We've issued your refund and you should see it within 3-5 business days."
}Successful Response
application/json
Validation Error
application/json