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}/messages
WRITE
application/json
API Tester(Loading...)
Loading API token configuration...
Payload
URL Parameters
id
stringrequiredTicket ID
Body Parameters
Content-Type:
application/json
requiredSchema:
Field | Type | Description / Example |
---|---|---|
ticketId | number | No 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 |
ticketId
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 | [email protected] |
senderEmail | string | [email protected] |
isFromEmail | boolean | true |
createdAt | string | 2023-12-01T10:00:00Z |
id
123456789
ticketId
123456789
messageType
EMAIL
content
Thank you for contacting support. We will help you...
emailMessageId
senderEmail
isFromEmail
true
createdAt
2023-12-01T10:00:00Z
400Bad 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