Testing apps that require SMS verification is painful without an API. PingNum provides a clean REST API to programmatically get virtual phone numbers and retrieve OTP codes — perfect for QA automation, CI/CD pipelines, and load testing.
Why Use an SMS API for QA Testing?
Manual SMS verification during testing is slow and unscalable. An SMS API lets you:
- Automate account creation in test environments
- Run parallel tests without shared phone numbers
- Integrate OTP retrieval into CI/CD pipelines
- Test different country phone numbers (USA, UK, Canada)
- Avoid using real employee numbers in test databases
PingNum API Overview
PingNum provides a REST API with two core endpoints for QA use:
- GET /api/numbers — browse available numbers by app/country
- POST /api/orders — purchase a virtual number programmatically
- GET /api/sms/:orderId — poll for incoming SMS on a number
Example: Automating WhatsApp Verification in Tests
Here's a simplified flow for QA automation:
- Request a number — call PingNum API to get a USA number for WhatsApp
- Trigger verification — your test enters the number in the app under test
- Poll for SMS — loop calling the SMS endpoint until OTP arrives (usually <3s)
- Extract OTP — parse the SMS body for the verification code
- Complete verification — your test enters the OTP and proceeds
- Release number — number session ends automatically after expiry
Benefits for CI/CD Pipelines
Integrating PingNum into your CI/CD pipeline means:
- No manual steps — end-to-end tests run fully automatically
- Isolated test data — each test run gets a fresh, unique phone number
- Cost-effective — pay only $0.19–$0.75 per number, per test run
- Consistent results — no "SMS didn't arrive" flakiness with 3-second delivery
Bulk SMS Verification for App Testing
Need to create 100 test accounts simultaneously? PingNum's API supports parallel requests — get multiple numbers at once for stress testing or load testing your verification flow.
API Access on PingNum
To get API access, sign up at PingNum and navigate to the API Access section in your dashboard. Your API key is available immediately after top-up.
Frequently Asked Questions
Can PingNum API handle concurrent number requests?
Yes. You can request multiple numbers simultaneously for parallel test execution.
How fast does the SMS API respond?
Most OTPs arrive within 3 seconds. We recommend polling every 1-2 seconds with a 60-second timeout.
Is there rate limiting on the API?
Standard accounts have generous limits. Contact PingNum support for high-volume QA use cases.
Can I use PingNum API in a CI/CD pipeline (GitHub Actions, Jenkins)?
Yes. The REST API works with any HTTP client — curl, axios, requests, or your preferred tool.
Ready to get your virtual number?
Join thousands of users receiving SMS verifications instantly with PingNum.
Get a Number Now — From $0.19