Skip to main content
POST
/
sms
/
send
Send a single SMS
curl --request POST \
  --url https://ecsend.paysgator.com/sms/send \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "to": "+25884xxxxxxx",
  "text": "Hello from ECSEND API!",
  "senderId": "ECSEND"
}
'
{
  "success": true,
  "message": "Message sent successfully",
  "historyId": "clx123abc",
  "units": 1
}

Authorizations

X-Api-Key
string
header
required

Body

application/json
to
string
required

Phone number to send SMS to

Example:

"+25884xxxxxxx"

text
string
required

Message content

Example:

"Hello from ECSEND API!"

senderId
string
required

Sender ID displayed on recipient's device

Example:

"ECSEND"

Response

Message sent successfully

success
boolean
Example:

true

message
string
Example:

"Message sent successfully"

historyId
string
Example:

"clx123abc"

units
integer
Example:

1