REST API v1.0 · HTTPS JSON · Bearer / X-API-Key

डेवलपर REST API v1 और Non-VoIP SMS ऑटोमेशन डॉक्यूमेंटेशन (2026) | OnayNet

मानक HTTPS JSON एंडपॉइंट्स के माध्यम से QA टेस्टिंग, मल्टी-अकाउंट वर्कफ़्लो और B2B स्क्रिप्ट्स (Python, Node.js, cURL) को 190+ देशों के फिजिकल SIM पोर्ट्स से जोड़ें।

Generate API Key in Profile

REST API v1 एंडपॉइंट रेफरेंस

OnayNet REST API v1 — Base URL: https://onaynet.co/api/v1
MethodEndpoint PathAuthविवरण और कार्यप्रणाली
GET/api/v1/balanceBearer / X-API-KeyReturns current wallet balance, account email, and currency.
GET/api/v1/countriesPublic / OptionalLists all 190+ country codes (e.g. 187 for USA, 16 for UK, 62 for Turkey).
GET/api/v1/services?country=187Public / OptionalLists real-time physical SIM inventory, prices, and service slugs.
POST/api/v1/orders/buyBearer / X-API-KeyAllocates a dedicated Non-VoIP E.164 phone number and returns order_id & phone_number.
GET/api/v1/orders/:idBearer / X-API-KeyPolls live SS7/SMPP gateway for incoming SMS and returns parsed 4-8 digit sms_code.
POST/api/v1/orders/:id/cancelBearer / X-API-KeyCancels an active order where no SMS arrived and triggers an instant 100% atomic wallet refund.
POST/api/v1/orders/:id/finishBearer / X-API-KeyMarks an order that already received an SMS code as completed.
WAITING
फिजिकल SIM पोर्ट आवंटित किया गया है और SS7/SMPP इंटरकनेक्ट पर SMS की प्रतीक्षा कर रहा है। हर 3 सेकंड में GET /api/v1/orders/:id पोल करें।
RECEIVED / COMPLETED
वेरिफिकेशन SMS प्राप्त हुआ; 4–8 अंकों का OTP कोड data.sms_code फ़ील्ड में उपलब्ध है।
CANCELLED
SMS आने से पहले ऑर्डर रद्द किया गया; 100% राशि तुरंत आपके वॉलेट बैलेंस में वापस कर दी गई है।