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 Status of A Single Number

Developing
GET
https://api.smsonline.cloud/cs/getPhoneStatus
This endpoint returns the message reception status of a phone number associated with a specific orderId.
To check the status of multiple numbers at once, please use the bulk status endpoint instead.

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}}
orderId
string 
required
Specify the orderId for the purchase of the phone number
Example:
12345678

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/getPhoneStatus?userId={{userid}}&key={{APIKey}}&orderId=12345678'

Responses

🟢200Success
application/json
If a phone number matching the orderId exists, the status will be returned.
Body
error
boolean 
required
body
object 
required
orderId
string 
required
phoneNumber
string 
required
receivedSMS
string 
required
status
string 
required
orderedAt
string 
required
expiredAt
string 
required
lastCheckedAt
string 
required
purchasePrice
integer 
required
c
string 
required
Example
{
    "error": false,
    "body": {
        "orderId": "1234567",
        "phoneNumber": "8512345678",
        "receivedSMS": "123456",
        "status": "completed",
        "orderedAt": "2025-02-08 17:30:25",
        "expiredAt": "2025-02-08 17:50:25",
        "lastCheckedAt": "2025-02-08 17:31:01",
        "purchasePrice": 27
    },
    "c": "undefined"
}
🟠401Unauthorized
Modified at 2025-04-19 08:05:53
Previous
Request Another SMS
Next
Get Bulk Status of Numbers With Conditions
Built with