Skip to content
Phone Numbers

DELETEhttps://core-api.heysadie.ai/phone-numbers/{id}

id success data status phoneNumberId phoneNumber metadata timestamp version path error code message details field

Delete phone number

Releases a phone number from your tenant account and stops all associated billing. **Process:** 1. Validates ownership - ensures the phone number belongs to your tenant 2. Unlinks assistant - removes the phone number from any associated assistant 3. Releases from Twilio - stops billing and returns the number to inventory 4. Cleans database - marks the number as deleted in your account **Important:** - Once released, the phone number becomes available for other customers to purchase - Billing stops immediately upon successful Twilio release - If Twilio release fails, the database record is still marked deleted; manual cleanup on the provider side may be required **Response:** The response includes status information confirming the release.

Try it in the API Explorer

Example request

Terminal
curl -X DELETE "https://core-api.heysadie.ai/phone-numbers/PHONE_NUMBER_ID" \
  -H "Authorization: ApiKey YOUR_API_KEY"

Authentication

Authenticate with an API key in the Authorization header using the ApiKey scheme — see Authentication for how keys work and where to get them.

Authorizationstringrequired

API key in the ApiKey scheme: ApiKey YOUR_API_KEY. Tenant keys authorize their own tenant; organization keys can act on any tenant in the organization.

X-Tenant-Idstring (uuid)optional

Required when authenticating with an organization key — selects the tenant the request acts on. Omit with tenant keys.

Request

Path parameters

idstringrequired

The resource's UUID.

Responses

200
successbooleanrequired
dataobjectoptional
Show 3 child properties
statusstringrequired

Release status

phoneNumberIdstringrequired

ID of the released phone number

phoneNumberstringrequired

The phone number that was released

metadataobjectoptional
Show 3 child properties
timestampstringrequired
versionstringrequired
pathstringoptional
400
successbooleanrequired
errorobjectoptional
Show 3 child properties
codeenumrequired
Allowed values:"VALIDATION_ERROR"
messagestringrequired
detailsobject[]optional
Show 2 item properties
fieldstringrequired
messagestringrequired
metadataobjectoptional
Show 3 child properties
timestampstringrequired
versionstringrequired
pathstringoptional
401
successbooleanrequired
errorobjectoptional
Show 2 child properties
codeenumrequired
Allowed values:"UNAUTHORIZED"
messagestringrequired
metadataobjectoptional
Show 3 child properties
timestampstringrequired
versionstringrequired
pathstringoptional
403
successbooleanrequired
errorobjectoptional
Show 2 child properties
codeenumrequired
Allowed values:"FORBIDDEN"
messagestringrequired
metadataobjectoptional
Show 3 child properties
timestampstringrequired
versionstringrequired
pathstringoptional
404
successbooleanrequired
errorobjectoptional
Show 2 child properties
codeenumrequired
Allowed values:"RESOURCE_NOT_FOUND"
messagestringrequired
metadataobjectoptional
Show 3 child properties
timestampstringrequired
versionstringrequired
pathstringoptional
500
successbooleanrequired
errorobjectoptional
Show 2 child properties
codeenumrequired
Allowed values:"INTERNAL_SERVER_ERROR"
messagestringrequired
metadataobjectoptional
Show 3 child properties
timestampstringrequired
versionstringrequired
pathstringoptional