curl --request POST \
--url https://app.phonely.ai/api/get-agents \
--header 'Content-Type: application/json' \
--header 'X-Authorization: <api-key>' \
--data '
{
"uid": "<string>"
}
'[
{
"orgId": "<string>",
"name": "<string>"
}
]Retrieve information for all agents associated with the user
curl --request POST \
--url https://app.phonely.ai/api/get-agents \
--header 'Content-Type: application/json' \
--header 'X-Authorization: <api-key>' \
--data '
{
"uid": "<string>"
}
'[
{
"orgId": "<string>",
"name": "<string>"
}
]POST/api/get-agentsX-Authorization: Your API key (required)Content-Type: application/json{
"uid": "string"
}
uid (string, required): Your user ID[
{
"uid": "string",
"agentId": "string",
"name": "string",
"country": "string",
"businessPhoneNumber": "string"
}
]
400 Bad Request: Invalid request body401 Unauthorized: Invalid or missing API key500 Internal Server Error: Server errorcurl -X POST https://app.phonely.ai/api/get-agents \
-H "X-Authorization: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"uid": "user123"
}'