Developer Documentation
PIXSIM API yordamida loyihalaringizga Telegram raqamlarni sotib olishni integratsiya qiling. Bizning infratuzilmamiz 99.9% uptime va yuqori tezlikni ta'minlaydi.
https://pixsim.uz/api
Avtorizatsiya
API dan foydalanish uchun sizga API Key kerak bo'ladi. Har bir so'rovda key va action parametrlari bo'lishi shart.
JSON Request Body
{
"key": "sizning_api_kalitingiz",
"action": "metod_nomi"
}
POST / GET
getBalance
Parametrlar
action
getBalance
200 OK
{
"ok": true,
"balance": 15000,
"currency": "UZS"
}
POST / GET
getCountries
Parametrlar
action
getCountries
200 OK
{
"ok": true,
"result": {
"currency": "UZS",
"countries" {
"UZ": 4500,
"RU": 2000
}
}
}
POST / GET
buyNumber
| Parametr | Turi | Izoh |
|---|---|---|
| action | string | Doimiy qiymat: buyNumber |
| country_code | string | Davlat kodi (ISO). Masalan: UZ |
200 OK
{
"ok": true,
"msg": "Number purchased",
"result": {
"order_id": 998877,
"phone": "+998901234567",
"price": 4500,
"country_code": "UZ"
}
}
POST / GET
getCode
Waiting
Kod kutilmoqda...
{"ok":true, "status":"waiting"}
Finished
SMS qabul qilindi
{"ok":true, "status":"finished", "result":{...}}
Full Response
{
"ok": true,
"status": "finished",
"result": {
"phone": "998901234567",
"code": "12345",
"password": "WbD7rc5"
}
}
Xatoliklar
400
Bad Request
Parametrlar xatosi
401
Unauthorized
API Key yaroqsiz
500
Server Error
Ichki xatolik