Skip to content

Docs

Send a single SMS

Endpoint

POST or GET https://portal.velobotix.app/api.php?FUN=SEND_SINGLE

Phone numbers use Sri Lanka local format 07XXXXXXXX.

POST (JSON body)

Authenticate with Basic Auth. Send Content-Type: application/json with senderID, to, and msg.

curl -X POST \
  "https://portal.velobotix.app/api.php?FUN=SEND_SINGLE" \
  -u "YOUR_EMAIL:YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "senderID": "VeloBotix",
    "to":       "0701234567",
    "msg":      "Your OTP is 483920. Valid for 5 minutes."
  }'

GET (query string)

Set with_get=true and pass un, up, senderID, to, and msg (or text) in the query string.

curl "https://portal.velobotix.app/api.php?FUN=SEND_SINGLE&with_get=true&un=YOUR_EMAIL&up=YOUR_API_KEY&senderID=VeloBotix&to=0701234567&msg=Your+OTP+is+483920.+Valid+5+mins."
ParameterExampleDescription
FUNSEND_SINGLEFunction name — specifies the action
with_gettrueRequired — enables GET query string mode
un[email protected]Your account email address
upYOUR_API_KEYYour account API key
senderIDVeloBotixApproved Sender ID for your account
to0701234567Recipient's phone number (Sri Lanka format)
msg or textYour message hereThe SMS body content

Response

Inspect the HTTP status and body returned by the portal for success or failure details. Confirm field names in your portal response.

FAQ

Can I use international format?
Examples and portal docs use local 07XXXXXXXX. Confirm any other formats against a live portal response before production.

Create account

Sign up in the portal and get your API key — username is your email, password is the key.

Open portal — get API key