ANT
  • Introduction
    • Authentication
    • Number
    • Errors
    • Rate Limits
  • ANT API
    • Balance
      • Retrieve balance
    • Sms
      • Marketing SMS
        • Send Marketing SMS
        • Send Bulk Marketing SMS
        • Scheduled Marketing SMS
        • Marketing SMS CallBack
      • 🔥OTP SMS
        • Send OTP SMS
        • OTP SMS CallBack
        • ⭐OTP Backfill Interface
      • Notification SMS
        • Send Notification SMS
        • Send Bulk Notification SMS
        • Scheduled Notification SMS
        • Notification SMS CallBack
    • Voip
      • IVR
        • IVR File Upload
        • IVR Task
        • IVR Callback
      • Call
        • Call the phone
        • Call record callback
    • Phone Number Validation
      • HLR Sever
      • Check Number Status
  • Webhooks
    • Test Webhooks
  • Demo
    • Java Demo
Powered by GitBook
On this page
  1. ANT API
  2. Sms
  3. Marketing SMS

Send Marketing SMS

Send marketing SMS

Url

POST https://api.antgst.com/sms/txt/1/send/json

Content-Type

application/json

Request Body

NameType
Description
Required
Description

string

Yes

from

String

No

SenderID

Array

Yes

Receive number,Receive phone format like: countryCode+phone: 006281213131213

sms

String

Yes

Sms content

Curl Example

curl --request POST 
  --url https://api.antgst.com/sms/txt/1/send/json 
  --header 'content-type: application/json' 
  --data '{
    "authSecret":"6b43ccc24d864f26xxxxxxxxxx530e47db959921e0a55b9499",
    "from":"1234",
    "numbers":["0091xxxx08424"],
    "sms":"test sms"
}'

Response

{
    "msg": "SUCCESS",
    "code": 200,
    "result": [
        {
            "number": "0091xxxx08424",
            "smsId": "e95f2754f557xxxxde688a509ee63b0",
            "code": 200,
            "result": "success"
        }
    ]
}
{
	"msg": "auth secret error!",
	"code": -22
}

Response parameter description

Filed
Description

msg

response result information

response status code

result

response result parameter

result.number

balance of SMS service

result.smsId

SMS Unique ID

result.code

Response status code for each SMS

result.result

Response information for each SMS

PreviousMarketing SMSNextSend Bulk Marketing SMS

Last updated 11 days ago

numbers
authSecret
API Key(AccessKey ID+ AccessKey Secret)
code