Skip to main content
GET
https://api.getmalakai.com/api/
/
api
/
agents
/
user
Get All 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": "***"
        }
    ]
}

Headers

Authorization
string
required
Your API key for authentication. Prefix with Bearer .
x-access-token
string
required
Your access token for authentication.

Response

data
object[]
An array containing all agent objects.
data[].id
string
The unique identifier for the agent.
data[].agent_name
string
The full name of the agent.
data[].voice_id
string
The voice that the agent will use.
data[].language
string
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": "***"
        }
    ]
}