Skip to main content
Capabilities

SMS

SMS endpoints authenticate with the X-App-Code header. No signature and no sign-in are required, so you can call them from the browser.

Send a verification code​

GET/client/custom/sms/v1/sendKaptcha
ParameterInRequiredDescription
X-App-CodeHeaderYesYour app's appCode
mobileQueryYesPhone number without country code
countryCodeQueryNoCountry code, default 86
curl -s 'https://cloud.ifootoo.com/client/custom/sms/v1/sendKaptcha?mobile=13800000000' \
-H 'X-App-Code: <appCode>'
{"code":200,"msg":"短信验证码发送成功","type":"SUCCESS"}

Rules​

ItemValue
Code4 digits, valid for 5 minutes
Resend intervalOnce per 60 seconds per phone number
Sender signature【浮图科技(深圳)】
Message text (Chinese)您的验证码为 xxxx ,该验证码5分钟内有效,请勿泄露于他人。 ("Your code is xxxx, valid for 5 minutes. Do not share it.")
PriceCNY 0.05 per message, deducted from the app balance before sending and refunded if sending fails
Abuse protection

The platform only enforces the per-number resend interval. It does not cap daily volume or rate-limit by IP. Add a CAPTCHA, daily caps and IP rate limits on your side.

Errors​

codemsgMeaning
300没有找到相关APP信息X-App-Code missing or unknown
500手机号不能为空!mobile missing
300短信已发送Resent within 60 seconds
300账户余额不足,请先充值Insufficient app balance
300短信发送失败,请稍后重试The SMS provider failed; the charge was refunded

Send a code you choose​

POST/client/custom/sms/v1/sendThirdKaptcha

You choose the code; the platform sends, stores and verifies it. Headers and pricing are the same as above.

FieldRequiredDescription
mobileYesPhone number
smsCaptchaNoCode to send. A random 4-digit code is generated if omitted
countryCodeNoCountry code, default 86

Verify a code​

There is no standalone verification endpoint. Verification happens through phone sign-in. Note:

  • Codes are single-use. A correct code is consumed immediately. A wrong attempt does not consume it, so users can retry within the validity period.
  • Unregistered numbers:
    • With registerIfNew=1, the platform creates a user for the number and returns a session token.
    • Without it, the response is 用户还未注册 (user not registered) and the code is already consumed; the user must request a new one.

If your app manages its own users and only needs SMS verification, call the sign-in endpoint with registerIfNew=1, treat code=200 as "code is correct", ignore the returned token and issue your own session.