Skip to content

Release an active number from the project

Request

With this endpoint, you can cancel your subscription for a specific phone number.

Security
Basic or OAuth2.0
Path
projectIdstringrequired

Found on your Sinch Customer Dashboard. Settings > Projects.

Example:YOUR_projectId
phoneNumberstringrequired

Output only. The phone number in E.164 format with leading +.

Default:"YOUR_selected_phoneNumber_from_search"
Example:+12025550134
curl -i -X POST \
  -u '<username>:<password>' \
  'https://numbers.api.sinch.com/v1/projects/YOUR_projectId/activeNumbers/+12025550134:release'

Responses

A successful response, or an Error.

Bodyapplication/json
phoneNumberstring(Phone Number)

The phone number in E.164 format with leading +. Example +12025550134.

Example:"+12025550134"
projectIdstring

Project ID. Your project ID can be found on your Sinch Customer Dashboard.

Example:"51bc3f40-f266-4ca8-8938-a1ed0ff32b9a"
displayNamestring

User supplied name for the phone number.

regionCodestring(Region Code)

ISO 3166-1 alpha-2 country code of the phone number. Example: US, GB or SE.

Example:"US"
typestring(Type)

The number type.

Enum ValueDescription
LOCAL

Numbers that are assigned to a specific geographic region.

MOBILE

Numbers that belong to a specific range.

TOLL_FREE

Numbers that are free of charge for the calling party but billed for all arriving calls.

capabilityArray of strings

The capability of the number.

Example:
[ "SMS" ]
moneyobject(Money)

An object giving details on currency code and the amount charged.

paymentIntervalMonthsinteger, (int32)read-only

How often the recurring price is charged in months.

nextChargeDatestring, (date-time)read-only

The date of the next charge.

expireAtstring, (date-time)read-only

The timestamp when the subscription will expire if an expiration date has been set.

smsConfigurationobject(SMS Configuration)

The current SMS configuration for this number.

Once the servicePlanId is sent, it enters scheduled provisioning.

The status of scheduled provisioning will show under a scheduledProvisioning object if it's still running. Once processed successfully, the servicePlanId sent will appear directly under the smsConfiguration object.

voiceConfigurationobject(VoiceConfiguration)
callbackUrlstring

The callback URL to be called for a rented number's provisioning / deprovisioning operations.

Example:"https://www.your-callback-server.com/callback"
Response
{ "phoneNumber": "+12025550134", "projectId": "51bc3f40-f266-4ca8-8938-a1ed0ff32b9a", "displayName": "MyPhoneNumber", "regionCode": "US", "type": "LOCAL", "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": { … }, "campaignId": "YOUR_campaign_id" }, "voiceConfiguration": { "type": "RTC", "lastUpdatedTime": "2024-09-24T14:15:22Z", "scheduledVoiceProvisioning": { … }, "appId": "YOUR_app_id" } }