Skip to main content
POST
/
agents
/
{id}
/
phone-numbers
Add Phone Number
curl --request POST \
  --url https://api.revring.ai/v1/agents/{id}/phone-numbers \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "e164": "<string>"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "e164": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Generate API keys from the RevRing dashboard.

Path Parameters

id
string<uuid>
required

Agent ID

Body

application/json
e164
string
required

Phone number in E.164 format

Response

Phone number added

data
object