You can use the Active Number API to manage numbers you own. Release numbers from projects or list all numbers assigned to a project.
Lists all active numbers for a project.
A successful response.
Array of objects (Active Number Response) List of numbers associated to the client project specified in | |||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||
nextPageToken | string (The token to be used for listing the next page.) | ||||||||||||||||||||||||||||||||||||||||
totalSize | integer <int32> (The maximum number of results returned.) |
400 Invalid Argument error
404 Not Found error
500 Internal Server error
{- "activeNumbers": [
- {
- "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": {
- "appId": "string",
- "scheduledVoiceProvisioning": {
- "appId": "string",
- "status": "WAITING",
- "lastUpdatedTime": "2019-08-24T14:15:22Z"
}, - "lastUpdatedTime": "2019-08-24T14:15:22Z"
},
}
], - "nextPageToken": "string",
- "totalSize": 0
}
Update an active phone number. You can perform the following updates:
displayName
parameter.smsConfiguration
configuration object. To unlink a number, submit the request with an empty string (””
) in the service plan ID or campaign ID fields.You can update both SMS and Voice in the same object by including both configuration objects. If you only need to update either Voice or SMS, simply omit the other object. If you pass an empty configuration object, the request will fail.
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 number body to be updated.
displayName | string User supplied name for the phone number. | ||||
object (SMS Configuration) The current SMS configuration for this number. Once the The status of scheduled provisioning will show under a | |||||
| |||||
object (Voice Configuration) The current voice configuration for this number. During scheduled provisioning, the app 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 (Voice Configuration) The current voice configuration for this number. During scheduled provisioning, the app 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
{- "displayName": "MyPhoneNumber",
- "smsConfiguration": {
- "servicePlanId": "string",
- "campaignId": "YOUR_campaignId_from_TCR"
}, - "voiceConfiguration": {
- "appId": "YOUR_Voice_appId"
},
}
{- "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": {
- "appId": "string",
- "scheduledVoiceProvisioning": {
- "appId": "string",
- "status": "WAITING",
- "lastUpdatedTime": "2019-08-24T14:15:22Z"
}, - "lastUpdatedTime": "2019-08-24T14:15:22Z"
},
}
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, 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 (Voice Configuration) The current voice configuration for this number. During scheduled provisioning, the app 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
{- "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": {
- "appId": "string",
- "scheduledVoiceProvisioning": {
- "appId": "string",
- "status": "WAITING",
- "lastUpdatedTime": "2019-08-24T14:15:22Z"
}, - "lastUpdatedTime": "2019-08-24T14:15:22Z"
},
}
With this endpoint, you can cancel your subscription for a specific phone number.
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, 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 (Voice Configuration) The current voice configuration for this number. During scheduled provisioning, the app 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
{- "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": {
- "appId": "string",
- "scheduledVoiceProvisioning": {
- "appId": "string",
- "status": "WAITING",
- "lastUpdatedTime": "2019-08-24T14:15:22Z"
}, - "lastUpdatedTime": "2019-08-24T14:15:22Z"
},
}