Get a ticket and its conversation
curl --request GET \
--url https://my.server.express/api/v1/client/tickets/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/client/tickets/{id}', 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}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"subject": "<string>",
"status": "open",
"priority": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"messages": [
{
"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>"
}Tickets
Get a ticket and its conversation
The ticket with every message, oldest first. Staff replies sent under a team or persona name show that name, never the person behind it. Opening a ticket in your own browser session marks staff replies as read; impersonation sessions and API tokens don’t.
GET
/
v1
/
client
/
tickets
/
{id}
Get a ticket and its conversation
curl --request GET \
--url https://my.server.express/api/v1/client/tickets/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/client/tickets/{id}', 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}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"subject": "<string>",
"status": "open",
"priority": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"messages": [
{
"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>"
}