Skip to main content
PUT
/
api
/
agents
/
{agent_id}
/
phone-number
Assign Phone Number
curl --request PUT \
  --url https://api.getello.ai/api/agents/{agent_id}/phone-number \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "phone_number": "786786709"
}
'
{
  "status": 200,
  "message": "Phone number assigned successfully",
  "data": {
    "agent_id": "786786778hj",
    "phone_number": "786786709",
    "assignment_status": "success"
  }
}

Authorizations

X-API-Key
string
header
required

Path Parameters

agent_id
string
required

Unique identifier of the agent to assign or update the phone number for.

Example:

"786786778hj"

Body

application/json
phone_number
string
required

The phone number to be assigned or updated for the agent.

Example:

"786786709"

Response

Phone number assigned or updated successfully

status
integer
Example:

200

message
string
Example:

"Phone number assigned successfully"

data
object
Example:
{
"agent_id": "786786778hj",
"phone_number": "786786709",
"assignment_status": "success"
}