Gets all the available chats in JSON Format

URL : /chat/api/chats/

Method : GET

Query Parameters :

Parameter Type Optional/Required Description
search_term string optional Search term to filter chat results
ids array optional ids of the chat service for filtering

Response :

	
{
  "success": true,
  "data": {
    "current_page": 1,
    "first_page_url": "http://localhost/public/chat/api/chats?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://localhost/public/chat/api/chats?page=1",
    "next_page_url": null,
    "path": "http://localhost/public/chat/api/chats",
    "per_page": 10,
    "prev_page_url": null,
    "to": 2,
    "total": 2,
    "chats": [
      {
        "id": 1,
        "name": "LivServ",
        "short": "liv_serv",
        "status": 0,
        "created_at": "2020-02-27 05:04:50",
        "updated_at": "2020-02-27 05:04:50",
        "url": null,
        "secret_key": null,
        "secret_key_required": 0,
        "department": "",
        "helptopic": ""
      },
      {
        "id": 2,
        "name": "Tawk",
        "short": "tawk",
        "status": 1,
        "created_at": "2020-02-27 05:04:50",
        "updated_at": "2020-02-27 05:20:54",
        "url": "http://localhost/public/chat/tawk/3/1",
        "secret_key": "7375b0dec60cdd9ddaa62fd8b9b54294ef1b7f99febf8d5d9fce022a8a10345e91f4fa79e4585ec8181c6974077d50f3",
        "secret_key_required": 1,
        "department": "{\"id\":3,\"name\":\"Operation\",\"nodes\":[]}",
        "helptopic": "{\"id\":1,\"name\":\"Support query\",\"nodes\":[]}"
      }
    ]
  }
}

Changes Status of the Chat Service

URL : /chat/api/status/{id}

Method : GET

Query Parameters :

Parameter Type Optional/Required Description
id string required id of the app

Response :

	
{"success":true,"message":"Status Changed Successfully."}

Updates the details of the chat service

URL : /chat/api/update/{id}

Method : GET

Query Parameters :

Parameter Type Optional/Required Description
id string required id of the app to be updated

Response :

	
{"success":true,"message":"Updated Successfully"}