# Send a single SMS | VeloBotix

> Send one SMS with FUN=SEND_SINGLE via POST JSON or GET with with_get=true. Parameters: senderID, to, msg.

Source: https://www.velobotix.app/docs/send-sms

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."
```

Parameter

Example

Description

FUN

SEND\_SINGLE

Function name — specifies the action

with\_get

true

Required — enables GET query string mode

un

your@email.com

Your account email address

up

YOUR\_API\_KEY

Your account API key

senderID

VeloBotix

Approved Sender ID for your account

to

0701234567

Recipient's phone number (Sri Lanka format)

msg or text

Your message here

The 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](https://portal.velobotix.app)
