Skip to main content
POST
/
product
/
import-phone-number
Import a SIP phone number
curl --request POST \
  --url https://api.smallest.ai/atoms/v1/product/import-phone-number \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phoneNumber": "+14155551234",
  "sipTerminationUrl": "sip:trunk.your-provider.com",
  "name": "Main Support Line",
  "sipUsername": "",
  "sipPassword": ""
}
'
{
  "status": true,
  "data": {
    "_id": "507f1f77bcf86cd799439011",
    "productType": "custom",
    "isActive": true,
    "attributes": {
      "name": "Main Support Line",
      "phoneNumber": "+14155551234",
      "outboundSipTrunkId": "ST_xxxxxxxxxxxx",
      "inboundSipTrunkId": "ST_xxxxxxxxxxxx"
    },
    "agentId": null,
    "createdAt": "2026-03-16T12:00:00.000Z",
    "updatedAt": "2026-03-16T12:00:00.000Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
phoneNumber
string
required

Your existing phone number in E.164 format

Example:

"+14155551234"

sipTerminationUrl
string
required

The SIP URI where calls should be routed to your infrastructure

Example:

"sip:trunk.your-provider.com"

name
string

A friendly display name for this number

Example:

"Main Support Line"

sipUsername
string

Username for SIP authentication (if your trunk requires it)

Example:

"my-sip-user"

sipPassword
string

Password for SIP authentication (if your trunk requires it)

Example:

"my-sip-password"

Response

Phone number imported successfully

status
boolean
Example:

true

data
object