curl --request POST \
--url https://app.phonely.ai/api/get-agent \
--header 'Content-Type: application/json' \
--header 'X-Authorization: <api-key>' \
--data '
{
"uid": "<string>",
"agentId": "<string>"
}
'{
"uid": "<string>",
"agentId": "<string>",
"name": "<string>",
"country": "<string>",
"businessPhoneNumber": "<string>"
}Retrieve agent information based on the provided user ID and agent ID
curl --request POST \
--url https://app.phonely.ai/api/get-agent \
--header 'Content-Type: application/json' \
--header 'X-Authorization: <api-key>' \
--data '
{
"uid": "<string>",
"agentId": "<string>"
}
'{
"uid": "<string>",
"agentId": "<string>",
"name": "<string>",
"country": "<string>",
"businessPhoneNumber": "<string>"
}POST/api/get-agentX-Authorization: Your API key (required)Content-Type: application/json{
"uid": "string",
"agentId": "string"
}
uid (string, required): Your user IDagentId (string, required): The ID of the agent to retrieve{
"uid": "string",
"agentId": "string",
"name": "string",
"country": "string",
"businessPhoneNumber": "string"
}
400 Bad Request: Invalid request body401 Unauthorized: Invalid or missing API key, or insufficient permissions500 Internal Server Error: Server errorcurl -X POST https://app.phonely.ai/api/get-agent \
-H "X-Authorization: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"uid": "user123",
"agentId": "agent456"
}'