The POST
request allows you to create a new chat log entry in the system. You must provide a JSON body containing details about the chat log.
Endpoint:
POST https://crm.jaweb.me/api/
chatlog-create/
Request Headers #
Authorization: Token YOUR_API_KEY_HERE
Content-Type: application/json
Request Body #
Provide the chat log details in JSON format:
{
"name": "Joe Doe",
"isActive": true,"user_session_id":"session_wwq",
"company_username": "joedoe",
"mail":"[email protected]",
"country": "UAE",
"phone": "+
12782132122",
}
Example Request #
POST https://crm.jaweb.me/api/
chatlog-create/
Authorization:Token YOUR_API_KEY_HERE
Content-Type: application/json
{
"name": "Joe Doe",
"isActive": true,
"user_session_id":"session_wwq",
"company_username": "joedoe",
"mail":"[email protected]",
"country": "UAE",
"phone": "+12782132122",
}
Example Response #
{
"name": "Joe Doe",
"isActive": true,
"user_session_id":"session_wwq",
"company_username": "joedoe",
"mail":"[email protected]",
"country": "UAE",
"phone": "+12782132122",
}
Response Status Codes #
- 200 Created: The chat log entry was successfully created.
- 401 Unauthorized: The API key is invalid or not provided.
- 400 Bad Request: The request body is missing or contains invalid data.