Get All Agents
curl --request GET \
--url https://api.getmalakai.com/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": "***"
}
]
}
Agents
Get All Agents
Retrieve a list of all existing agents.
GET
agents
/
user
Get All Agents
curl --request GET \
--url https://api.getmalakai.com/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": "***"
}
]
}
Headers
Your API key for authentication. Prefix with
Bearer .Your access token for authentication.
Response
An array containing all agent objects.
The unique identifier for the agent.
The full name of the agent.
The voice that the agent will use.
The language in which the agent will speak
{
"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": "***"
}
]
}
⌘I