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": {
- "type": "RTC",
- "lastUpdatedTime": "2019-08-24T14:15:22Z",
- "scheduledVoiceProvisioning": {
- "type": "RTC",
- "lastUpdatedTime": "2019-08-24T14:15:22Z",
- "status": "WAITING",
- "trunkId": "string"
}, - "appId": "string"
},
}
], - "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 (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
{- "displayName": "MyPhoneNumber",
- "smsConfiguration": {
- "servicePlanId": "string",
- "campaignId": "YOUR_campaignId_from_TCR"
}, - "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"
}
}
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 (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
{- "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"
}
}
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 (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
{- "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"
}
}
With this endpoint, you can retrieve the emergency address associated with this 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.
streetNumber | string The street number for the emergency address. |
streetInfo | string The street name of the emergency location. |
location | string The location for address. |
city | string The city of the emergency location. |
state | string The state or province of the emergency location. |
postalCode | string The postal code of the emergency location. |
postalCodePlusFour | string The postal code of the emergency location. |
400 Invalid Argument error
404 Not Found error
500 Internal Server error
{- "streetNumber": "12345",
- "streetInfo": "Main St",
- "location": "Apt 5",
- "city": "Springfield",
- "state": "IL",
- "postalCode": "62701",
- "postalCodePlusFour": "1234"
}
With this endpoint, you can provision an emergency address associated with this 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 |
Request to provision an emergency address for a number.
displayName required | string Name for emergency address. | ||||||||||||||
required | object | ||||||||||||||
|
A successful response.
streetNumber | string The street number for the emergency address. |
streetInfo | string The street name of the emergency location. |
location | string The location for address. |
city | string The city of the emergency location. |
state | string The state or province of the emergency location. |
postalCode | string The postal code of the emergency location. |
postalCodePlusFour | string The postal code of the emergency location. |
400 Invalid Argument error
404 Not Found error
500 Internal Server error
{- "displayName": "New emergency address",
- "address": {
- "streetNumber": "12345",
- "streetInfo": "Main St",
- "city": "Springfield",
- "state": "IL",
- "postalCode": "62701"
}
}
{- "streetNumber": "12345",
- "streetInfo": "Main St",
- "location": "Apt 5",
- "city": "Springfield",
- "state": "IL",
- "postalCode": "62701",
- "postalCodePlusFour": "1234"
}
With this endpoint, you can deprovision the emergency address associated with this 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
400 Invalid Argument error
404 Not Found error
500 Internal Server error
{- "error": {
- "code": 400,
- "message": "string",
- "status": "INVALID_ARGUMENT",
- "details": [
- {
- "type": "BadRequest",
- "fieldViolations": [
- {
- "field": "string",
- "description": "string"
}
]
}
]
}
}
With this endpoint, you can validate the emergency address associated with this 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 |
Request to validate an emergency address for a number.
required | object | ||||||||||||||
| |||||||||||||||
displayName required | string Name for emergency address. |
A successful response, or an error
phoneNumber | string The phone number in E.164 format with leading | ||||||||||||||
displayName | string User supplied name for the phone number. | ||||||||||||||
object (Emergency Address Response) Response object containing details of the emergency address. | |||||||||||||||
| |||||||||||||||
validationResult | string (AddressValidationResultCode) Enum representing the result of address validation.
| ||||||||||||||
validationMessage | string Validation result message | ||||||||||||||
object (Emergency Address Response) Response object containing details of the emergency address. | |||||||||||||||
| |||||||||||||||
Array of objects (Emergency Address Response) List of candidate addresses (only available if validationResult == NO_MATCH) | |||||||||||||||
Array
|
400 Invalid Argument error
404 Not Found error
500 Internal Server error
{- "displayName": "User Name",
- "address": {
- "streetNumber": "12345",
- "streetInfo": "Main St",
- "city": "Springfield",
- "state": "IL",
- "postalCode": "62701"
}
}
{- "phoneNumber": "+12025550134",
- "displayName": "User Name",
- "validatedAddress": {
- "streetNumber": "12345",
- "streetInfo": "Main St",
- "location": "Apt 5",
- "city": "Springfield",
- "state": "IL",
- "postalCode": "62701",
- "postalCodePlusFour": "1234"
}, - "validationResult": "EXACT_MATCH",
- "validationMessage": "Address is a perfect match",
- "correctedAddress": { },
- "candidateAddresses": [ ]
}