Beyond mid-call and post-call SMS, you can send standalone messages via the API. Useful for appointment reminders, status updates, follow-ups — anything that doesn’t need a phone call.Documentation Index
Fetch the complete documentation index at: https://docs.nixflex.com/llms.txt
Use this file to discover all available pages before exploring further.
Send one message
| Field | Required | Notes |
|---|---|---|
agent_id | Yes | The agent this SMS belongs to (determines reply behaviour) |
to_number | Yes | Recipient in E.164 format |
from_number | Yes | One of your imported Twilio numbers |
body | Yes | The message text (max 1600 chars; longer is split) |
context_prompt | No | Custom instruction for the agent if the caller replies |
delivered, failed, etc.) will be reflected in the message record within ~30 seconds.
Reply handling
If the recipient replies to your SMS within 24 hours, the agent can automatically respond using the conversation context. The reply window:- Starts when you send the SMS
- Counted per recipient number
- Resets if you send another SMS to the same number
- Default 24 hours; configurable per agent up to 30 days
- Nixflex receives it via Twilio’s incoming SMS webhook
- Looks up the recent SMS to that number
- Uses the agent’s system prompt + the recent SMS context to compose a reply
- Sends the reply automatically
GET /v1/sms.
Custom reply context
For more control over how the agent replies, passcontext_prompt:
Disabling replies
If you want the SMS to be one-way (no auto-replies), set the agent’senable_sms_reply to false. Inbound replies are still received and logged but no automatic response is sent.
Tracking
Every SMS gets amessage_id you can use to fetch status:
status (queued, sent, delivered, failed), error code if any, and the conversation thread if replies happened.
Compliance
Pricing
SMS uses your Twilio account directly. Twilio charges per message at standard rates:- UK domestic: ~£0.04 per message
- US (after A2P): ~$0.0075 per segment
- International: varies by country