Endpoint

URL: https://api.interakt.ai/v1/public/assignment/
Authentication
Method: Basic Authentication
Header Authorization: Basic
Request Method: POST
Content-Type: application/json

Request Body
{
“user_phone_number”: “”,
“agent_email”: “”,
“wc_id”: “”
}

Response:
Status Codes:
200 OK : The request was successful.
401 Unauthorized : Authentication failed.
400 Bad Request : The request is malformed or missing required parameters.

500 Internal Server Error : An unexpected error occurred on the server.

Response Body (Successful)
{
“result”: true,
“message”: “Chat Assigned Successfully”
}
Response Body (Error)
{
“result”: false,
“message”: “Error_Message”

}

Example cURL Request

  curl --location 'https://apidev.interakt.ai/v1/public/assignment/' \
--header 'Authorization: Basic ' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_phone_number": "919876543210",
"agent_email": "test.agent@interakt.ai",
"wc_id": "582a75c8-d266-486f-a89b-b1582431377f"
}'  

Important Notes
● user_phone_number should be a combination of country-code and phone number
without + symbol . Example if country code is +91 and mobile number is 9876543210
then api input value is 919876543210 without any special characters.
● Replace the placeholders in the cURL command with actual values as needed.
● Ensure proper error handling in your code to handle potential error responses.
● Make sure to handle the authentication credentials securely