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
| Parameter | In | Required | Description |
|---|---|---|---|
X-App-Code | Header | Yes | Your app's appCode |
mobile | Query | Yes | Phone number without country code |
countryCode | Query | No | Country 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
| Item | Value |
|---|---|
| Code | 4 digits, valid for 5 minutes |
| Resend interval | Once 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.") |
| Price | CNY 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
| code | msg | Meaning |
|---|---|---|
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.
| Field | Required | Description |
|---|---|---|
mobile | Yes | Phone number |
smsCaptcha | No | Code to send. A random 4-digit code is generated if omitted |
countryCode | No | Country 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.
- With
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.