Skip to main content
POST
/
v2
/
twilio
/
fetch
/
callerids
Fetch Twilio Caller IDs
curl --request POST \
  --url https://app.closerx.ai/api/v2/twilio/fetch/callerids/ \
  --header 'Company-Name: <company-name>' \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '
{
  "account_sid": "<string>",
  "auth_token": "<string>"
}
'
{
  "caller_ids": [
    {
      "phone_number": "+919821985448",
      "friendly_name": "avc"
    },
    {
      "phone_number": "+918570904784",
      "friendly_name": "jkl"
    }
  ]
}

Authorizations

api_key
string
header
required

Headers

Company-Name
string
required

Schema name for multi-tenancy

Body

application/json
account_sid
string
required

Twilio Account SID

auth_token
string
required

Twilio Auth Token

Response

Caller IDs retrieved successfully

caller_ids
object[]

List of verified caller IDs from Twilio

Example:
[
{
"phone_number": "+919821985448",
"friendly_name": "avc"
},
{
"phone_number": "+918570904784",
"friendly_name": "jkl"
}
]