curl --location 'https://api.weya.live/backend/api/whatsapp/whatsapp-number' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Fetch phone number details successfully",
"errorMessage": null,
"data": [
{
"_id": "68920d9c56c1a123456789ab",
"phoneNumber": "+15551234567",
"provider": "AI_SENSY",
"plan": "basic",
"token": "YOUR_AISENSY_API_TOKEN",
"whatsappAgentId": { "_id": "68920ea456c1a123456789cd", "agentName": "Support Assistant" },
"createdAt": "2026-07-21T09:15:30.000Z"
}
]
}
Phone Numbers
Get WhatsApp Numbers
List the WhatsApp Business numbers you have connected.
GET
/
api
/
whatsapp
/
whatsapp-number
curl --location 'https://api.weya.live/backend/api/whatsapp/whatsapp-number' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Fetch phone number details successfully",
"errorMessage": null,
"data": [
{
"_id": "68920d9c56c1a123456789ab",
"phoneNumber": "+15551234567",
"provider": "AI_SENSY",
"plan": "basic",
"token": "YOUR_AISENSY_API_TOKEN",
"whatsappAgentId": { "_id": "68920ea456c1a123456789cd", "agentName": "Support Assistant" },
"createdAt": "2026-07-21T09:15:30.000Z"
}
]
}
Overview
List the WhatsApp numbers connected by the user who owns the API key, with the agent assigned to each. The list isn’t paginated.Prerequisites
- An API key for your workspace
Request
curl --location 'https://api.weya.live/backend/api/whatsapp/whatsapp-number' \
--header 'x-api-key: YOUR_API_KEY'
Response
{
"status": true,
"code": 200,
"message": "Fetch phone number details successfully",
"errorMessage": null,
"data": [
{
"_id": "68920d9c56c1a123456789ab",
"phoneNumber": "+15551234567",
"provider": "AI_SENSY",
"plan": "basic",
"token": "YOUR_AISENSY_API_TOKEN",
"whatsappAgentId": { "_id": "68920ea456c1a123456789cd", "agentName": "Support Assistant" },
"createdAt": "2026-07-21T09:15:30.000Z"
}
]
}
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?

