Skip to content

API documentation

Standard SMM panel API — connect other panels, bots and scripts.

API URL
https://24service.uz/api/v2
Method
POST (form-data / x-www-form-urlencoded / JSON)
Key
Create a key here: API (developers)
Response
JSON · errors as {"error": "…"}

services — service list

ParameterDescription
keyyour API key
actionservices

Example response

[{"service": 1024, "name": "Telegram Members", "type": "Default", "category": "Telegram Members", "rate": "6500.00", "min": "10", "max": "100000", "refill": true, "cancel": true, "dripfeed": true}]

add — place an order

ParameterDescription
keyyour API key
actionadd
serviceservice ID
linklink
quantityquantity
runsdrip-feed runs (optional)
intervaldrip-feed interval, minutes (optional)
commentscomments, one per line (Custom Comments)

Example response

{"order": 23501}

status — order status (one or up to 100)

ParameterDescription
keyyour API key
actionstatus
orderorder ID
orderscomma-separated order IDs (up to 100)

Example response

{"charge": "6500.00", "start_count": "3572", "status": "Partial", "remains": "157", "currency": "UZS"}

refill — request a refill

ParameterDescription
keyyour API key
actionrefill
orderorder ID
orderscomma-separated order IDs (up to 100)

Example response

{"refill": "1"}

refill_status — refill status

ParameterDescription
keyyour API key
actionrefill_status
refillrefill ID
refillscomma-separated refill IDs

Example response

{"status": "Completed"}

cancel — cancel orders

ParameterDescription
keyyour API key
actioncancel
orderscomma-separated order IDs (up to 100)

Example response

[{"order": 9, "cancel": 1}, {"order": 2, "cancel": {"error": "Incorrect order ID"}}]

balance — balance

ParameterDescription
keyyour API key
actionbalance

Example response

{"balance": "100500.00", "currency": "UZS"}

Code examples

PHP

<?php
$ch = curl_init('https://24service.uz/api/v2');
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,
  CURLOPT_POSTFIELDS => http_build_query(['key' => 'YOUR_KEY', 'action' => 'add', 'service' => 1024, 'link' => 'https://t.me/channel', 'quantity' => 1000])]);
$result = json_decode(curl_exec($ch), true);

Python

import requests
r = requests.post('https://24service.uz/api/v2', data={'key': 'YOUR_KEY', 'action': 'status', 'order': 23501})
print(r.json())

Node.js

const r = await fetch('https://24service.uz/api/v2', { method: 'POST', body: new URLSearchParams({ key: 'YOUR_KEY', action: 'balance' }) });
console.log(await r.json());

Virtual numbers API (SMS-Activate format)

Drop-in for bots and scripts built for SMS-Activate / HeroSMS: change only the URL and key. Same key as above.

API URL
https://24service.uz/api/sms
Method
POST
Key
api_key — Send api_key in the POST body or the X-Api-Key header (not accepted in the URL).
Response
Plain text (ACCESS_…, STATUS_…) or JSON

Typical flow: getPrices → getNumber → getStatus every 5–10 s → setStatus=6 after the code. No code? setStatus=8 refunds to your balance (allowed 2 minutes after purchase).

getBalance — Balance

Example response

ACCESS_BALANCE:125000.00

getCountries — Countries

Example response

{"0": {"id": 0, "eng": "Russia", "rus": "Россия"}, "6": {"id": 6, "eng": "Indonesia", "rus": "Индонезия"}}

getServicesList — Services (codes)

Example response

{"status": "success", "services": [{"code": "tg", "name": "Telegram"}, {"code": "wa", "name": "WhatsApp"}]}

getPrices — Price and available count (in your currency)

ParameterDescription
serviceService code (e.g. tg, ig, wa)
countryCountry ID (from getCountries)

Example response

{"6": {"tg": {"cost": 4200.00, "count": 1530}}}

getNumber — Get a number (charges your balance)

ParameterDescription
serviceService code (e.g. tg, ig, wa)
countryCountry ID (from getCountries)
maxPriceOptional: max price — WRONG_MAX_PRICE if higher

Example response

ACCESS_NUMBER:5821:6281234567890

getNumberV2 — Get a number, JSON answer

ParameterDescription
serviceService code (e.g. tg, ig, wa)
countryCountry ID (from getCountries)
maxPriceOptional: max price — WRONG_MAX_PRICE if higher

Example response

{"activationId": "5821", "phoneNumber": "6281234567890", "activationCost": 4200.00, "currency": "UZS", "countryCode": "6", "activationEndTime": "2026-10-05 12:40:00"}

getStatus — Check the SMS code

ParameterDescription
idActivation ID

Example response

STATUS_WAIT_CODE
STATUS_OK:12345
STATUS_CANCEL

setStatus — Change status: 3 — another SMS, 6 — finish, 8 — cancel (refund)

ParameterDescription
idActivation ID
status3 / 6 / 8

Example response

ACCESS_RETRY_GET · ACCESS_ACTIVATION · ACCESS_CANCEL

getActiveActivations — Active numbers

Example response

{"status": "success", "activeActivations": [{"activationId": "5821", "phoneNumber": "6281234567890", "smsCode": null, "status": "STATUS_WAIT_CODE"}]}

Errors: BAD_KEY, NO_BALANCE (not enough funds), NO_NUMBERS, BAD_SERVICE, BAD_COUNTRY, NO_ACTIVATION, EARLY_CANCEL_DENIED, CHANNELS_LIMIT, TOO_MANY_REQUESTS.

Python

import requests, time
URL, KEY = 'https://24service.uz/api/sms', 'YOUR_KEY'
api = lambda **p: requests.post(URL, data={'api_key': KEY, **p}).text
_, aid, phone = api(action='getNumber', service='tg', country=6).split(':')
while not (s := api(action='getStatus', id=aid)).startswith('STATUS_OK'):
    time.sleep(5)
print(phone, s.split(':', 1)[1]); api(action='setStatus', id=aid, status=6)

Limits

  • 300 requests per minute per key.
  • Send the key in the POST body only — keys in the URL are rejected.
  • Duplicate protection: Idempotency-Key header or idempotency_key parameter.