POST

Ticket.MessagesList

Alias of Ticket.Messages. List mapped ticket chat rows for the dashboard CHAT panel.

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

NameTypeSampleExplanation
ticket_id
post
int900Ticket 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.MessagesList",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "ticket_id": "900"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/Ticket.MessagesList",
    "url_domain": "https:\/\/{domain}\/app\/Ticket.MessagesList"
}

Endpoint

POST /app/Ticket.MessagesList
POST https://{user}.bull36.com/app/Ticket.MessagesList
POST https://{domain}/app/Ticket.MessagesList

Sample 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.MessagesList', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
console.log((await res.json()).data);

Error Example

{
    "success": 0,
    "message": "Ticket not found"
}