Create Phone Number
Purchases and provisions a new phone number for your account. Provide a specific phoneNumber in +E.164 format, or a countryCode (optionally areaCode) to auto-select one. Returns the provisioned number, including its sipPhoneNumber for subsequent get, update, and delete calls.
Authorizations
Authenticate every request by passing your API key in the X-API-Key header. To get your key, go to Dashboard → API Keys and create or copy your Production API key.
Body
Request body to purchase and provision a new phone number through SigmaMind. Either phoneNumber or countryCode must be provided. Supply phoneNumber to purchase a specific number, or supply countryCode (with optional areaCode) to let the system auto-select an available number in that region.
Human-readable label for this phone number. Used to identify it in listings and dashboards. If omitted, the number itself is used as the display name.
128"Support Line - US"
ISO 3166-1 alpha-2 country code that determines which country the number is purchased from. Required when phoneNumber is not provided — the system selects an available number in this country. Ignored when phoneNumber is explicitly specified. Must be exactly two uppercase letters (e.g., 'US', 'IN', 'GB').
^[A-Z]{2}$"US"
Preferred area or region code used to narrow down number selection within the specified country. Optional — only considered when countryCode is provided and phoneNumber is omitted. If no number is available in this area code, the system selects the nearest available match.
100 <= x <= 99999415
Specific phone number to purchase, in +E.164 format (e.g., +14155552671). When provided, the system attempts to purchase exactly this number. Either this field or countryCode must be supplied — both cannot be omitted. If omitted, the system auto-selects an available number based on countryCode and areaCode.
^\+[1-9][0-9]{6,14}$"+14155552671"
Unique identifier of the agent that will handle inbound calls received on this number. When a call arrives at this number, it is routed to this agent automatically. If omitted, inbound calls will not be handled by an agent until one is assigned.
64"awTw7UKhOsLGiDbt"
Unique identifier of the agent that will handle outbound calls made from this number. When this number is used as the caller ID in an outbound call, this agent manages the conversation. If omitted, the agent must be specified explicitly at call creation time.
64"awTw7UKhOsLGiDbt"
Default destination number dialled during test calls initiated from this phone number, in +E.164 format. Used to verify the number is working correctly without targeting a real contact. Must be a valid number capable of receiving calls. If omitted, test calls cannot be placed until this is configured.
^\+[1-9][0-9]{6,14}$"+14155552671"
Response
Created
The caller’s phone number in +E.164 format. This number must be obtained from SigmaMind or configured using SIP trunking with SigmaMind.
"+14155552671"
The service provider associated with the phone number.
twilio, telnyx, byo "twilio"
Default agent ID assigned to handle inbound calls for this phone number.
"agent_D5D0p7TUs66TTAEAx"
Default agent ID assigned to handle outbound calls for this phone number.
"agent_D5D0p7TUs66TTAEAx"
The default outbound phone number of the callee, represented in +E.164 format
"+14155552671"
Indicates whether the phone number is currently active and available for use.
true
A user-friendly display name assigned to this phone number.
"Support Line - US"