Verification Code SMS


Step1: Registration and record-keeping

  1. Registration and login Yunpian manager console.
  2. Report your qualification, SMS signature and SMS template to us. Please contact with us if need help.


Step2: Send SMS via specific API

We suggest to use the API "Sending SMS".


HTTP Header:


Accept: application/json;charset=utf-8;
Content-Type:application/x-www-form-urlencoded;charset=utf-8;


URL: https://sms.yunpian.com/v2/sms/single_send.json


Send Limit


You can send as many messages as you like. However, Yunpian have some rules for harassment prevention.


Harassment Prevention:


The same content can only be send once in 30 seconds, no more than 3 times in 5 minutes. Contact with customer service team if you have special needs.


Request:


Method: POST


Request Parameter:

PARAMETERTYPEREQUIREDDESCRIPTIONEXAMPLE
apikeystringYesAPIKEY is credentials you can find on the "Account Dashboard" page. It is the string of 32-bit characters.9b11127a9701975c
734b8aee81ee3526
mobilestringYesThe destination phone, we only support single send. International SMS:The international mobile number must contain the country code. It must begin with"+". Please encode"+"with urlencode.15205201314 or urlencode("+93701234567")
textstringYesThe text of the message you want to send, limited to 500 words. It should be audited by our customer service team first.【Yunpian】Your Verify Code is 12345.
extendstringNoSMS extend Number. Please contact with our customer service team if necessary.001
uidstringNoThe SMS ID in your application. It is created by yourself. Please contact with our customer service team if necessary.10001
callback_urlstringNoAfter SMS sending, the status report will be pushed to this address (the status is returned by carrier). If the push address is fixed, it is recommended to make the batch setting in "Data Push and Get". If address has been set in the "Data Push and Get" and the HTTP requests also contains this parameter, it will be based on the URL in the HTTP requests.http://your_receive_url_address
registerbooleanNoIf pass"true", it will be considered as the verification code SMS which is used for registration. This data will be included in the statistic registration success rate. Please contact with customer service team if necessary.true


Response:


JSON Representations:


{
    "code":0,
    "msg":"发送成功",
    "count": 1,
    "fee": 0.05,
    "unit": "RMB",
    "mobile":"13012312312",
    "sid": 16741236146
}


Response Parameter:

PARAMETERTYPEDESCRIPIONEXAMPLE
codeintegerThe status code of the SMS. SMS delivery information is reflected in message status.
The possible values can be found in the" Return Code Description".
0
msgstringThe detailed status of the SMS. SMS delivery information is reflected in message status.
The possible values can be found in the" Return Code Description".
"发送成功"
countintegerSMS count1
feedoubleDeduction Amount. One SMS can support 70 words. If the SMS is more than 70 words,
will separate it per 67 words .
0.05
unionstringUnion"RMB"
mobilestringMobile number"13200000000"
sidlong(64 bit)SMS id16741236146


Step3: Functional Requirement


  1. Send required SMS via API.
  2. Please prevent verification code attack.


Step4: Develop as Requirement


  1. Analyze the success rate of registration.
    Please use API "Registered Success Callback API".
  2. Monitor the delivery report.
    Please use API "Push/Pull Status Records".
  3. SMS platform
    If you have a lot of signature or template. We suggest to use API "Add/Get/Modify Signature" and "Add/Get/Modify/Delete Template".
  4. Get the 2-way SMS
    Please use the API "Push/Pull Reply Records".
  5. Connect to our US server
    The address for US server us.yunpian.com. Replace "sms.yunpian.com" with "us.yunpian.com".