Skip to main content
POST
Cancel a number release
Cancels a pending number release during the 24-hour cooldown and restores the number to active.
Cancelling a pending release refunds the full release fee to your account balance. The response reports the refund in refund_amount and currency.
You can cancel only while the number is in pending_release. After the 24-hour cooldown ends, this endpoint returns 400 and recovery requires manual intervention.

Authentication

The API playground uses the same authentication fields as the other Vobiz API pages:
  • X-Auth-ID - Your account Auth ID.
  • X-Auth-Token - Your account Auth Token.
The endpoint also accepts HTTP Basic authentication in direct requests. Use your Auth ID as the username and your Auth Token as the password, as shown in the cURL example below.
Do not send the Auth Token as Authorization: Bearer {auth_token}. Bearer authentication is for JWT access tokens and returns 401 Invalid token when used with an account Auth Token.

Path parameters

Request

Behavior

When the number belongs to your account and is still in pending_release, Vobiz:
  1. Verifies that your account owns the number.
  2. Changes its status from pending_release to active and clears the cooldown timer.
  3. Refunds the release fee to your account balance.
  4. Returns 200 OK.
The original release already detached the trunk and voice application. Cancellation does not re-attach them. Assign the number to a trunk or attach it to an application before routing calls again.

Responses

Release cancelled and refunded

Response - 200 OK

Number restored but refund failed

The number is active even when the refund fails. Contact Vobiz Support with the number and account details.
Response - 200 OK

Error examples

Authorizations

X-Auth-ID
string
header
required

Your Vobiz account Auth ID

X-Auth-Token
string
header
required

Your Vobiz account Auth Token

Path Parameters

account_id
string
required

Your account Auth ID.

Example:

"MA_XXXXXX"

e164
string
required

The URL-encoded phone number in E.164 format. Encode + as %2B.

Example:

"%2B919876543210"

Response

Release cancelled and number restored to active

message
string
required
status
enum<string>
required
Available options:
active
currency
string
refund_amount
number
refund_status
enum<string>
Available options:
success,
failed
refund_error
string

Present when the refund could not be processed.