API Documentation

Integrate dbplug services directly into your application.

Base URL

All API requests should be prefixed with the following base URL:

https://dbplug.com/api/v1

For development/testing: http://localhost:3000/api/v1

Authentication

All API requests must be authenticated using your unique API Key. Include it in the Authorization header.

curl -H "Authorization: Bearer YOUR_API_KEY" https://dbplug.com/api/v1/balance

Note: Keep your API key secure. Do not share it or expose it in client-side code.

Get Services

GET /api/v1/services
Get available services. Filter by type: `smm`, `sms`, `account`.

Social Media Marketing services.

[ { "service": 101, "name": "Instagram Likes [Instant]", "type": "smm", "category": "Instagram Likes", "rate": 500, // Price per 1000 "min": 10, "max": 10000 } ]
Filter: ?type=smm

User Balance

GET /api/v1/balance
Check your current wallet balance.
{
    "balance": 25000.00,
    "currency": "NGN",
    "status": "active"
}

Create Order

POST /api/v1/orders
Place a new order. Payload varies by service type.

Request Body

{
    "service": 101,          // SMM Service ID
    "link": "https://...",   // Post/Profile Link
    "quantity": 1000         // Quantity
}

Node.js Example

const payload = {
    service: 101,
    link: "https://instagram.com/p/...",
    quantity: 1000
};

await fetch('https://dbplug.com/api/v1/orders', {
    method: 'POST',
    headers: {
        'Authorization': 'Bearer YOUR_KEY',
        'Content-Type': 'application/json'
    },
    body: JSON.stringify(payload)
});

Order Status

GET /api/v1/orders/:id
Check status and get delivery details (SMS codes, Credentials).
// Response
{
    "id": "ord_123...",
    "status": "completed",
    "delivery": {
        "code": "123456",    // SMS Code (if SMS)
        "phone": "+123...",
        "accounts": [...]      // Credentials (if Account)
    }
}