curl --request GET \
--url https://api.getmalakai.com/api/api/agents/user \
--header 'Authorization: <authorization>' \
--header 'x-access-token: <x-access-token>'{
"responseCode": 2000,
"message": "Agents fetched successfully",
"data": [
{
"id": "***",
"agent_name": "Andrew Hamilton",
"voice_id": "***",
"language": "***",
"template_id": null,
"conversation": null,
"user_id": "***",
"opening_message": "Thank you for calling. How can I assist you today?",
"qualification_scenario": "The caller needs to be transferred to the appropriate department based on their request.",
"goals": "Determine which department the caller needs to be transferred to and complete the transfer efficiently.",
"background": "The agent should be familiar with the different departments and their responsibilities in order to direct the caller to the right place.",
"example_scenario": "Agent: Thank you for calling. How can I assist you today? Caller: I need to speak with someone in the sales department. Agent: Okay, let me transfer you to our sales department. One moment please. [Transfer to sales department]",
"img_url": "",
"negative_prompt": "none",
"created_at": "***",
"updated_at": "***"
}
]
}
Retrieve a list of all existing agents.
curl --request GET \
--url https://api.getmalakai.com/api/api/agents/user \
--header 'Authorization: <authorization>' \
--header 'x-access-token: <x-access-token>'{
"responseCode": 2000,
"message": "Agents fetched successfully",
"data": [
{
"id": "***",
"agent_name": "Andrew Hamilton",
"voice_id": "***",
"language": "***",
"template_id": null,
"conversation": null,
"user_id": "***",
"opening_message": "Thank you for calling. How can I assist you today?",
"qualification_scenario": "The caller needs to be transferred to the appropriate department based on their request.",
"goals": "Determine which department the caller needs to be transferred to and complete the transfer efficiently.",
"background": "The agent should be familiar with the different departments and their responsibilities in order to direct the caller to the right place.",
"example_scenario": "Agent: Thank you for calling. How can I assist you today? Caller: I need to speak with someone in the sales department. Agent: Okay, let me transfer you to our sales department. One moment please. [Transfer to sales department]",
"img_url": "",
"negative_prompt": "none",
"created_at": "***",
"updated_at": "***"
}
]
}
Bearer .{
"responseCode": 2000,
"message": "Agents fetched successfully",
"data": [
{
"id": "***",
"agent_name": "Andrew Hamilton",
"voice_id": "***",
"language": "***",
"template_id": null,
"conversation": null,
"user_id": "***",
"opening_message": "Thank you for calling. How can I assist you today?",
"qualification_scenario": "The caller needs to be transferred to the appropriate department based on their request.",
"goals": "Determine which department the caller needs to be transferred to and complete the transfer efficiently.",
"background": "The agent should be familiar with the different departments and their responsibilities in order to direct the caller to the right place.",
"example_scenario": "Agent: Thank you for calling. How can I assist you today? Caller: I need to speak with someone in the sales department. Agent: Okay, let me transfer you to our sales department. One moment please. [Transfer to sales department]",
"img_url": "",
"negative_prompt": "none",
"created_at": "***",
"updated_at": "***"
}
]
}