---
name: thoughtly-numbers
description: Reserve a US phone number, bring an existing Telnyx number, or configure inbound calls on Thoughtly. Use when callers should be able to ring back, leave a message, or hear saved instructions.
---

# Thoughtly numbers and callbacks

A single outbound call can use the workspace default. A return call needs a dedicated, inbound-ready number. Use the connected Thoughtly origin, or `https://agents.thoughtly.com` for the public service. Check the number and carrier operations in `/openapi.json` for this environment. [Numbers guide](https://agents.thoughtly.com/docs#numbers-and-carriers)

1. Start with `list_phone_numbers`. If the workspace already owns a suitable number, offer to use it. For a new number, use `search_phone_numbers` for the requested area. Show the quoted setup fee, monthly rental, and expiry. Phone usage is billed separately.
2. When the owner approves a specific quote and the recurring charge, use `purchase_phone_number` with the quote ID and a stable idempotency key. Retain the order ID. Poll `get_number_order` and check the number's `inbound_ready` before sharing it for callbacks. If the purchase times out, recover the same order using the same key.
3. Use `configure_phone_number` to save the inbound prompt, greeting and voice. Read the existing settings first because an `inbound` update replaces that configuration. Set `request_instructions: true` when an online agent should supply instructions as a call arrives. The saved prompt handles a missed deadline. [Callback recipe](https://agents.thoughtly.com/recipes/handle-callback.md)

For bring-your-own-carrier (BYOC), use `connect_carrier` or `POST /v1/carriers` with the owner's active Telnyx number and its credential from a named secret binding. The owner pays their carrier directly. Check the returned routing status before advertising the number. [Carrier API](https://agents.thoughtly.com/docs?endpoint=connectCarrier#api-reference)
