Giao tài khoản & License Key tự động, nhanh chóng, uy tín & chuyên nghiệp
pstmmo.cc
0
PSTMMO REST API v1.0

Tài Liệu Kết Nối API & Tích Hợp

Hệ thống RESTful API tiêu chuẩn cho phép các nhà phát triển, shop đối tác và hệ thống đại lý tự động kết nối tra cứu sản phẩm, kiểm tra tồn kho, lấy URL ảnh chi tiết, mua hàng/nâng cấp tài khoản & bộ tiện ích MMO trực tuyến.

Khóa Xác Thực Của Bạn (API Key)

Đăng nhập tài khoản để nhận API Key cá nhân và bắt đầu tích hợp tự động ngay lập tức.

Root Endpoint (Base URL)
https://pstmmo.cc

Header xác thực: Authorization: Bearer <API_KEY> hoặc X-API-KEY: <API_KEY>

1. Tổng Quan & Xác Thực

Chuẩn REST API phản hồi JSON UTF-8. Bảo mật xác thực qua Token bí mật.

Cách thức xác thực (Authentication)

Mọi yêu cầu API cần truyền API Key qua một trong hai Header HTTP sau:

Authorization: Bearer YOUR_API_KEY
X-API-KEY: YOUR_API_KEY

2. Tài Khoản & Số Dư Ví (User API)

Lấy thông tin tài khoản, kiểm tra số dư ví và tạo lại API Key.

GET /api/v1/user/profile
Yêu cầu API Key

Lấy thông tin tài khoản của API Key, số dư ví hiện tại và % chiết khấu thành viên.

curl -X GET "https://pstmmo.cc/api/v1/user/profile" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
<?php
$ch = curl_init("https://pstmmo.cc/api/v1/user/profile");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOUR_API_KEY",
        "Accept: application/json",
    ],
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
}
r = requests.get("https://pstmmo.cc/api/v1/user/profile", headers=headers)
print(r.status_code, r.json())
const response = await fetch("https://pstmmo.cc/api/v1/user/profile", {
    method: "GET",
    headers: {
        "Authorization": "Bearer YOUR_API_KEY",
        "Accept": "application/json",
    },
});
const data = await response.json();
console.log(data);
Response 200 OK application/json
{
    "success": true,
    "data": {
        "id": 10,
        "username": "vip_reseller",
        "email": "[email protected]",
        "full_name": "Nguyen Van A",
        "phone": "0988889999",
        "account_type": "customer",
        "balance": 2500000,
        "balance_formatted": "2.500.000 ₫",
        "discount_percent": 5,
        "telegram_username": "@partner_mmo",
        "status": "active",
        "created_at": "2026-01-10 12:00:00"
    }
}
GET /api/v1/user/balance
Yêu cầu API Key

Endpoint nhanh để kiểm tra riêng số dư ví khả dụng trước khi đặt mua.

curl -X GET "https://pstmmo.cc/api/v1/user/balance" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
<?php
$ch = curl_init("https://pstmmo.cc/api/v1/user/balance");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOUR_API_KEY",
        "Accept: application/json",
    ],
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
}
r = requests.get("https://pstmmo.cc/api/v1/user/balance", headers=headers)
print(r.status_code, r.json())
const response = await fetch("https://pstmmo.cc/api/v1/user/balance", {
    method: "GET",
    headers: {
        "Authorization": "Bearer YOUR_API_KEY",
        "Accept": "application/json",
    },
});
const data = await response.json();
console.log(data);
Response 200 OK application/json
{
    "success": true,
    "balance": 2500000,
    "currency": "VND",
    "formatted": "2.500.000 ₫"
}

3. Danh Mục Sản Phẩm (Categories API)

Lấy danh mục sản phẩm kèm đầy đủ URL ảnh đại diện, ảnh icon và cấu trúc cây phân cấp cha-con.

GET /api/v1/categories
Công khai (Public)

Lấy toàn bộ danh mục đang hoạt động. Tham số: search=keyword, include_products=1, tree=1.

curl -X GET "https://pstmmo.cc/api/v1/categories" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
<?php
$ch = curl_init("https://pstmmo.cc/api/v1/categories");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOUR_API_KEY",
        "Accept: application/json",
    ],
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
}
r = requests.get("https://pstmmo.cc/api/v1/categories", headers=headers)
print(r.status_code, r.json())
const response = await fetch("https://pstmmo.cc/api/v1/categories", {
    method: "GET",
    headers: {
        "Authorization": "Bearer YOUR_API_KEY",
        "Accept": "application/json",
    },
});
const data = await response.json();
console.log(data);
Response 200 OK application/json
{
    "success": true,
    "total": 2,
    "data": [
        {
            "id": 1,
            "parent_id": null,
            "name": "Tài Khoản Giải Trí & Xem Phim",
            "slug": "tai-khoan-giai-tri-xem-phim",
            "short_description": "Netflix, Youtube Premium, Spotify, v.v.",
            "description": "Gói tài khoản xem phim, nghe nhạc bản quyền.",
            "icon": "film",
            "icon_url": "https:\/\/pstmmo.cc\/uploads\/categories\/film.svg",
            "image": "uploads\/categories\/entertainment.jpg",
            "image_url": "https:\/\/pstmmo.cc\/uploads\/categories\/entertainment.jpg",
            "sort_order": 1,
            "product_count": 14
        },
        {
            "id": 2,
            "parent_id": null,
            "name": "Tài Khoản Đồ Họa & Biên Tập",
            "slug": "tai-khoan-do-hoa-bien-tap",
            "short_description": "CapCut Pro, Canva Pro, Adobe Creative Cloud",
            "description": "Công cụ thiết kế đồ họa, biên tập video.",
            "icon": "sparkles",
            "icon_url": "https:\/\/pstmmo.cc\/uploads\/categories\/sparkles.svg",
            "image": "uploads\/categories\/design.jpg",
            "image_url": "https:\/\/pstmmo.cc\/uploads\/categories\/design.jpg",
            "sort_order": 2,
            "product_count": 8
        }
    ]
}
GET /api/v1/categories/tree
Cây phân cấp

Cây danh mục phân cấp cha - con (Parent -> Children) có sẵn URL ảnh để render menu đa cấp.

curl -X GET "https://pstmmo.cc/api/v1/categories/tree" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
<?php
$ch = curl_init("https://pstmmo.cc/api/v1/categories/tree");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOUR_API_KEY",
        "Accept: application/json",
    ],
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
}
r = requests.get("https://pstmmo.cc/api/v1/categories/tree", headers=headers)
print(r.status_code, r.json())
const response = await fetch("https://pstmmo.cc/api/v1/categories/tree", {
    method: "GET",
    headers: {
        "Authorization": "Bearer YOUR_API_KEY",
        "Accept": "application/json",
    },
});
const data = await response.json();
console.log(data);
Response 200 OK application/json
{
    "success": true,
    "total": 1,
    "data": [
        {
            "id": 1,
            "name": "Tài Khoản Đồ Họa",
            "slug": "tai-khoan-do-hoa",
            "image_url": "https:\/\/pstmmo.cc\/uploads\/categories\/design.jpg",
            "product_count": 12,
            "children": [
                {
                    "id": 5,
                    "parent_id": 1,
                    "name": "Canva Pro",
                    "slug": "canva-pro",
                    "image_url": "https:\/\/pstmmo.cc\/uploads\/categories\/canva.jpg",
                    "product_count": 4,
                    "children": []
                }
            ]
        }
    ]
}

4. Sản Phẩm & Tồn Kho (Products & Inventory)

Danh sách sản phẩm kèm URL ảnh đại diện, danh sách nhiều ảnh gallery, kiểm tra tồn kho đơn và hàng loạt.

GET /api/v1/products
Công khai (Public)

Lấy danh sách sản phẩm. Cung cấp: thumbnail_url, mảng images (các ảnh gallery), gallery_urls, features (đặc điểm nổi bật tích xanh), chế độ bảo hành (warranty_type, warranty_type_label, warranty_duration, warranty_unit, warranty_label), stock_quantity, is_in_stock, custom_fields. Bộ lọc hỗ trợ: category_id, search, delivery_type, warranty_type=exchange_1_1|login|none, in_stock=1, min_price, max_price, sort=price_asc|price_desc|best_seller|newest.

curl -X GET "https://pstmmo.cc/api/v1/products?limit=2" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
<?php
$ch = curl_init("https://pstmmo.cc/api/v1/products?limit=2");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOUR_API_KEY",
        "Accept: application/json",
    ],
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
}
r = requests.get("https://pstmmo.cc/api/v1/products?limit=2", headers=headers)
print(r.status_code, r.json())
const response = await fetch("https://pstmmo.cc/api/v1/products?limit=2", {
    method: "GET",
    headers: {
        "Authorization": "Bearer YOUR_API_KEY",
        "Accept": "application/json",
    },
});
const data = await response.json();
console.log(data);
Response 200 OK application/json
{
    "success": true,
    "total": 10,
    "page": 1,
    "limit": 2,
    "total_pages": 5,
    "data": [
        {
            "id": 11,
            "name": "Tài Khoản CapCut Pro Creator 1 Năm (PC, Mobile & Web)",
            "slug": "tai-khoan-capcut-pro-creator-1-nam-pc-mobile-web",
            "sku": "CAPCUT-1Y",
            "category_id": 2,
            "category_name": "Tài Khoản Đồ Họa & Biên Tập",
            "category_slug": "tai-khoan-do-hoa-bien-tap",
            "delivery_type": "auto_account",
            "is_upgrade": false,
            "custom_fields": null,
            "features": [
                "Đăng nhập đồng bộ PC, iOS, Android",
                "Auto Captions tiếng Việt chuẩn xác",
                "Xuất video 4K 60fps không watermark",
                "Giao tài khoản tự động trong 3 giây"
            ],
            "price": 199000,
            "sale_price": null,
            "effective_price": 199000,
            "discount_percent": 0,
            "stock_quantity": 45,
            "is_in_stock": true,
            "stock_status": "in_stock",
            "min_purchase": 1,
            "max_purchase": 50,
            "unit_name": "Tài khoản",
            "warranty_type": "exchange_1_1",
            "warranty_type_label": "Bảo hành đổi 1:1",
            "warranty_duration": 365,
            "warranty_unit": "days",
            "warranty_label": "Đổi 1:1 trong 365 ngày",
            "thumbnail": "uploads\/products\/20261110_220701_10cdaf258895.jpg",
            "thumbnail_url": "https:\/\/pstmmo.cc\/uploads\/products\/20261110_220701_10cdaf258895.jpg",
            "images": [
                {
                    "id": 101,
                    "image_path": "uploads\/products\/20261110_220701_10cdaf258895.jpg",
                    "url": "https:\/\/pstmmo.cc\/uploads\/products\/20261110_220701_10cdaf258895.jpg",
                    "alt_text": "CapCut Pro Banner 1",
                    "sort_order": 1
                },
                {
                    "id": 102,
                    "image_path": "uploads\/products\/capcut_features_2.jpg",
                    "url": "https:\/\/pstmmo.cc\/uploads\/products\/capcut_features_2.jpg",
                    "alt_text": "CapCut Pro Features",
                    "sort_order": 2
                }
            ],
            "gallery_urls": [
                "https:\/\/pstmmo.cc\/uploads\/products\/20261110_220701_10cdaf258895.jpg",
                "https:\/\/pstmmo.cc\/uploads\/products\/capcut_features_2.jpg"
            ],
            "total_images": 2
        }
    ]
}
GET /api/v1/products/{id_or_slug}/stock
Công khai (Public)

Kiểm tra tồn kho thời gian thực của 1 sản phẩm cụ thể theo ID hoặc Slug.

curl -X GET "https://pstmmo.cc/api/v1/products/11/stock" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
<?php
$ch = curl_init("https://pstmmo.cc/api/v1/products/11/stock");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOUR_API_KEY",
        "Accept: application/json",
    ],
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
}
r = requests.get("https://pstmmo.cc/api/v1/products/11/stock", headers=headers)
print(r.status_code, r.json())
const response = await fetch("https://pstmmo.cc/api/v1/products/11/stock", {
    method: "GET",
    headers: {
        "Authorization": "Bearer YOUR_API_KEY",
        "Accept": "application/json",
    },
});
const data = await response.json();
console.log(data);
Response 200 OK application/json
{
    "success": true,
    "data": {
        "id": 11,
        "name": "Tài Khoản CapCut Pro Creator 1 Năm",
        "slug": "tai-khoan-capcut-pro-creator-1-nam-pc-mobile-web",
        "sku": "CAPCUT-1Y",
        "delivery_type": "auto_account",
        "is_upgrade": false,
        "stock_quantity": 45,
        "is_in_stock": true,
        "stock_status": "in_stock",
        "unit_name": "Tài khoản",
        "min_purchase": 1,
        "max_purchase": 50,
        "price": 199000,
        "sale_price": null,
        "effective_price": 199000,
        "thumbnail_url": "https:\/\/pstmmo.cc\/uploads\/products\/20261110_220701_10cdaf258895.jpg",
        "checked_at": "2026-11-12 08:00:00"
    }
}
POST /api/v1/products/stocks
Hỗ trợ GET / POST

Kiểm tra tồn kho hàng loạt cho nhiều sản phẩm cùng lúc bằng mảng ID (ids=[11, 12, 13]) hoặc mã SKU (skus=["CAPCUT-1Y", "NETFLIX-1M"]).

curl -X POST "https://pstmmo.cc/api/v1/products/stocks" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d "{ \
        \"ids\": [ \
            11, \
            12, \
            15 \
        ] \
    }"
<?php
$ch = curl_init("https://pstmmo.cc/api/v1/products/stocks");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOUR_API_KEY",
        "Accept: application/json",
        "Content-Type": "application/json",
    ],
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => json_encode(array (
  'ids' => 
  array (
    0 => 11,
    1 => 12,
    2 => 15,
  ),
)),
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
}
payload = {"ids":[11,12,15]}
r = requests.post("https://pstmmo.cc/api/v1/products/stocks", headers=headers, json=payload)
print(r.status_code, r.json())
const response = await fetch("https://pstmmo.cc/api/v1/products/stocks", {
    method: "POST",
    headers: {
        "Authorization": "Bearer YOUR_API_KEY",
        "Accept": "application/json",
        "Content-Type": "application/json",
    },
    body: JSON.stringify({"ids":[11,12,15]}),
});
const data = await response.json();
console.log(data);
Response 200 OK application/json
{
    "success": true,
    "total": 3,
    "data": [
        {
            "id": 11,
            "sku": "CAPCUT-1Y",
            "name": "Tài Khoản CapCut Pro Creator 1 Năm",
            "stock_quantity": 45,
            "is_in_stock": true,
            "stock_status": "in_stock",
            "price": 199000,
            "effective_price": 199000,
            "thumbnail_url": "https:\/\/pstmmo.cc\/uploads\/products\/capcut.jpg"
        },
        {
            "id": 12,
            "sku": "NETFLIX-1M",
            "name": "Tài Khoản Netflix Premium 4K 1 Tháng",
            "stock_quantity": 18,
            "is_in_stock": true,
            "stock_status": "in_stock",
            "price": 89000,
            "effective_price": 89000,
            "thumbnail_url": "https:\/\/pstmmo.cc\/uploads\/products\/netflix.jpg"
        }
    ],
    "checked_at": "2026-11-12 08:00:00"
}

5. Mua Hàng & Đơn Hàng (Orders API)

Tự động đặt mua sản phẩm, thanh toán qua ví và nhận bàn giao tài khoản tức thì.

POST /api/v1/orders/buy
Yêu cầu API Key

Đặt mua sản phẩm. Nếu là sản phẩm loại "Nâng cấp chính chủ", bắt buộc gửi kèm đối tượng custom_fields chứa các trường đã cấu hình.

curl -X POST "https://pstmmo.cc/api/v1/orders/buy" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d "{ \
        \"product_id\": 11, \
        \"quantity\": 1, \
        \"coupon_code\": \"PSTMMO2026\", \
        \"custom_fields\": { \
            \"email\": \"[email protected]\", \
            \"password\": \"PassSecret123@\", \
            \"two_factor\": \"JBSWY3DPEHPK3PXP\" \
        } \
    }"
<?php
$ch = curl_init("https://pstmmo.cc/api/v1/orders/buy");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOUR_API_KEY",
        "Accept: application/json",
        "Content-Type": "application/json",
    ],
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => json_encode(array (
  'product_id' => 11,
  'quantity' => 1,
  'coupon_code' => 'PSTMMO2026',
  'custom_fields' => 
  array (
    'email' => '[email protected]',
    'password' => 'PassSecret123@',
    'two_factor' => 'JBSWY3DPEHPK3PXP',
  ),
)),
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
}
payload = {"product_id":11,"quantity":1,"coupon_code":"PSTMMO2026","custom_fields":{"email":"[email protected]","password":"PassSecret123@","two_factor":"JBSWY3DPEHPK3PXP"}}
r = requests.post("https://pstmmo.cc/api/v1/orders/buy", headers=headers, json=payload)
print(r.status_code, r.json())
const response = await fetch("https://pstmmo.cc/api/v1/orders/buy", {
    method: "POST",
    headers: {
        "Authorization": "Bearer YOUR_API_KEY",
        "Accept": "application/json",
        "Content-Type": "application/json",
    },
    body: JSON.stringify({"product_id":11,"quantity":1,"coupon_code":"PSTMMO2026","custom_fields":{"email":"[email protected]","password":"PassSecret123@","two_factor":"JBSWY3DPEHPK3PXP"}}),
});
const data = await response.json();
console.log(data);
Response 200 OK application/json
{
    "success": true,
    "message": "Mua hàng thành công!",
    "data": {
        "order_code": "PST-20261112-C8D2",
        "product_name": "Tài Khoản CapCut Pro Creator 1 Năm",
        "product_type": "auto_account",
        "quantity": 1,
        "unit_price": 199000,
        "total_amount": 199000,
        "balance_before": 500000,
        "balance_after": 301000,
        "status": "completed",
        "delivery_status": "delivered",
        "deliveries": [
            {
                "username": "[email protected]",
                "email": "[email protected]",
                "password": "SecurePass#9876",
                "extra_data": "2FA: JBSWY3DPEHPK3PXP",
                "raw_credential": "[email protected]|SecurePass#9876|2FA: JBSWY3DPEHPK3PXP",
                "expires_warranty_at": "2027-11-12 08:00:00"
            }
        ],
        "created_at": "2026-11-12 08:00:00"
    }
}

6. Công Cụ Trực Tuyến & Tiện Ích (Online Utility Tools API)

Bộ API công cụ tiện ích MMO: 2FA TOTP, Check Live Facebook UID, Check Instagram, Đọc thư Outlook/Hotmail/Gmail lấy OTP, Check Proxy, Sinh mật khẩu, Phân tích Cookie.

GET / POST /api/v1/tools/2fa
Công khai (Public)

Tạo mã xác thực 2FA TOTP 6 số từ khóa bí mật Base32 (hỗ trợ truyền cả chuỗi combo email|pass|secret).

curl -X GET "https://pstmmo.cc/api/v1/tools/2fa?secret=JBSWY3DPEHPK3PXP" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
<?php
$ch = curl_init("https://pstmmo.cc/api/v1/tools/2fa?secret=JBSWY3DPEHPK3PXP");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOUR_API_KEY",
        "Accept: application/json",
    ],
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
}
r = requests.get("https://pstmmo.cc/api/v1/tools/2fa?secret=JBSWY3DPEHPK3PXP", headers=headers)
print(r.status_code, r.json())
const response = await fetch("https://pstmmo.cc/api/v1/tools/2fa?secret=JBSWY3DPEHPK3PXP", {
    method: "GET",
    headers: {
        "Authorization": "Bearer YOUR_API_KEY",
        "Accept": "application/json",
    },
});
const data = await response.json();
console.log(data);
Response 200 OK application/json
{
    "success": true,
    "secret": "JBSWY3DPEHPK3PXP",
    "code": "482910",
    "formatted": "482 910",
    "time_remaining": 24
}
POST /api/v1/tools/check-live-uid
Đa luồng siêu tốc

Kiểm tra trạng thái tài khoản Facebook Live / Die / Checkpoint qua Graph API đa luồng (hỗ trợ tối đa 100 UID/lần).

curl -X POST "https://pstmmo.cc/api/v1/tools/check-live-uid" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d "{ \
        \"items\": [ \
            \"4\", \
            \"10008889998888\" \
        ] \
    }"
<?php
$ch = curl_init("https://pstmmo.cc/api/v1/tools/check-live-uid");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOUR_API_KEY",
        "Accept: application/json",
        "Content-Type": "application/json",
    ],
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => json_encode(array (
  'items' => 
  array (
    0 => '4',
    1 => '10008889998888',
  ),
)),
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
}
payload = {"items":["4","10008889998888"]}
r = requests.post("https://pstmmo.cc/api/v1/tools/check-live-uid", headers=headers, json=payload)
print(r.status_code, r.json())
const response = await fetch("https://pstmmo.cc/api/v1/tools/check-live-uid", {
    method: "POST",
    headers: {
        "Authorization": "Bearer YOUR_API_KEY",
        "Accept": "application/json",
        "Content-Type": "application/json",
    },
    body: JSON.stringify({"items":["4","10008889998888"]}),
});
const data = await response.json();
console.log(data);
Response 200 OK application/json
{
    "success": true,
    "total_checked": 2,
    "total_live": 1,
    "total_die": 1,
    "total_checkpoint": 0,
    "results": [
        {
            "uid": "4",
            "status": "live",
            "http_code": 302,
            "message": "Tài khoản đang hoạt động (Live)",
            "avatar_url": "https:\/\/graph.facebook.com\/4\/picture?type=normal",
            "profile_url": "https:\/\/www.facebook.com\/4"
        },
        {
            "uid": "10008889998888",
            "status": "die",
            "http_code": 404,
            "message": "Tài khoản không tồn tại hoặc đã bị vô hiệu hóa (Die)",
            "avatar_url": "https:\/\/static.xx.fbcdn.net\/rsrc.php\/v1\/yh\/r\/C5yt7Cqf3zU.jpg",
            "profile_url": "https:\/\/www.facebook.com\/10008889998888"
        }
    ]
}
POST /api/v1/tools/check-live-ig
Đa luồng

Kiểm tra trạng thái tài khoản Instagram Live hay Die theo username.

curl -X POST "https://pstmmo.cc/api/v1/tools/check-live-ig" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d "{ \
        \"items\": [ \
            \"cristiano\", \
            \"non_existing_ig_user_123456789\" \
        ] \
    }"
<?php
$ch = curl_init("https://pstmmo.cc/api/v1/tools/check-live-ig");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOUR_API_KEY",
        "Accept: application/json",
        "Content-Type": "application/json",
    ],
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => json_encode(array (
  'items' => 
  array (
    0 => 'cristiano',
    1 => 'non_existing_ig_user_123456789',
  ),
)),
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
}
payload = {"items":["cristiano","non_existing_ig_user_123456789"]}
r = requests.post("https://pstmmo.cc/api/v1/tools/check-live-ig", headers=headers, json=payload)
print(r.status_code, r.json())
const response = await fetch("https://pstmmo.cc/api/v1/tools/check-live-ig", {
    method: "POST",
    headers: {
        "Authorization": "Bearer YOUR_API_KEY",
        "Accept": "application/json",
        "Content-Type": "application/json",
    },
    body: JSON.stringify({"items":["cristiano","non_existing_ig_user_123456789"]}),
});
const data = await response.json();
console.log(data);
Response 200 OK application/json
{
    "success": true,
    "total_checked": 2,
    "total_live": 1,
    "total_die": 1,
    "results": [
        {
            "username": "cristiano",
            "status": "live",
            "message": "Tài khoản đang hoạt động (Live)",
            "profile_url": "https:\/\/www.instagram.com\/cristiano\/"
        }
    ]
}
POST /api/v1/tools/read-outlook
OAuth2 & Graph API

Đọc hộp thư Hotmail / Outlook tự động qua OAuth2 Refresh Token và tự trích xuất mã OTP xác nhận.

curl -X POST "https://pstmmo.cc/api/v1/tools/read-outlook" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d "{ \
        \"account\": \"[email protected]|pass|M.R3_BAY.0.A.-Cl7X...|4da73655-ebbc-4d24-8f6f-d99e314e64ab\" \
    }"
<?php
$ch = curl_init("https://pstmmo.cc/api/v1/tools/read-outlook");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOUR_API_KEY",
        "Accept: application/json",
        "Content-Type": "application/json",
    ],
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => json_encode(array (
  'account' => '[email protected]|pass|M.R3_BAY.0.A.-Cl7X...|4da73655-ebbc-4d24-8f6f-d99e314e64ab',
)),
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
}
payload = {"account":"[email protected]|pass|M.R3_BAY.0.A.-Cl7X...|4da73655-ebbc-4d24-8f6f-d99e314e64ab"}
r = requests.post("https://pstmmo.cc/api/v1/tools/read-outlook", headers=headers, json=payload)
print(r.status_code, r.json())
const response = await fetch("https://pstmmo.cc/api/v1/tools/read-outlook", {
    method: "POST",
    headers: {
        "Authorization": "Bearer YOUR_API_KEY",
        "Accept": "application/json",
        "Content-Type": "application/json",
    },
    body: JSON.stringify({"account":"[email protected]|pass|M.R3_BAY.0.A.-Cl7X...|4da73655-ebbc-4d24-8f6f-d99e314e64ab"}),
});
const data = await response.json();
console.log(data);
Response 200 OK application/json
{
    "success": true,
    "email": "[email protected]",
    "messages": [
        {
            "id": "AQMkADAwATM...",
            "subject": "123456 is your Instagram verification code",
            "sender_name": "Instagram",
            "sender_email": "[email protected]",
            "received_at": "12\/11\/2026 08:05",
            "otp": "123456"
        }
    ],
    "latest_otp": {
        "code": "123456",
        "service": "Instagram",
        "time": "12\/11\/2026 08:05"
    }
}
POST /api/v1/tools/read-gmail
Socket IMAP SSL

Đọc hộp thư Gmail lấy mã OTP xác minh bằng Mật khẩu ứng dụng (App Password).

curl -X POST "https://pstmmo.cc/api/v1/tools/read-gmail" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d "{ \
        \"account\": \"[email protected]|abcd efgh ijkl mnop\" \
    }"
<?php
$ch = curl_init("https://pstmmo.cc/api/v1/tools/read-gmail");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOUR_API_KEY",
        "Accept: application/json",
        "Content-Type": "application/json",
    ],
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => json_encode(array (
  'account' => '[email protected]|abcd efgh ijkl mnop',
)),
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
}
payload = {"account":"[email protected]|abcd efgh ijkl mnop"}
r = requests.post("https://pstmmo.cc/api/v1/tools/read-gmail", headers=headers, json=payload)
print(r.status_code, r.json())
const response = await fetch("https://pstmmo.cc/api/v1/tools/read-gmail", {
    method: "POST",
    headers: {
        "Authorization": "Bearer YOUR_API_KEY",
        "Accept": "application/json",
        "Content-Type": "application/json",
    },
    body: JSON.stringify({"account":"[email protected]|abcd efgh ijkl mnop"}),
});
const data = await response.json();
console.log(data);
Response 200 OK application/json
{
    "success": true,
    "email": "[email protected]",
    "messages": [
        {
            "subject": "Mã xác nhận bảo mật của bạn là: 894021",
            "sender_name": "Google Security",
            "sender_email": "[email protected]",
            "received_at": "12\/11\/2026 08:00",
            "otp": "894021"
        }
    ],
    "latest_otp": {
        "code": "894021",
        "service": "Google",
        "time": "12\/11\/2026 08:00"
    }
}
POST /api/v1/tools/check-proxy
HTTP / HTTPS / SOCKS5

Kiểm tra Proxy có hoạt động hay không, đo độ trễ Ping (ms) và phát hiện địa chỉ IP xuất thật (Exit IP).

curl -X POST "https://pstmmo.cc/api/v1/tools/check-proxy" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d "{ \
        \"proxy\": \"103.153.72.10:8080:user:pass\", \
        \"type\": \"http\" \
    }"
<?php
$ch = curl_init("https://pstmmo.cc/api/v1/tools/check-proxy");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOUR_API_KEY",
        "Accept: application/json",
        "Content-Type": "application/json",
    ],
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => json_encode(array (
  'proxy' => '103.153.72.10:8080:user:pass',
  'type' => 'http',
)),
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
}
payload = {"proxy":"103.153.72.10:8080:user:pass","type":"http"}
r = requests.post("https://pstmmo.cc/api/v1/tools/check-proxy", headers=headers, json=payload)
print(r.status_code, r.json())
const response = await fetch("https://pstmmo.cc/api/v1/tools/check-proxy", {
    method: "POST",
    headers: {
        "Authorization": "Bearer YOUR_API_KEY",
        "Accept": "application/json",
        "Content-Type": "application/json",
    },
    body: JSON.stringify({"proxy":"103.153.72.10:8080:user:pass","type":"http"}),
});
const data = await response.json();
console.log(data);
Response 200 OK application/json
{
    "success": true,
    "proxy": "103.153.72.10:8080:user:pass",
    "host": "103.153.72.10",
    "port": 8080,
    "type": "HTTP",
    "status": "LIVE",
    "ping_ms": 142,
    "exit_ip": "103.153.72.10",
    "message": "Proxy hoạt động tốt (Ping: 142ms, IP: 103.153.72.10)"
}
GET / POST /api/v1/tools/random-password
Bảo mật cao

Tạo mật khẩu ngẫu nhiên có độ dài tùy chọn (6-128 ký tự), hỗ trợ sinh danh sách hàng loạt (count=5).

curl -X GET "https://pstmmo.cc/api/v1/tools/random-password?length=16&count=2" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
<?php
$ch = curl_init("https://pstmmo.cc/api/v1/tools/random-password?length=16&count=2");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOUR_API_KEY",
        "Accept: application/json",
    ],
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
}
r = requests.get("https://pstmmo.cc/api/v1/tools/random-password?length=16&count=2", headers=headers)
print(r.status_code, r.json())
const response = await fetch("https://pstmmo.cc/api/v1/tools/random-password?length=16&count=2", {
    method: "GET",
    headers: {
        "Authorization": "Bearer YOUR_API_KEY",
        "Accept": "application/json",
    },
});
const data = await response.json();
console.log(data);
Response 200 OK application/json
{
    "success": true,
    "password": "mK#9zP$2vL!8xQ@1",
    "passwords": [
        "mK#9zP$2vL!8xQ@1",
        "qR&4tY*7wE#3uI^5"
    ],
    "count": 2,
    "length": 16
}
POST /api/v1/tools/parse-cookie
Chuẩn hóa Cookie

Phân tích và chuyển đổi chuỗi Cookie (String, Netscape, hoặc JSON) thành Header cURL và mảng Key-Value chuẩn.

curl -X POST "https://pstmmo.cc/api/v1/tools/parse-cookie" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d "{ \
        \"cookie\": \"c_user=1000888999; xs=28%3Aabcedf1234; datr=xyz;\" \
    }"
<?php
$ch = curl_init("https://pstmmo.cc/api/v1/tools/parse-cookie");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer YOUR_API_KEY",
        "Accept: application/json",
        "Content-Type": "application/json",
    ],
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => json_encode(array (
  'cookie' => 'c_user=1000888999; xs=28%3Aabcedf1234; datr=xyz;',
)),
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Accept': 'application/json',
}
payload = {"cookie":"c_user=1000888999; xs=28%3Aabcedf1234; datr=xyz;"}
r = requests.post("https://pstmmo.cc/api/v1/tools/parse-cookie", headers=headers, json=payload)
print(r.status_code, r.json())
const response = await fetch("https://pstmmo.cc/api/v1/tools/parse-cookie", {
    method: "POST",
    headers: {
        "Authorization": "Bearer YOUR_API_KEY",
        "Accept": "application/json",
        "Content-Type": "application/json",
    },
    body: JSON.stringify({"cookie":"c_user=1000888999; xs=28%3Aabcedf1234; datr=xyz;"}),
});
const data = await response.json();
console.log(data);
Response 200 OK application/json
{
    "success": true,
    "total_cookies": 3,
    "cookies": {
        "c_user": "1000888999",
        "xs": "28%3Aabcedf1234",
        "datr": "xyz"
    },
    "header_string": "c_user=1000888999; xs=28%3Aabcedf1234; datr=xyz",
    "curl_header": "-H \"Cookie: c_user=1000888999; xs=28%3Aabcedf1234; datr=xyz\""
}

7. Bảng Mã Lỗi & HTTP Status

Danh sách các mã lỗi chuẩn REST API trả về khi có sự cố xử lý.

HTTP Status Error Code Mô tả chi tiết
200 OK - Yêu cầu được thực thi thành công.
400 Bad Request INSUFFICIENT_BALANCE Số dư tài khoản không đủ để thanh toán đơn hàng.
400 Bad Request OUT_OF_STOCK Số lượng tồn kho không đủ để đáp ứng yêu cầu.
401 Unauthorized UNAUTHORIZED Thiếu API Key hoặc API Key không hợp lệ.
404 Not Found NOT_FOUND Sản phẩm, danh mục hoặc đơn hàng không tồn tại.
422 Unprocessable MISSING_CUSTOM_FIELDS Chưa khai báo đủ các trường tùy chỉnh bắt buộc đối với sản phẩm Nâng cấp.