post
Add message to ticket
Adds a new message to an existing ticket.
Tickets
| Endpoint | /tickets/{id}/messages |
| Method | post |
| Plan Required | PRO |
| Authorization | Bearer Token required |
| Permissions | WRITE |
| Content-Type | application/json |
/tickets/{id}/messagesWRITE
application/jsonAPI Tester(Loading...)
Loading API token configuration...
Payload
URL Parameters
idstringrequiredTicket ID
Body Parameters
Content-Type:
application/jsonrequiredSchema:
| Field | Type | Description / Example |
|---|---|---|
| content | string | No example |
| messageType | string | No example |
| emailMessageId | string | No example |
| senderEmail | string | No example |
| isFromEmail | boolean | No example |
| authorId | number | No example |
| inReplyTo | string | No example |
| references | string | No example |
| subject | string | No example |
content
No example
messageType
No example
emailMessageId
No example
senderEmail
No example
isFromEmail
No example
authorId
No example
inReplyTo
No example
references
No example
subject
No example
Response
201Message created successfully
| Field | Type | Description / Example |
|---|---|---|
| id | string | 123456789 |
| ticketId | string | 123456789 |
| messageType | string | EMAIL |
| content | string | Thank you for contacting support. We will help you... |
| emailMessageId | string | |
| senderEmail | string | |
| isFromEmail | boolean | true |
| createdAt | string | 2023-12-01T10:00:00Z |
id
123456789ticketId
123456789messageType
EMAILcontent
Thank you for contacting support. We will help you...emailMessageId
senderEmail
isFromEmail
truecreatedAt
2023-12-01T10:00:00Z400Bad request - Invalid message data
No response details available
401Unauthorized - Invalid or missing API token
No response details available
404Ticket not found
No response details available
Expected Response
JSON
{
"id": "123456789",
"ticketId": "123456789",
"messageType": "EMAIL",
"content": "Thank you for contacting support. We will help you resolve this issue.",
"emailMessageId": "[email protected]",
"senderEmail": "[email protected]",
"isFromEmail": true,
"createdAt": "2023-12-01T10:00:00Z"
}API Access Token
Base URL
https://api.5chat.io