URL : api/emails-list

Method : GET

Query Parameters :

Parameter Type Possible Values Required/Optional Description
sort-field String name Optional Field name to sort
sort-order String asc, desc Optional Sorting order either ascending or descending
search-query String Optional Keyword to be searched in Email list page
limit Integer Optional Number of records to be displayed in each page
page Integer Optional Page number

Success Response:

{
  "success": true,
  "data": {
  "current_page": 1,
  "first_page_url": "http://localhost/faveo_sd/faveo-helpdesk-advance/public/api/emails-list?page=1",
  "from": 1,
  "last_page": 1,
  "last_page_url": "http://localhost/faveo_sd/faveo-helpdesk-advance/public/api/emails-list?page=1",
  "next_page_url": null,
  "path": "http://localhost/faveo_sd/faveo-helpdesk-advance/public/api/emails-list",
  "per_page": 10,
  "prev_page_url": null,
  "to": 2,
  "total": 2,
  "emails": [
    {
      "id": 2,
      "email_address": "kabhishek427.ak@gmail.com",
      "email_name": "Abhishek Kumar",
      "created_at": "2020-08-27 05:12:02",
      "updated_at": "2020-08-27 05:16:46",
      "sending_status": 1,
      "priority": {
        "priority_id": 9,
        "name": "Urgent"
      },
      "department": {
        "id": 1,
        "name": "Support",
        "form_identifier": "department_1"
      },
      "is_default": true
    },
    {
      "id": 3,
      "email_address": "abhishekkumar@iiitkalyani.ac.in",
      "email_name": "Abhishek Kumar Shashi",
      "created_at": "2020-09-02 10:04:21",
      "updated_at": "2020-09-02 10:04:21",
      "sending_status": 1,
      "priority": {
        "priority_id": 9,
        "name": "Urgent"
      },
      "department": {
        "id": 1,
        "name": "Support",
        "form_identifier": "department_1"
      },
      "is_default": false
    }
  ]}
}