Developer Docs

API Reference

Integrate Pataviews SMM services directly into your platform. Build reseller panels, automate orders, and manage your account programmatically.

Quick Start

  1. Create a free account at pataviews.co.ke
  2. Go to Dashboard → API tab and generate your API key
  3. Make a POST request to https://pataviews.co.ke/functions/resellerApi
  4. Use your key and start placing orders instantly

Base URL

https://pataviews.co.ke/functions/resellerApi
All requests must include api_key in the JSON body. All endpoints use POST method with Content-Type: application/json.

Endpoints

POST
List Services— Fetch all available packages

Parameters

ParameterTypeRequiredDescription
actionstringYes"services"
api_keystringYesYour API key

Code Example

const res = await fetch('https://pataviews.co.ke/functions/resellerApi', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ action: 'services', api_key: 'YOUR_API_KEY' })
});
const data = await res.json();
console.log(data.services);
POST
Check Balance— Get your current wallet balance

Parameters

ParameterTypeRequiredDescription
actionstringYes"balance"
api_keystringYesYour API key

Code Example

const res = await fetch('https://pataviews.co.ke/functions/resellerApi', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ action: 'balance', api_key: 'YOUR_API_KEY' })
});
const { balance, currency } = await res.json();
POST
Place Order— Place a new SMM order

Parameters

ParameterTypeRequiredDescription
actionstringYes"order"
api_keystringYesYour API key
servicestringYesService ID from List Services
linkstringYesTarget URL or username
quantitynumberYesNumber of units to order

Code Example

const res = await fetch('https://pataviews.co.ke/functions/resellerApi', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    action: 'order',
    api_key: 'YOUR_API_KEY',
    service: 'SERVICE_ID',
    link: 'https://tiktok.com/@yourprofile',
    quantity: 1000
  })
});
const data = await res.json();
console.log('Order ID:', data.order);
POST
Order Status— Check the status of an order

Parameters

ParameterTypeRequiredDescription
actionstringYes"status"
api_keystringYesYour API key
orderstringYesOrder ID returned from Place Order

Code Example

const res = await fetch('https://pataviews.co.ke/functions/resellerApi', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ action: 'status', api_key: 'YOUR_API_KEY', order: 'ORDER_ID' })
});
const data = await res.json();
console.log(data.status);

Rate Limits

You can regenerate your API key up to 3 times every 24 hours. Exceeding this locks key changes for 30 minutes. API requests have no hard limit but abuse may result in account suspension.

Response Format

// Success
{ "status": "success", "order": "12345", ... }

// Error
{ "error": "Invalid API key" }

Ready to Build?

Sign up free and get your API key in seconds.

Create Free Account