POST
Ticket.ChatList
Alias of Ticket.Messages. Ticket CHAT listing for App clients.
Permissions
- User must be logged in with a valid bearer token.
- Returned or changed records are limited by the user permissions, team access, folder access, and account settings.
Action
- Runs the Ticket.ChatList function and returns JSON.
Push Service
No push is sent because this function only reads data or returns helper information.
Automation
No automation is run for this function.
Special Instructions
- Use for the CHAT panel listing. Send uses Ticket.Reply (dashboard insert_message Send / Add chat).
- type=only_member is an internal note (Add chat). type=normal is customer-visible (Send).
- who=customer vs who=agent. file_url is absolute when the message is an attachment path.
- Ticket.Get also returns additive data.chat with the same mapped rows; data.messages remains the raw stored JSON.
Required Parameters
| Name | Type | Sample | Explanation |
|---|---|---|---|
ticket_idpost | int | 900 | Ticket id. Aliases: id, data_id, t_id. |
Optional Parameters
No optional body parameters are defined for this function.
Authentication
Send the bearer token returned by Login in the request header.
Authorization: Bearer YOUR TOKEN
Sample Request
{
"url": "\/app\/Ticket.ChatList",
"method": "POST",
"headers": {
"Authorization": "Bearer YOUR TOKEN"
},
"body": {
"ticket_id": "900"
},
"url_user": "https:\/\/{user}.bull36.com\/app\/Ticket.ChatList",
"url_domain": "https:\/\/{domain}\/app\/Ticket.ChatList"
}Endpoint
POST /app/Ticket.ChatList
POST https://{user}.bull36.com/app/Ticket.ChatList
POST https://{domain}/app/Ticket.ChatListSample Output
{
"success": 1,
"ticket_id": 900,
"count": 1,
"data": [
{
"who": "agent",
"name": "User",
"role": "To customer",
"time": "08.09.2026 14:01:00",
"text": "Customer needs help.",
"type": "normal",
"file": "",
"file_url": "",
"user_id": 47,
"image": ""
}
],
"messages": []
}JavaScript Example
const token = 'YOUR TOKEN';
const body = new URLSearchParams({ ticket_id: '900' });
const res = await fetch('/app/Ticket.ChatList', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
console.log((await res.json()).data);Error Example
{
"success": 0,
"message": "Ticket not found"
}