Back to APIs

Unified Agent API

SMS

SMS

Send SMS or WhatsApp messages with automatic channel selection.

POST/v1/messages/sendWhatsApp + SMS

Overview

Send SMS or WhatsApp messages

Credits

1 credit per call

Providers

HttpSMSWhatsApp

SDK Method

client.send_message(...)

Parameters

toRequired

string

Phone number (E.164).

messageRequired

string

Message text.

channel

select (default: auto)

Delivery channel.

Auto
SMS
WhatsApp

Example Response

{
  "success": true,
  "data": {
    "message_id": "wamid.HBgNMTIzNDU2Nzg5MDIA",
    "channel": "whatsapp",
    "to": "+1234567890",
    "status": "sent"
  },
  "metadata": {
    "provider_used": "whatsapp",
    "providers_tried": [
      "whatsapp"
    ],
    "mode_used": null,
    "response_time_ms": 620,
    "request_id": "req_yza567"
  },
  "credits_used": 1
}

Get Started

Use this API through the O-mega platform. Create an API key in your dashboard, then call the endpoint with your key in the Authorization header.

Try SMS

Test SMS in the interactive playground. No setup required.

Open Playground
SMS API | Unified Agent APIs | suprbrowser