Skip to main content
POST
/
v1
/
phone-number
/
import
Import Phone Number
curl --request POST \
  --url https://api.sigmamind.ai/v1/phone-number/import \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "phoneNumber": 14155552671,
  "trunkUsername": "username",
  "trunkPassword": "password",
  "terminationSipURI": "sip.telnyx.com",
  "friendlyName": "My Phone Number",
  "inboundAgentId": "awTw7UKhOsLGiDbt",
  "outboundAgentId": "awTw7UKhOsLGiDbt",
  "outboundPhoneNumber": 14155552671
}
'
{
  "sipPhoneNumber": 14155552671,
  "inboundAgentId": "D5D0p7TUs66TTAEAx",
  "outboundAgentId": "D5D0p7TUs66TTAEAx",
  "outboundPhoneNumber": 14155552671,
  "active": true,
  "terminationSipURI": "sip.telnyx.com",
  "friendlyName": "Support Line - US"
}

Authorizations

X-API-Key
string
header
required

API Key is required in header. You can find it in the settings

Body

application/json
phoneNumber
string
required

The phone number in +E.164 format. Required when bringing your own number.

Example:

14155552671

trunkUsername
string
required

The trunk username used for outbound calls. Must be set up in your provider account.

Example:

"username"

trunkPassword
string
required

The trunk password is used for outbound calls. Must be set up in your provider account.

Example:

"password"

terminationSipURI
string
required

The SIP URI for terminating calls, provided by the telecom provider.

Example:

"sip.telnyx.com"

friendlyName
string

A user-friendly label for the phone number.

Example:

"My Phone Number"

inboundAgentId
string

The inbound AI agent ID to be associated with this phone number.

Example:

"awTw7UKhOsLGiDbt"

outboundAgentId
string

The outbound AI agent ID to be associated with this phone number.

Example:

"awTw7UKhOsLGiDbt"

outboundPhoneNumber
string

The outbound phone number, in E.164 format, used for test calls.

Example:

14155552671

Response

OK

sipPhoneNumber
string

The caller’s phone number in E.164 format. This number must be obtained from SigmaMind or configured using SIP trunking with SigmaMind.

Example:

14155552671

inboundAgentId
string

Default agent ID assigned to handle inbound calls for this phone number.

Example:

"D5D0p7TUs66TTAEAx"

outboundAgentId
string

Default agent ID assigned to handle outbound calls for this phone number.

Example:

"D5D0p7TUs66TTAEAx"

outboundPhoneNumber
string

The default outbound phone number of the callee, represented in E.164 format

Example:

14155552671

active
boolean

Indicates whether the phone number is currently active and available for use.

Example:

true

terminationSipURI
string

The SIP URI of the phone number, provided by the service provider for call termination.

Example:

"sip.telnyx.com"

friendlyName
string

A user-friendly display name assigned to this phone number.

Example:

"Support Line - US"