POST /v1/sms
Sends a single SMS via your Twilio number. Useful for one-off messages, status updates, or reminders that don’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.
| Field | Type | Required | Notes |
|---|---|---|---|
agent_id | string | Yes | Agent that this SMS is associated with |
to_number | string | Yes | Recipient in E.164 |
from_number | string | Yes | Your imported Twilio number |
body | string | Yes | Message text (max 1600 chars; longer is split) |
context_prompt | string | No | Custom instruction for the agent if recipient replies |
metadata | object | No | Echoed in delivery webhook |
201 Created:
delivered, failed) reflects in the message record within ~30 seconds.
| Code | Cause |
|---|---|
from_number_not_owned | from_number not in your account |
message_too_long | Body over 1600 chars |
sms_not_supported_in_region | US number without A2P 10DLC |
recipient_unsubscribed | Recipient previously sent STOP |