The GET
request allows you to fetch chat logs from the API
Endpoint:
GET https://crm.jaweb.me/api/
chatlogs-get/
Request Headers #
Authorization: Token YOUR_API_KEY_HERE
Content-Type: application/json
(optional but recommended)
Example Request #
GET https://crm.jaweb.me/api/chatlogs-get/
Authorization:Token YOUR_API_KEY_HERE
Content-Type: application/json
Example Response #
[
{
"user_session_id": "session_ww1223",
"mail": "[email protected]",
"company_username": "joedoe",
"id": "1",
"isActive": true,
"name": "Joe Doe",
"country": "UAE",
"phone": "+12782132122",
"date": "2024-10-09T10:00:00Z",
"assigned": false,
"status": "active",
"unread": 2,
"disable_chatbot": false,
"user": 1,
},
]
Response Status Codes #
- 200 OK: The request was successful, and chat logs are returned.
- 401 Unauthorized: The API key is invalid or not provided.
- 400 Bad Request: Incorrect or missing parameters