Reply to a ticket
curl --request POST \
--url https://{domain}/api/application/tickets/{ticket}/replies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "Thanks for the report. We restarted the node, please try again.",
"user_id": 2,
"is_staff": true
}
'import requests
url = "https://{domain}/api/application/tickets/{ticket}/replies"
payload = {
"message": "Thanks for the report. We restarted the node, please try again.",
"user_id": 2,
"is_staff": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
message: 'Thanks for the report. We restarted the node, please try again.',
user_id: 2,
is_staff: true
})
};
fetch('https://{domain}/api/application/tickets/{ticket}/replies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{domain}/api/application/tickets/{ticket}/replies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'message' => 'Thanks for the report. We restarted the node, please try again.',
'user_id' => 2,
'is_staff' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{domain}/api/application/tickets/{ticket}/replies"
payload := strings.NewReader("{\n \"message\": \"Thanks for the report. We restarted the node, please try again.\",\n \"user_id\": 2,\n \"is_staff\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{domain}/api/application/tickets/{ticket}/replies")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"message\": \"Thanks for the report. We restarted the node, please try again.\",\n \"user_id\": 2,\n \"is_staff\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}/api/application/tickets/{ticket}/replies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"message\": \"Thanks for the report. We restarted the node, please try again.\",\n \"user_id\": 2,\n \"is_staff\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 110,
"message": "Thanks for the report. We restarted the node, please try again.",
"is_staff": true,
"is_activity": false,
"activity_type": null,
"actor": {
"type": "staff",
"id": 2,
"name": "Alex Morgan",
"email": "alex.morgan@example.com"
},
"attachments": [],
"created_at": "2026-11-16T14:33:50.000000Z"
},
"message": "Ticket reply created.",
"meta": {
"request_id": "f5016971-52bd-4bfa-b9c6-486d18fccb96"
}
}Replies
Reply to a ticket
Adds a reply as staff or as the user. Fires TicketMessageSent (email to the other side, webhooks). Attachments must already be stored on the server; pass their stored path. Send an Idempotency-Key header to make retries safe: the first response is stored for 24 hours and replayed with Idempotent-Replayed: true.
Permission: tickets.reply
POST
/
tickets
/
{ticket}
/
replies
Reply to a ticket
curl --request POST \
--url https://{domain}/api/application/tickets/{ticket}/replies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "Thanks for the report. We restarted the node, please try again.",
"user_id": 2,
"is_staff": true
}
'import requests
url = "https://{domain}/api/application/tickets/{ticket}/replies"
payload = {
"message": "Thanks for the report. We restarted the node, please try again.",
"user_id": 2,
"is_staff": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
message: 'Thanks for the report. We restarted the node, please try again.',
user_id: 2,
is_staff: true
})
};
fetch('https://{domain}/api/application/tickets/{ticket}/replies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{domain}/api/application/tickets/{ticket}/replies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'message' => 'Thanks for the report. We restarted the node, please try again.',
'user_id' => 2,
'is_staff' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{domain}/api/application/tickets/{ticket}/replies"
payload := strings.NewReader("{\n \"message\": \"Thanks for the report. We restarted the node, please try again.\",\n \"user_id\": 2,\n \"is_staff\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{domain}/api/application/tickets/{ticket}/replies")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"message\": \"Thanks for the report. We restarted the node, please try again.\",\n \"user_id\": 2,\n \"is_staff\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}/api/application/tickets/{ticket}/replies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"message\": \"Thanks for the report. We restarted the node, please try again.\",\n \"user_id\": 2,\n \"is_staff\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 110,
"message": "Thanks for the report. We restarted the node, please try again.",
"is_staff": true,
"is_activity": false,
"activity_type": null,
"actor": {
"type": "staff",
"id": 2,
"name": "Alex Morgan",
"email": "alex.morgan@example.com"
},
"attachments": [],
"created_at": "2026-11-16T14:33:50.000000Z"
},
"message": "Ticket reply created.",
"meta": {
"request_id": "f5016971-52bd-4bfa-b9c6-486d18fccb96"
}
}Authorizations
Headers
Body
application/json
Was this page helpful?

