Back
Log Hub LogoLog Hub/ API Docs
Resellers API Reference

Log Hub Marketplace API

Programmatic access to wallet, SMS verification, and log products. All endpoints require authentication via your personal API key.

Base URL

url
https://loghubmarketplace.site/api/reseller-api

Authentication Header

http
x-api-key: YOUR_PERSONAL_API_KEY

Every request must include the x-api-key header. Generate your key at loghubmarketplace.site on the Resellers page.

Wallet

GET/balance

Retrieve your current wallet balance in Nigerian Naira (NGN).

Response

json
{
  "success": true,
  "data": {
    "wallet_balance": 5000.00,
    "currency": "NGN"
  }
}

SMS Verification

GET/sms/services

List all available SMS verification services with their prices in NGN.

Response

json
[
  {
    "service_id": "google",
    "name": "Google",
    "price": 120.00,
    "currency": "NGN"
  },
  {
    "service_id": "whatsapp",
    "name": "WhatsApp",
    "price": 150.00,
    "currency": "NGN"
  }
]
POST/sms/buy

Rent a virtual phone number for the specified service. Charges your wallet immediately.

Request Body

json
{
  "service_id": "google"
}

Response

json
{
  "success": true,
  "order_id": "ORD_abc123",
  "phone_number": "+234XXXXXXXXXX",
  "service": "Google",
  "expires_at": "2025-01-01T12:20:00Z"
}
POST/sms/status

Check the status of a rented number and retrieve the received SMS code.

Possible status values: "waiting", "received", "cancelled", "expired"

Request Body

json
{
  "order_id": "ORD_abc123"
}

Response

json
{
  "phone_number": "+234XXXXXXXXXX",
  "code": "123456",
  "status": "received"
}
POST/sms/cancel

Cancel a rented number before the code is received. A refund is automatically applied to your wallet.

Request Body

json
{
  "order_id": "ORD_abc123"
}

Response

json
{
  "success": true,
  "message": "Order cancelled. Refund applied to wallet.",
  "refunded_amount": 120.00,
  "currency": "NGN"
}

Logs (King + Lite Servers)

GET/logs/products

Retrieve all available log products from both King and Lite servers combined. Product IDs are prefixed to indicate the server.

product_id prefix "king_" routes to King server; "lite_" routes to Lite server.

Response

json
[
  {
    "product_id": "king_001",
    "server": "king",
    "name": "USA Bank Logs",
    "category": "Banking",
    "stock": 45,
    "price": 2500.00,
    "currency": "NGN"
  },
  {
    "product_id": "lite_007",
    "server": "lite",
    "name": "UK Email Logs",
    "category": "Email",
    "stock": 12,
    "price": 800.00,
    "currency": "NGN"
  }
]
POST/logs/buy

Purchase log products. The server is auto-routed based on the product_id prefix. Returns credentials upon success.

Request Body

json
{
  "product_id": "king_001",
  "qty": 2
}

Response

json
{
  "order_id": "ORD_xyz789",
  "server": "king",
  "product_name": "USA Bank Logs",
  "quantity": 2,
  "unit_price": 2500.00,
  "total_charged": 5000.00,
  "credentials": [
    { "username": "user@bank.com", "password": "pass123" },
    { "username": "user2@bank.com", "password": "pass456" }
  ]
}

Error Codes

401Unauthorized

Missing or invalid x-api-key header.

402Payment Required

Insufficient wallet balance to complete the request.

404Not Found

The requested product or SMS service was not found.

502Bad Gateway

Upstream provider failure. Retry after a short delay.

Need Help?

Reach out to our support team on Telegram for API issues, key generation, or integration help.

Contact on Telegram