SMSOnline API Doc
  1. Favourites
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
          GET
        • Toggle favourite status
          POST
      • Get Account Balance
        GET
      • Get invoices
        GET
      • Get Coupons
        GET
    • 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
  1. Favourites

Toggle favourite status

Developing
POST
https://api-x.smsonline.cloud/v3/customers/{userId}/favourites/{country}/{service}/{carrier}/toggle
Change the favourite status by specifying the country, the carrier and service name.

Request

Path Params

Body Params application/json

Example
{
    "apiKey": "string"
}

Request Code 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 POST 'https://api-x.smsonline.cloud/v3/customers/{{userid}}/favourites/United Kingdom/Wise/any/toggle' \
--header 'Content-Type: application/json' \
--data-raw '{
    "apiKey": "string"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "ok": true,
    "body": {
        "country": "United Kingdom",
        "service": "ABC App",
        "carrier": "any",
        "userId": "ocH1elI4WeYal0OBUUek9cvI4e72"
    }
}
Modified at 2025-10-23 20:03:01
Previous
Get favourite services
Next
Get Account Balance
Built with