Documentation
Numbers
Rent, connect, and configure sending and receiving SMS numbers.
Phone numbers define sender identity, inbound routing, compliance status, and messaging capabilities.
Start with a test sender, then register or connect a production sender before switching to Live.
Number record
{
"id": "num_123",
"number": "+15557654321",
"friendly_name": "Support line",
"capabilities": ["sms", "mms"],
"status": "active",
"inbound_webhook_url": "https://example.com/textree/inbound",
"compliance_status": "approved",
"created_at": "2026-04-28T14:00:00Z"
}
Setup flow
- Open Phone Numbers in the app.
- Choose
Buy numberorConnect existing number. - Add a friendly name so operators can recognize the sender.
- Configure the inbound webhook or fallback URL.
- Complete registration and compliance steps before live traffic.
Sender states
connected: saved in Textree and available for configured send paths.pending: waiting for registration, connection, or compliance review.disabled: not available for outbound sends.
If the messaging provider buys a line but inbound webhook configuration fails, Textree keeps the
number in pending so operators can fix routing before relying on inbound
replies.
API setup
The launch API exposes:
GET /api/v1/numberswithnumbers:readPOST /api/v1/numberswithnumbers:write
POST /api/v1/numbers accepts area_code, friendly_name, and optional
inbound_webhook_url. Live buys remain blocked unless the deployment explicitly
enables the live-number-buy guardrail.
Inbound routing
Inbound SMS received on a number can create or update:
- message logs
- conversation threads
- contact history
- customer webhook deliveries
- AI handoff state
If an inbound webhook URL is missing, the message is still logged in Textree, but your external application will not receive the event until an endpoint is configured.