1. SmsTemplate
N6G-Pro
  • SmsTemplate
    • Mt(single)
      POST
    • Mts(batch)
      POST
    • MtsVar(batch var)
      POST
    • Create(new template)
      POST
    • List(query template)
      POST
    • Delete(remove template)
      POST
  • MmsTemplate
    • Mt(single)
      POST
    • Mts(batch)
      POST
    • MtsVar(batch var)
      POST
    • Create(new template)
      POST
    • List(query template)
      POST
    • Delete(remove template)
      POST
  • Sms
    • Mt(single)
      POST
    • Mts(batch)
      POST
    • MtsVar(batch var)
      POST
  • AdminApi
    • Channel List
      POST
    • Gateway List
      POST
    • Agent List
      POST
    • Company List
      POST
    • User List
      POST
    • User Set Channel
      POST
    • Price User List
      POST
    • Price Gateway List
      POST
    • Price Agent List
      POST
  • Rpt(pull Rpt)
    POST
  • Mo(pull mo)
    POST
  • Balance(query balance)
    POST
  • St(statistics)
    POST
  • 数据模型
    • M_HTTPAPI_MTS_VAR_REQUEST_DATA
  1. SmsTemplate

MtsVar(batch var)

开发中
POST
/Api/SmsTemplate/MtsVar

请求参数

Header 参数

Body 参数application/json

示例
{
    "account": "960003",
    "sign": "{{sign}}",
    "timestamp": {{timestamp}},
    "requestid":"{{requestid}}", 
    "senderid": "sid_mtsvar",
    "schedule": "", 
    "templateid":2,
    "vars": [
        {
            "pn": "8613980000001",
            "msg": "Hello, this is a test message A. To unsubscribe, please reply with STOP.",
            "custom_mid": "m111",
            "custom_help": "h111"
        },
        {
            "pn": "8613980000002",
            "msg": "Hello, this is a test message B. To unsubscribe, please reply with STOP.",
            "custom_mid": "m222",
            "custom_help": "h222"
        }
    ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/Api/SmsTemplate/MtsVar' \
--header 'Content-Type: application/json' \
--data-raw '{
    "account": "960003",
    "sign": "{{sign}}",
    "timestamp": {{timestamp}},
    "requestid":"{{requestid}}", 
    "senderid": "sid_mtsvar",
    "schedule": "", 
    "templateid":2,
    "vars": [
        {
            "pn": "8613980000001",
            "msg": "Hello, this is a test message A. To unsubscribe, please reply with STOP.",
            "custom_mid": "m111",
            "custom_help": "h111"
        },
        {
            "pn": "8613980000002",
            "msg": "Hello, this is a test message B. To unsubscribe, please reply with STOP.",
            "custom_mid": "m222",
            "custom_help": "h222"
        }
    ]
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "rt": "20250118195140",
    "code": 0,
    "code_msg": "SUCCEED",
    "bid": "250118195100000038",
    "mids": [
        {
            "pn": "13980000001",
            "mid": "250118195100000039",
            "custom_mid": "m111",
            "custom_help": "h111"
        },
        {
            "pn": "13980000002",
            "mid": "250118195100000040",
            "custom_mid": "m222",
            "custom_help": "h222"
        }
    ]
}
修改于 2026-01-05 03:18:52
上一页
Mts(batch)
下一页
Create(new template)
Built with