Cancel Number Subscription

circle-info

"Cancel Number Subscription" API endpoint is deprecated, we suggest you to use Manage Endpoint Subscriptions APIs to cancel the subscription. You can use numberId as endpointId parameter and use main as a subscription name to achieve identical behavior.

Cancel Number Subscription

post
Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')

Path parameters
workspaceIdstring · uuidRequired

The ID for the workspace.

Example: d386a801-ee8d-4aba-a7e4-78671bd3b11e
numberIdstringRequired

The number/endpoint ID.

Example: e40ce70f-e7e0-45c0-9d64-2fc7d0401a16
Responses
chevron-right
200

Updated Number

application/json
typestring · enumOptional

The type of the number.

Possible values:
numberstring · min: 1 · max: 30Optional

The phone number in E.164 format.

Example: +14155552671
countrystring · iso3166-1Optional
idstring · uuidRequired

The ID of the number.

statusstring · enumRequired

The status of the number.

Possible values:
createdAtstring · date-timeRequired

Timestamp (UTC) when the number was created.

updatedAtstring · date-time · nullableRequired

Timestamp (UTC) when the number was last updated.

activatedAtstring · date-time · nullableOptional

Timestamp (UTC) of the last time the number was activated.

deactivatedAtstring · date-time · nullableOptional

Timestamp (UTC) of the last time the number was deactivated.

deactivatesAtstring · date-time · nullableOptional

Timestamp (UTC) when the number will be deactivated.

post
/workspaces/{workspaceId}/numbers/{numberId}/cancel-subscription

Last updated

Was this helpful?