Skip to main content
Sends an SMS message via Twilio using a phone number on your account. The cost is automatically deducted from your balance.

Endpoint

POST /user/sms

Request

from
integer
required
ID of your phone number to send from. The number must be SMS-capable.
to
string
required
Recipient phone number in international format (e.g., +1234567890).
body
string
required
SMS message content. Maximum 300 characters.

Response

message
string
Confirmation message.
data
object
SMS record details.

Example

curl -X POST "https://portal.intellixent.ai/api/user/sms" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": 78,
    "to": "+1234567890",
    "body": "Hello! This is a message from Your Company. How can we help you today?"
  }'
201 Success
{
  "message": "SMS sent successfully",
  "data": {
    "id": 456,
    "phone_number_id": 78,
    "to": "+1234567890",
    "body": "Hello! This is a message from Your Company. How can we help you today?",
    "user_id": 1,
    "segments": 1,
    "segment_price": 0.0075,
    "total_cost": 0.0075,
    "status": "sent",
    "sms_sid": "SM1234567890abcdef1234567890abcdef",
    "created_at": "2025-08-04 15:30:00",
    "updated_at": "2025-08-04 15:30:02"
  }
}
400 Not SMS-capable
{
  "message": "From number is not SMS capable"
}
400 Insufficient balance
{
  "message": "Insufficient balance"
}
Long messages are split into multiple segments, each billed separately. Keep messages under 160 characters to stay within a single segment.