Zum Hauptinhalt springen
POST
/
v1
/
phone-numbers
/
import
Import Phone Number
curl --request POST \
  --url https://api.telli.com/v1/phone-numbers/import \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phoneNumber": "<string>",
  "terminationUri": "<string>",
  "authUsername": "<string>",
  "authPassword": "<string>"
}
'
{
  "type": "PhoneNumber",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "phoneNumber": "<string>",
  "inOutboundPool": true,
  "phoneNumberType": "local",
  "createdAt": "2023-11-07T05:31:56Z"
}

Autorisierungen

Authorization
string
header
erforderlich

API key must be provided as: Bearer <api_key>

Body

application/json
phoneNumber
string
erforderlich

Phone number in E.164 format (e.g. +4917642048466)

terminationUri
string
erforderlich

SIP termination URI for routing calls

authUsername
string
erforderlich

Username for SIP authentication

authPassword
string
erforderlich

Password for SIP authentication

Antwort

Phone number imported successfully

type
enum<string>

Resource type identifier

Verfügbare Optionen:
PhoneNumber
id
string<uuid>

Unique identifier for the phone number

phoneNumber
string

Phone number in E.164 format (e.g. +4917642048466)

inOutboundPool
boolean

Whether this phone number is available for outbound calls

phoneNumberType
enum<string> | null

Type of phone number (local or mobile)

Verfügbare Optionen:
local,
mobile,
null
createdAt
string<date-time>

When the phone number was added to the account