SMSOnline API Doc
  1. Manage phone numbers
SMSOnline API Doc
  • Preparation
  • FAQ
  • V3
    • Customer API
      • Payments
        • Cryptocurrency via Cryptomus
          • Create new payment
          • Get direct wallet
          • Get transaction status
        • Credit Card via Pay4bit
          • Create new payment
      • Favourites
        • Get favourite services
        • Toggle favourite status
      • Get Account Balance
      • Get invoices
      • Get Coupons
    • Phones API
      • Lookup API
        • Get service list by country and carrier
        • Get service detail by country and carrier
      • Inventory API
        • Get inventory
      • Order API
        • Order a number
        • Get order data
        • Change order status
      • Get Popular list
      • Get all available countries/carriers
    • Statistics API
      • Get statistics
  • V2(Deprecated)
    • Warning: V2 API is deprecated
    • Account
      • Get Balance
      • Make a top-up with crypto
      • (Get direct wallet address) Make a top-up with crypto
    • Lookup
      • Get Available Countries
      • Get Available Services
      • Get Service Details
      • Get the country stats with success rates
    • Manage phone numbers
      • Purchase Number
        POST
      • Return Number
        POST
      • Request Another SMS
        POST
      • Get Status of A Single Number
        GET
      • Get Bulk Status of Numbers With Conditions
        GET
  1. Manage phone numbers

Get Bulk Status of Numbers With Conditions

Developing
GET
https://api.smsonline.cloud/cs/getBulkPhoneStatus
This endpoint allows you to filter phone numbers by criteria such as country, service, status, and expiration date, and retrieve the current status of multiple phone numbers in a single response as an array. Ideal for use cases that require simultaneous use and management of a large number of phone numbers.
All parameters except userId and key are optional. Omit any parameter from the query if you do not wish to filter by it.

Request

Query Params
userId
string 
required
Specify the userId of the user who purchased the phone number
Example:
{{userid}}
key
string 
required
Specify the API key
Example:
{{APIKey}}
country
string 
optional
Country name. Must match one returned by Lookup API / Get Available Countries.
Example:
Hong Kong
service
string 
optional
Service name. Must match one returned by Lookup API / Get Available Services.
Example:
Facebook
status
string 
optional
Phone number status. One of: waitingForSMS, completed, refunded, expired, or orderFailed.
Example:
completed
since
string <date-time>
optional
Start date of the time range.
Example:
2025-01-01
until
string <date-time>
optional
End date of the time range.
Example:
2025-04-01
dateOrder
string 
optional
Sort result set by date, either ascending or descending.
Example:
asc
limit
integer 
optional
Set the maximum number of results to return.
Example:
50
isError
boolean 
optional
Set to true or 1 to retrieve only failed purchases.

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://api.smsonline.cloud/cs/getBulkPhoneStatus?userId={{userid}}&key={{APIKey}}&country=Hong Kong&service=Facebook&status=completed&since=2025-01-01&until=2025-04-01&dateOrder=asc&limit=50&isError='

Responses

🟢200Success
application/json
If a phone number matching the orderId exists, the status will be returned.
Body
error
boolean 
required
body
array [object {11}] 
required
orderId
string 
required
phoneNumber
string 
required
receivedSMS
string 
required
status
string 
required
country
string 
required
service
string 
required
orderedAt
string 
required
expiredAt
string 
required
lastCheckedAt
string 
required
purchasePrice
integer 
required
failedReason
null 
required
Example
{
    "error": false,
    "body": [
        {
            "orderId": "123456789",
            "phoneNumber": "8512345667",
            "receivedSMS": "123456",
            "status": "completed",
            "country": "Hong Kong",
            "service": "Foo",
            "orderedAt": "2025-01-24 18:00:00",
            "expiredAt": "2025-01-24 19:00:00",
            "lastCheckedAt": "2025-01-24 18:01:00",
            "purchasePrice": 20,
            "failedReason": null
        }
    ]
}
🟠401Unauthorized
Modified at 2025-04-18 16:57:15
Previous
Get Status of A Single Number
Built with