Docs
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

API Tester(Loading...)

Loading API token configuration...

Payload

URL Parameters

idstringrequired

Ticket ID

Body Parameters

Content-Type: application/jsonrequired

Schema:

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

Response

201Message created successfully

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
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