With this endpoint, you can cancel your subscription for a specific phone number.
Found on your Sinch Customer Dashboard. Settings > Projects.
Output only. The phone number in E.164 format with leading +.
- Global APIhttps://numbers.api.sinch.com/v1/projects/{projectId}/activeNumbers/{phoneNumber}:release
curl -i -X POST \
-u '<username>:<password>' \
'https://numbers.api.sinch.com/v1/projects/YOUR_projectId/activeNumbers/+12025550134:release'A successful response, or an Error.
The phone number in E.164 format with leading +. Example +12025550134.
Project ID. Your project ID can be found on your Sinch Customer Dashboard.
ISO 3166-1 alpha-2 country code of the phone number. Example: US, GB or SE.
The number type.
| Enum Value | Description |
|---|---|
| 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. |
The timestamp when the subscription will expire if an expiration date has been set.
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.
{ "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" } }