Skip to main content

Cancel a Reservation

Cancel an active phone number reservation. The reserved number will be released back to the available pool.

Endpoint

DELETE https://api.p.2chat.io/open/numbers/reservations/{uuid}

Authentication

Include your API key in the X-User-API-Key header. Learn more about authentication.

Parameters

FieldTypeRequiredDescription
uuidstring (path)YesThe reservation UUID (from the Reserve a Number or List Reservations endpoint)

Invocation

curl --location --request DELETE 'https://api.p.2chat.io/open/numbers/reservations/reservation-uuid-here' \
--header 'X-User-API-Key: your_api_key_here'

Response

Success

{
"success": true,
"message": "Reservation reservation-uuid-here cancelled successfully"
}

Error

{
"success": false,
"error": true,
"error_message": "Description of what went wrong"
}