POST
/
get-agent
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>"
}

Authorizations

X-Authorization
string
header
required

Body

application/json
uid
string
required

User ID

agentId
string
required

Agent ID

Response

200
application/json
Successful response
uid
string

User ID

agentId
string

Agent ID

name
string

Agent name

country
string | null

Country code

businessPhoneNumber
string | null

Business phone number