Phone numbers
Phone numbers are SMS- and voice-enabled numbers provisioned through Twilio. You can provision new numbers, attach them to agents, list existing numbers, retrieve messages for a number, and release numbers when no longer needed.
Create number
Provision a new SMS-enabled phone number.
Request body
Example
List numbers
List all phone numbers for this project.
Query parameters
Example
Delete number (release)
Release (delete) a phone number.
This action:
- Releases the number from Twilio (the number goes back to Twilio’s pool)
- Marks the number as
"released"in the database - Keeps all messages and conversation history for audit purposes
This action is irreversible. The number cannot be recovered once released.
Example
Get messages for number
Get messages for a specific phone number. Supports cursor-based pagination via before/after timestamps.
