URL : api/agent/ticket-threads/{ticketId}

Method : GET

Query Parameters :

Parameter Type Optional/Required Description
page integer Optional To get any page’s data.

If not passed then current page will be 1.

limit integer Optional Number of records that is needed to be fetched from DB.

If it is not passed, first 10 records will be returned.

 

Response :

{

   "success": true,

   "data": {

   "current_page": 1,

   "from": 1,

   "last_page": 1,

   "per_page": 15,

   "prev_page_url": null,

   "to": 5,

   "total": 5,

   "threads": [{

   "id": 2249,

   "user_id": null,

   "title": "Non corrupti adipisci ea.",

   "body": "Similique debitis quidem molestiae libero. Voluptatem qui animi cupiditate ut dolores voluptate quia. Veniam animi nihil voluptatibus.",

   "created_at": "2018-03-20 05:17:24",

   "attach": [{

"id": 2249,

   "name": "file.png",

   "file": //base 64 encoded image,

"type": "image/png"

},

{

"id": 2250,

   "name": "file2.png",

   "file": //base 64 encoded image,

"type": "image/png"

}

]

   }, {

   "id": 2250,

   "user_id": null,

   "title": "Voluptas vel harum ratione accusamus.",

   "body": "Dolorum ut tenetur cum. Repudiandae quas corrupti cum aliquid. Aut iure aperiam deserunt. Voluptate sint nihil libero porro quia incidunt.",

   "created_at": "2018-03-20 05:17:24",

   "attach": []

   }]

   }

}

 

Leave a Reply

Your email address will not be published. Required fields are marked *