⚙️
API Docs | SMSYOUTO
  • Welcome!
  • Reference
    • API Reference
      • OTP (One Time Password)
      • Single SMS
      • Campaign
      • Sender
      • Account
Powered by GitBook
On this page
  • ส่ง SMS ทีละเบอร์
  • Send
  • เช็ค Log SMS ด้วย MessageID
  • Log
  1. Reference
  2. API Reference

Single SMS

ส่ง SMS ทีละเบอร์

Send

POST https://bulk.smsyouto.com/api/bulk/send

ส่งข้อความหาลูกค้าทันที สามารถกำหนดเบอร์ และ ข้อความ ส่งได้เลย

Headers

Name
Type
Description

Authorization*

String

Bearer API Key

Request Body

Name
Type
Description

phone*

String

เบอร์โทรศัพท์ผู้รับ

message*

String

ข้อความที่ต้องการส่ง

sender*

String

ชื่อผู้ส่ง

{
    "status": 200,
    "message": "send successfully",
    "data": {
        "code": "006",
        "messageid": "16994168351027398",
        "sender": "SMSTOUTOAPI",
        "status": "failure",
        "infomation": "Sender not allowed"
    }
}
{
    "message": "Access Denied"
}
{ 
  status: 400,
  message: "phone must be less than 30000",
  total: 40000
}

เช็ค Log SMS ด้วย MessageID

Log

GET https://bulk.smsyouto.com/api/bulk/log/single/{messageid}

เช็ครายละเอียดการส่งไปหาปลายทาง

Query Parameters

Name
Type
Description

messageid

String

EX. 16992526394311419

Headers

Name
Type
Description

Authorization*

String

Bearer API Key

{
    "code": "000",
    "messageId": "16992526394311419",
    "sender": "SMSYOUTOAPI",
    "status": "success",
    "infomation": "Sender not allowed",
    "message": "ทดสอบระบบ",
    "phone": "0123456789",
    "created_at": "2023-11-08 11:13:55"
}
{
    "status": 400,
    "message": "log not found"
}
{
    "message": "Access Denied"
}
PreviousOTP (One Time Password)NextCampaign

Last updated 1 year ago