curl --location 'https://api.weya.live/backend/api/whatsapp/get-whatsapp-agent' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Whatsapp agent fetched successfully",
"errorMessage": null,
"data": [
{
"_id": "6894a98a7fcde123456789ab",
"agentName": "Support Assistant",
"gender": "Female",
"systemMessage": "You are a helpful customer support assistant.",
"selectedLanguage": ["en-IN"],
"sessionTimeout": 30,
"phoneNumberId": "6891f1d0c45d123456789abc",
"createdAt": "2026-07-21T13:45:18.000Z",
"updatedAt": "2026-07-21T14:12:30.000Z"
}
]
}
WhatsApp
Get WhatsApp Agents
List your WhatsApp agents.
GET
/
api
/
whatsapp
/
get-whatsapp-agent
curl --location 'https://api.weya.live/backend/api/whatsapp/get-whatsapp-agent' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Whatsapp agent fetched successfully",
"errorMessage": null,
"data": [
{
"_id": "6894a98a7fcde123456789ab",
"agentName": "Support Assistant",
"gender": "Female",
"systemMessage": "You are a helpful customer support assistant.",
"selectedLanguage": ["en-IN"],
"sessionTimeout": 30,
"phoneNumberId": "6891f1d0c45d123456789abc",
"createdAt": "2026-07-21T13:45:18.000Z",
"updatedAt": "2026-07-21T14:12:30.000Z"
}
]
}
Overview
List the WhatsApp agents created by the user who owns the API key, most recently edited first. The list isn’t paginated. Templates aren’t included; use Get WhatsApp Agent By ID for the full configuration.Prerequisites
- An API key for your workspace
Request
curl --location 'https://api.weya.live/backend/api/whatsapp/get-whatsapp-agent' \
--header 'x-api-key: YOUR_API_KEY'
Response
{
"status": true,
"code": 200,
"message": "Whatsapp agent fetched successfully",
"errorMessage": null,
"data": [
{
"_id": "6894a98a7fcde123456789ab",
"agentName": "Support Assistant",
"gender": "Female",
"systemMessage": "You are a helpful customer support assistant.",
"selectedLanguage": ["en-IN"],
"sessionTimeout": 30,
"phoneNumberId": "6891f1d0c45d123456789abc",
"createdAt": "2026-07-21T13:45:18.000Z",
"updatedAt": "2026-07-21T14:12:30.000Z"
}
]
}
Your WhatsApp agents. When you have none, the message is
No whatsapp agent found and data is empty.Error Handling
- 401 Unauthorized – Missing or invalid API key.
- 429 Too Many Requests – More than 1,000 WhatsApp requests in 15 minutes from your IP address.
- 500 Internal Server Error – Unexpected server error.
Was this page helpful?

