Skip to content

Get Messages

David Haller edited this page Jul 8, 2018 · 3 revisions

Get messages for ticket

URL : /messages/:ticket?limit=:limit

Method : GET

Auth required : YES (Admin, User)

Success Response

Code : 200 OK

Content example

[{
    "id": "1",
    "sender": "admin",
    "timestamp": "1531082087",
    "content": "Hello, everyone!",
    "attachment": "42",
    "originalName": "image.jpg"
}]

Timestamp is given in milliseconds since January 1, 1970, 00:00:00 UTC.

Error Response

401 UNAUTHORIZED

Authorization fails.

403 FORBIDDEN

The permissions are not sufficient.

404 NOT FOUND

Ticket does not exist.

Clone this wiki locally