---
name: thoughtly-sms
description: Send a consented US text, read delivery receipts or replies, and register a workspace sender with Thoughtly. Use for one-to-one SMS and short text conversations.
---

# Thoughtly text messages

Use the connected Thoughtly origin, or `https://agents.thoughtly.com` for the public service. Check `POST /v1/messages` in its `/openapi.json` and use `list_phone_numbers` to find an owned, SMS-ready sender. Sending requires a funded wallet. [Messaging guide](https://agents.thoughtly.com/docs#messages)

Thoughtly charges $0.01 for each inbound or outbound segment. On managed numbers, add twice the actual carrier bill, including carrier fees. On BYOC numbers, the customer pays the carrier directly. Use `get_pricing` for managed estimates and `list_texts` for the final segment count and charge. [Pricing guide](https://agents.thoughtly.com/docs#pricing)

**Send an exact message.** Use `send_text` with `to`, `text`, a stable `idempotency_key`, and the recipient’s actual opt-in source in `consent` for a new contact. Use the wording the user approved. For a conversation goal, supply `prompt` in place of `text`. Over HTTP use `POST /v1/messages` with those message fields and an `Idempotency-Key` header. Reuse the original payload and key after a timeout.

**Track the result.** Report the returned state. Confirm delivery once the receipt says delivered. Read the thread with `list_texts`. Use `wait_for_events` on the `messages` channel for updates. Honor opt-outs and use the workspace’s sender policy for replies.

**Register a sender.** If there is no eligible sender, use `enable_texting` for an owned US local number and the customer's real brand, campaign, samples and opt-in flow. Show the owner the private review link for filing fees and approval. Resume an authorized message once `get_texting_registration` or `message.registration_ready` confirms readiness. [Registration recipe](https://agents.thoughtly.com/recipes/enable-texting.md)

**Route replies.** Use `configure_phone_number` with `sms.mode` set to `hosted` for a saved reply prompt, `notify` for human handoff, or `local` when a connected agent will respond. For `message.reply_requested`, read the thread, claim the event and use the claim token with `respond_to_event`. For `message.tool_requested`, return the authorized tool’s actual result. [Local events and claims](https://agents.thoughtly.com/skills/thoughtly-webhooks/SKILL.md)

For an approved post-call text, the [Agent Workers skill](https://agents.thoughtly.com/skills/thoughtly-agent-workers/SKILL.md) covers the hosted handler. Give it `messages:write` and an owner-approved `max_text_cost_usd`. Verify the proposed message in a fixture before activation. [Post-call text recipe](https://agents.thoughtly.com/recipes/after-call-text.md)
