# API Documentation

ភ្ជាប់ bot ឬ script របស់អ្នកដោយផ្ទាល់ ដើម្បីទិញ Gmail OTP ដោយស្វ័យប្រវត្តិ

#### 🔑 Your API Token (សោសម្ងាត់របស់អ្នក)

za_••••••••••••••••••••••••••••••••

⚠️ កុំចែករំលែក Token នេះទៅអ្នកដទៃ វាយកទៅទិញលុយអ្នកបាន។

#### GET /zapi/services

Headers: Authorization: Bearer YOUR_TOKEN Response: [ { "id": "gmail_otp", "title": "Gmail OTP", "stock": 500, "price": 0.055, "duration": "6min" } ]

#### POST /zapi/orders

Headers: Authorization: Bearer YOUR_TOKEN Content-Type: application/json Body: { "service": "gmail_otp", "quantity": 1 } Response: { "order_id": "ord_12345", "items": [ { "mail": "example@gmail.com", "otp": "waiting..." } ], "total": 0.055, "newBalance": 4.945 }

#### GET /zapi/orders

Headers: Authorization: Bearer YOUR_TOKEN Response: [ { "id": "ord_12345", "service": "gmail_otp", "qty": 1, "total": 0.055, "status": "success", "items": [{ "mail": "...", "otp": "123456" }] } ]