Reply to a ticket
curl --request POST \
--url https://my.server.express/api/v1/client/tickets/{id}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "<string>",
"attachmentIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
body: JSON.stringify('<string>'),
attachmentIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://my.server.express/api/v1/client/tickets/{id}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/client/tickets/{id}/messages"
payload = {
"body": "<string>",
"attachmentIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"author": "<string>",
"role": "staff",
"body": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"attachments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"contentType": "<string>",
"size": 123,
"inline": true
}
]
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Tickets
Reply to a ticket
Adds your reply, attaches up to 5 pending uploads, and sets the ticket to CUSTOMER_REPLY. A message may be empty only when it carries files. Closed tickets refuse replies (400). Staff are alerted by email and Telegram. 409 if an attachment is no longer pending.
POST
/
v1
/
client
/
tickets
/
{id}
/
messages
Reply to a ticket
curl --request POST \
--url https://my.server.express/api/v1/client/tickets/{id}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "<string>",
"attachmentIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
body: JSON.stringify('<string>'),
attachmentIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://my.server.express/api/v1/client/tickets/{id}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/client/tickets/{id}/messages"
payload = {
"body": "<string>",
"attachmentIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"author": "<string>",
"role": "staff",
"body": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"attachments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"contentType": "<string>",
"size": 123,
"inline": true
}
]
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Authorizations
bearerAuthapiToken
Session access token (JWT) from POST /v1/auth/login or /v1/auth/refresh. A session satisfies every API scope.
Path Parameters
Body
application/json