Download OpenAPI specification:Download
You can use the Available Number API to search for available numbers or activate an available number.
Activate a phone number to use with SMS products, Voice products, or both.
You'll use smsConfiguration
to setup your number for SMS and voiceConfiguration
for Voice. To setup for both, add both objects. See the dropdown menu (just under language selection) for code samples.
Note: You cannot add both objects if you only need to configure one object. For example, if you only need to configure smsConfiguration
for SMS messaging, do not add the voiceConfiguration
object or it will result in an error.
projectId required | |
phoneNumber required | string Default: "YOUR_selected_phoneNumber_from_search" Output only. The phone number in E.164 format with leading Example: +12025550134 |
The request to rent a number.
object (SMS Configuration) The current SMS configuration for this number. Once the The status of scheduled provisioning will show under a | |||||
| |||||
object (VoiceConfiguration) The current voice configuration for this number. During scheduled provisioning, the app ID, service ID, or trunk ID value may be empty in a response if it is still processing or if it has failed. The status of scheduled provisioning will show under a | |||||
| |||||
callbackUrl | string The callback URL to be called for a rented number's provisioning / deprovisioning operations. |
A successful response, or an Error.
phoneNumber | string The phone number in E.164 format with leading | ||||||||||||||||||
projectId | string Project ID. Your project ID can be found on your Sinch Customer Dashboard. | ||||||||||||||||||
displayName | string User supplied name for the phone number. | ||||||||||||||||||
regionCode | string ISO 3166-1 alpha-2 country code of the phone number. Example US, UK or SE. | ||||||||||||||||||
type | string (Type) Default: "MOBILE" The number type.
| ||||||||||||||||||
capability | Array of strings (Capability) The capability of the number.
| ||||||||||||||||||
object (Money) An object giving details on currency code and the amount charged. | |||||||||||||||||||
| |||||||||||||||||||
paymentIntervalMonths | integer <int32> How often the recurring price is charged in months. | ||||||||||||||||||
nextChargeDate | string <date-time> The date of the next charge. | ||||||||||||||||||
expireAt | string <date-time> The timestamp when the subscription will expire if an expiration date has been set. | ||||||||||||||||||
object (SMS Configuration) The current SMS configuration for this number. Once the The status of scheduled provisioning will show under a | |||||||||||||||||||
| |||||||||||||||||||
object (VoiceConfiguration) The current voice configuration for this number. During scheduled provisioning, the app ID, service ID, or trunk ID value may be empty in a response if it is still processing or if it has failed. The status of scheduled provisioning will show under a | |||||||||||||||||||
| |||||||||||||||||||
callbackUrl | string The callback URL to be called for a rented number's provisioning / deprovisioning operations. |
400 Invalid Argument error
404 Not Found error
500 Internal Server error
{- "smsConfiguration": {
- "servicePlanId": "YOUR_SMS_servicePlanId"
}, - "voiceConfiguration": {
- "type": "RTC",
- "appId": "YOUR_Voice_appId"
},
}
{- "phoneNumber": "+12025550134",
- "projectId": "51bc3f40-f266-4ca8-8938-a1ed0ff32b9a",
- "displayName": "MyPhoneNumber",
- "regionCode": "US",
- "type": "MOBILE",
- "capability": [
- "SMS",
- "VOICE"
], - "money": {
- "currencyCode": "USD",
- "amount": "2.00"
}, - "paymentIntervalMonths": 0,
- "nextChargeDate": "2024-08-24T14:15:22Z",
- "expireAt": "2024-09-24T14:15:22Z",
- "smsConfiguration": {
- "servicePlanId": "YOUR_service_plan_id",
- "scheduledProvisioning": {
- "servicePlanId": "",
- "status": "WAITING",
- "lastUpdatedTime": "2024-08-04T14:15:22Z",
- "campaignId": "YOUR_campaign_id"
}, - "campaignId": "YOUR_campaign_id"
}, - "voiceConfiguration": {
- "type": "RTC",
- "lastUpdatedTime": "2024-09-24T14:15:22Z",
- "scheduledVoiceProvisioning": {
- "type": "RTC",
- "lastUpdatedTime": "2024-09-24T14:15:22Z",
- "status": "WAITING",
- "appId": "YOUR_app_id"
}, - "appId": "YOUR_app_id"
}
}
Activates a phone number that matches the search criteria provided in the request. Currently the rentAny operation works only for US LOCAL numbers
The request to search and rent a number that matches the criteria.
regionCode required | string Region code to filter by. ISO 3166-1 alpha-2 country code of the phone number. Example: | ||||
type required | string Number type to filter by. | ||||
object (Search Pattern) | |||||
capabilities | Array of strings Number capabilities to filter by, | ||||
object (SMS Configuration) The current SMS configuration for this number. Once the The status of scheduled provisioning will show under a | |||||
| |||||
object (VoiceConfiguration) The current voice configuration for this number. During scheduled provisioning, the app ID, service ID, or trunk ID value may be empty in a response if it is still processing or if it has failed. The status of scheduled provisioning will show under a | |||||
| |||||
callbackUrl | string The callback URL to be called for a rented number's provisioning / deprovisioning operations. |
A successful response, or an error.
phoneNumber | string The phone number in E.164 format with leading | ||||||||||||||||||
projectId | string Project ID. Your project ID can be found on your Sinch Customer Dashboard. | ||||||||||||||||||
displayName | string User supplied name for the phone number. | ||||||||||||||||||
regionCode | string ISO 3166-1 alpha-2 country code of the phone number. Example US, UK or SE. | ||||||||||||||||||
type | string (Type) Default: "MOBILE" The number type.
| ||||||||||||||||||
capability | Array of strings (Capability) The capability of the number.
| ||||||||||||||||||
object (Money) An object giving details on currency code and the amount charged. | |||||||||||||||||||
| |||||||||||||||||||
paymentIntervalMonths | integer <int32> How often the recurring price is charged in months. | ||||||||||||||||||
nextChargeDate | string <date-time> The date of the next charge. | ||||||||||||||||||
expireAt | string <date-time> The timestamp when the subscription will expire if an expiration date has been set. | ||||||||||||||||||
object (SMS Configuration) The current SMS configuration for this number. Once the The status of scheduled provisioning will show under a | |||||||||||||||||||
| |||||||||||||||||||
object (VoiceConfiguration) The current voice configuration for this number. During scheduled provisioning, the app ID, service ID, or trunk ID value may be empty in a response if it is still processing or if it has failed. The status of scheduled provisioning will show under a | |||||||||||||||||||
| |||||||||||||||||||
callbackUrl | string The callback URL to be called for a rented number's provisioning / deprovisioning operations. |
400 Invalid Argument error
404 Not Found error
500 Internal Server error
{- "regionCode": "US",
- "type": "LOCAL",
- "capabilities": [
- "SMS"
], - "numberPattern": {
- "pattern": "+1208",
- "searchPattern": "START"
}, - "smsConfiguration": {
- "servicePlanId": "YOUR_SMS_servicePlanId",
- "campaignId": "YOUR_campaignId_from_TCR"
},
}
{- "phoneNumber": "+12025550134",
- "projectId": "51bc3f40-f266-4ca8-8938-a1ed0ff32b9a",
- "displayName": "string",
- "regionCode": "US",
- "type": "MOBILE",
- "capability": [
- "SMS"
], - "money": {
- "currencyCode": "USD",
- "amount": "2.00"
}, - "paymentIntervalMonths": 0,
- "nextChargeDate": "2019-08-24T14:15:22Z",
- "expireAt": "2019-08-24T14:15:22Z",
- "smsConfiguration": {
- "servicePlanId": "string",
- "scheduledProvisioning": {
- "servicePlanId": "8200000f74924bd6800000b212f00000",
- "status": "WAITING",
- "lastUpdatedTime": "2019-08-24T14:15:22Z",
- "campaignId": "string",
- "errorCodes": [
- "PARTNER_SERVICE_UNAVAILABLE"
]
}, - "campaignId": "string"
}, - "voiceConfiguration": {
- "type": "RTC",
- "lastUpdatedTime": "2019-08-24T14:15:22Z",
- "scheduledVoiceProvisioning": {
- "type": "RTC",
- "lastUpdatedTime": "2019-08-24T14:15:22Z",
- "status": "WAITING",
- "trunkId": "string"
}, - "appId": "string"
},
}
Search for available phone numbers that are available for you to activate. You can filter by any property on the available number resource.
When searching, indicate the capability
of the number in the array as SMS
and/or VOICE
. To search for a number capable of both, list both SMS
and VOICE
.
regionCode required | string Region code to filter by. ISO 3166-1 alpha-2 country code of the phone number. Example: US, GB or SE. Example: regionCode=US | ||||||||
type required | string Number type to filter by. Options include,
Example: type=LOCAL | ||||||||
numberPattern.pattern | string Sequence of digits to search for. If you prefer or need certain digits in sequential order, you can enter the sequence of numbers here. For example, | ||||||||
numberPattern.searchPattern | string Search pattern to apply. The options are,
| ||||||||
capabilities | Array of strings Number capabilities to filter by SMS and/or VOICE.
| ||||||||
size | integer <int32> Optional. The maximum number of items to return. Example: size=3 |
A successful response.
Array of objects (Available Number) List of available phone numbers. | |||||||||||||||||||||||||||||||
Array
|
400 Invalid Argument error
404 Not Found error
500 Internal Server error
{- "availableNumbers": [
- {
- "phoneNumber": "+12025550134",
- "regionCode": "US",
- "type": "MOBILE",
- "capability": [
- "SMS",
- "VOICE"
], - "setupPrice": {
- "currencyCode": "USD",
- "amount": "2.00"
}, - "monthlyPrice": {
- "currencyCode": "USD",
- "amount": "2.00"
}, - "paymentIntervalMonths": 0,
- "supportingDocumentationRequired": true
}
]
}
This endpoint allows you to enter a specific phone number to check if it's available for use. A 200 response will return the number's capability, setup costs, monthly costs and if supporting documentation is required.
projectId required | |
phoneNumber required | string Default: "YOUR_selected_phoneNumber_from_search" Output only. The phone number in E.164 format with leading Example: +12025550134 |
A successful response.
phoneNumber | string The phone number in E.164 format with leading | ||||||||
regionCode | string ISO 3166-1 alpha-2 country code of the phone number. Example: US, UK or SE. | ||||||||
type | string (Type) Default: "MOBILE" The number type.
| ||||||||
capability | Array of strings (Capability) The capability of the number.
| ||||||||
object (Money) An object giving details on currency code and the amount charged. | |||||||||
| |||||||||
object (Money) An object giving details on currency code and the amount charged. | |||||||||
| |||||||||
paymentIntervalMonths | integer <int32> How often the recurring price is charged in months. | ||||||||
supportingDocumentationRequired | boolean Whether or not supplementary documentation will be required to complete the number rental. |
{- "phoneNumber": "+12025550134",
- "regionCode": "US",
- "type": "MOBILE",
- "capability": [
- "SMS",
- "VOICE"
], - "setupPrice": {
- "currencyCode": "USD",
- "amount": "2.00"
}, - "monthlyPrice": {
- "currencyCode": "USD",
- "amount": "2.00"
}, - "paymentIntervalMonths": 0,
- "supportingDocumentationRequired": true
}