Skip to main content

Single SMS Sending

Single SMS Sending

Request URL

https://{domain}/sms/send?spid=xx&pwd=xx&das=xx&timestamp=xx&sm=x

Request Method

GET

Parameter Description

Field Type Name Description
spid string Interface account
pwd string Encrypted password Important note 3
das string Phone number Must include international code, e.g., 0062
sm string Message content Must be converted to hexadecimal (character length is based on original text)
timestamp string Current Unix timestamp (seconds) Example: 1601028870
senderid string Optional Field enabled for partners

Response

{
  "code": 0,
  "msg": "Success",
  "data": {
    "msgid": "100123",
    "parts": 1  //Current SMS calculated number of segments
  }
}

Status Code (code) Description

  • 0 -- Submission successful
  • 101 -- Required fields cannot be empty (note request method is GET)
  • 102 -- Verification failed (Unix timestamp is time zone independent, ensure error range [-10s, 10s])
  • 103 -- spid does not exist
  • 104 -- Password does not match (parameter must include timestamp)
  • 105 -- No available channel (please contact administrator to confirm channel configuration)
  • 106 -- Configuration error
  • 107 -- Phone number is blacklisted
  • 108 -- Content exceeds maximum character count
  • 109 -- Parsing failed, please confirm interface parameters
  • 110 -- Request IP restricted
  • 111 -- Phone number sending restricted (too many attempts)
  • 120 -- System error, please try again later (Important note 1.1)