REST API v1.0 · HTTPS JSON · Bearer / X-API-Key
开发者 REST API v1 与非 VoIP 短信验证自动化文档 (2026) | OnayNet
通过标准 HTTPS JSON 接口将 QA 自动化测试、多账号工作流与 B2B 脚本(Python、Node.js、cURL)无缝对接至 190+ 国家的实体 SIM 卡池。
Generate API Key in ProfileREST API v1 接口参考列表
| Method | Endpoint Path | Auth | 接口说明与行为 |
|---|---|---|---|
| GET | /api/v1/balance | Bearer / X-API-Key | Returns current wallet balance, account email, and currency. |
| GET | /api/v1/countries | Public / Optional | Lists all 190+ country codes (e.g. 187 for USA, 16 for UK, 62 for Turkey). |
| GET | /api/v1/services?country=187 | Public / Optional | Lists real-time physical SIM inventory, prices, and service slugs. |
| POST | /api/v1/orders/buy | Bearer / X-API-Key | Allocates a dedicated Non-VoIP E.164 phone number and returns order_id & phone_number. |
| GET | /api/v1/orders/:id | Bearer / X-API-Key | Polls live SS7/SMPP gateway for incoming SMS and returns parsed 4-8 digit sms_code. |
| POST | /api/v1/orders/:id/cancel | Bearer / X-API-Key | Cancels an active order where no SMS arrived and triggers an instant 100% atomic wallet refund. |
| POST | /api/v1/orders/:id/finish | Bearer / X-API-Key | Marks an order that already received an SMS code as completed. |
- WAITING
- 已分配实体 SIM 端口并在 SS7/SMPP 网关监听短信。请每 3 秒轮询一次 GET /api/v1/orders/:id。
- RECEIVED / COMPLETED
- 已收到验证短信;4 至 8 位 OTP 验证码已解析至 data.sms_code 字段。
- CANCELLED
- 订单在收到短信前已取消;100% 费用已原子级自动退回您的钱包余额。