Skip to main content
POST
/
utils
/
import-twilio-number
Import a Twilio number
curl --request POST \
  --url https://eu-cloudflare.vg-stuff.com/utils/import-twilio-number \
  --header 'Content-Type: application/json' \
  --data '
{
  "twilioNumber": "<string>",
  "twilioAccountSid": "<string>",
  "twilioAccountAuthToken": "<string>",
  "twilioCallerId": "<string>",
  "workspaceId": "<string>",
  "agentId": "<string>",
  "capabilities": [
    "voice",
    "sms"
  ]
}
'
{
  "phoneNumber": "<string>",
  "phoneNumberSid": "<string>",
  "message": "<string>"
}

Example Request

{
  "twilioNumber": "+14155551234",
  "twilioAccountSid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "twilioAccountAuthToken": "your-auth-token",
  "twilioCallerId": "PNxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "agentId": "your-agent-id"
}
You need your Twilio Account SID, Auth Token, and the phone number’s SID from your Twilio Console.
Import numbers if you already have Twilio phone numbers you want to use with your AI agents.

Body

application/json
twilioNumber
string
required
Minimum string length: 10
Pattern: ^\+
twilioAccountSid
string
required
twilioAccountAuthToken
string
required
twilioCallerId
string
required
workspaceId
string
agentId
string
capabilities
enum<string>[]
Available options:
sms,
voice

Response

Successful response

phoneNumber
string
required
phoneNumberSid
string
required
message
string
required