API Documentation

v1

Integrate SMM Diamond services seamlessly into your panel, application, bot, or automated workflows.

API Service Active
Method: POST
Content-Type: application/x-www-form-urlencoded
Response: JSON
API Authentication You need an active API key to send requests. Sign in to your account to view your key or generate a new one.
POST

Service List

action=services
Realtime Catalog

Retrieve the complete catalog of active services including rates, order limits, refill, and cancellation capabilities.

Parameters
Parameter Type Requirement Description
key string Required Your 32-character API key.
action string Required Must be exact string services.
Integration Code
curl -X POST "https://smmdiamond.com/api/v1" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "key=YOUR_API_KEY" \
  -d "action=services"
<?php
$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL => "https://smmdiamond.com/api/v1",
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => http_build_query([
        'key' => 'YOUR_API_KEY',
        'action' => 'services',
    ]),
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_SSL_VERIFYPEER => true,
]);

$response = curl_exec($ch);
curl_close($ch);

$services = json_decode($response, true);
print_r($services);
import requests

url = "https://smmdiamond.com/api/v1"
payload = {
    "key": "YOUR_API_KEY",
    "action": "services"
}

response = requests.post(url, data=payload, timeout=30)
services = response.json()
print(services)
Example Response (200 OK)
[
  {
    "service": 100,
    "name": "FB View 3s/Reels",
    "type": "Default",
    "rate": 0.1,
    "min": 500,
    "max": 10000000,
    "refill": false,
    "cancel": false,
    "category": "FB View Services"
  },
  {
    "service": 500,
    "name": "FB Livestream 30 mins",
    "type": "Default",
    "rate": 0.5,
    "min": 50,
    "max": 2000,
    "refill": false,
    "cancel": false,
    "category": "FB Live Services"
  }
]
POST

Add Order

action=add
Instant Order Creation

Submit a new order with a target URL link and requested quantity. Balance is automatically deducted upon successful validation.

Parameters
Parameter Type Requirement Description
key string Required Your 32-character API key.
action string Required Must be exact string add.
service integer Required Service ID (must match an active service in the Service List).
link string Required Target URL (must be a valid URL with http:// or https://).
quantity integer Required Order quantity. Must be between service min and max.
Integration Code
curl -X POST "https://smmdiamond.com/api/v1" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "key=YOUR_API_KEY" \
  -d "action=add" \
  -d "service=100" \
  -d "link=https://example.com/post/123" \
  -d "quantity=1000"
<?php
$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL => "https://smmdiamond.com/api/v1",
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => http_build_query([
        'key' => 'YOUR_API_KEY',
        'action' => 'add',
        'service' => 100,
        'link' => 'https://example.com/post/123',
        'quantity' => 1000,
    ]),
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_SSL_VERIFYPEER => true,
]);

$response = curl_exec($ch);
curl_close($ch);

$result = json_decode($response, true);
print_r($result);
import requests

url = "https://smmdiamond.com/api/v1"
payload = {
    "key": "YOUR_API_KEY",
    "action": "add",
    "service": 100,
    "link": "https://example.com/post/123",
    "quantity": 1000
}

response = requests.post(url, data=payload, timeout=30)
result = response.json()
print(result)
{
  "order": 1125,
  "charge": 0.05
}
{
  "error": "The Link format is invalid."
}
POST

Order Status

action=status
Single Order Tracking

Query live progress, initial start count, remaining quantity, and billing charge for a specific order.

Parameters
Parameter Type Requirement Description
key string Required Your 32-character API key.
action string Required Must be exact string status.
order integer Required Order ID returned when placing the order.
Integration Code
curl -X POST "https://smmdiamond.com/api/v1" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "key=YOUR_API_KEY" \
  -d "action=status" \
  -d "order=1125"
<?php
$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL => "https://smmdiamond.com/api/v1",
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => http_build_query([
        'key' => 'YOUR_API_KEY',
        'action' => 'status',
        'order' => 1125,
    ]),
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_SSL_VERIFYPEER => true,
]);

$response = curl_exec($ch);
curl_close($ch);

$status = json_decode($response, true);
print_r($status);
import requests

url = "https://smmdiamond.com/api/v1"
payload = {
    "key": "YOUR_API_KEY",
    "action": "status",
    "order": 1125
}

response = requests.post(url, data=payload, timeout=30)
status = response.json()
print(status)
{
  "charge": "0.011",
  "start_count": "3572",
  "status": "Pending",
  "remains": "157",
  "currency": "USD"
}
{
  "error": "Incorrect Order"
}
POST

Multiple Orders Status

action=status
Batch Query (up to 100)

Check status for up to 100 orders in a single API call by passing comma-separated order IDs.

Parameters
Parameter Type Requirement Description
key string Required Your 32-character API key.
action string Required Must be exact string status.
orders string Required Order IDs separated by a comma (e.g. 11,15,20). Maximum 100 IDs.
Integration Code
curl -X POST "https://smmdiamond.com/api/v1" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "key=YOUR_API_KEY" \
  -d "action=status" \
  -d "orders=11,15,20"
<?php
$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL => "https://smmdiamond.com/api/v1",
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => http_build_query([
        'key' => 'YOUR_API_KEY',
        'action' => 'status',
        'orders' => '11,15,20',
    ]),
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_SSL_VERIFYPEER => true,
]);

$response = curl_exec($ch);
curl_close($ch);

$statuses = json_decode($response, true);
print_r($statuses);
import requests

url = "https://smmdiamond.com/api/v1"
payload = {
    "key": "YOUR_API_KEY",
    "action": "status",
    "orders": "11,15,20"
}

response = requests.post(url, data=payload, timeout=30)
statuses = response.json()
print(statuses)
Example Response (200 OK)
{
  "11": {
    "charge": 0.1,
    "start_count": 0,
    "status": "Pending",
    "remains": 1000,
    "currency": "USD"
  },
  "15": {
    "charge": 0.1,
    "start_count": 0,
    "status": "Completed",
    "remains": 0,
    "currency": "USD"
  },
  "20": {
    "error": "Incorrect OrderID"
  }
}
POST

User Balance

action=balance
Wallet Check

Retrieve your current account wallet balance and billing currency.

Parameters
Parameter Type Requirement Description
key string Required Your 32-character API key.
action string Required Must be exact string balance.
Integration Code
curl -X POST "https://smmdiamond.com/api/v1" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "key=YOUR_API_KEY" \
  -d "action=balance"
<?php
$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL => "https://smmdiamond.com/api/v1",
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => http_build_query([
        'key' => 'YOUR_API_KEY',
        'action' => 'balance',
    ]),
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_SSL_VERIFYPEER => true,
]);

$response = curl_exec($ch);
curl_close($ch);

$balance = json_decode($response, true);
print_r($balance);
import requests

url = "https://smmdiamond.com/api/v1"
payload = {
    "key": "YOUR_API_KEY",
    "action": "balance"
}

response = requests.post(url, data=payload, timeout=30)
balance = response.json()
print(balance)
Example Response (200 OK)
{
  "balance": 2998.7898,
  "currency": "USD"
}
ERRORS

Error Responses Reference

Troubleshooting Guide

When a request fails validation or authentication, the API returns an HTTP 200 response with a JSON object containing an "error" key explaining the failure.

Error Response Payload HTTP Status Cause / Condition Remediation
{"error": "The Key field is required."} 200 OK Parameter key is omitted or null in request. Include your 32-character API key in the POST body.
{"error": "These credentials do not match our records."} 200 OK The provided API key does not match any registered user. Verify your key on the Account page or generate a new one.
{"error": "The Action field is required."} 200 OK Parameter action is omitted or empty. Specify a valid action: services, add, status, or balance.
{"error": "The Service ID field is required."} 200 OK Missing or non-numeric service parameter in add. Provide a valid positive integer service ID.
{"error": "The selected Service is invalid."} 200 OK The specified service ID does not exist in the database. Fetch the active service list via action=services to verify valid service IDs.
{"error": "Service must be activated."} 200 OK The service exists but is currently deactivated. Select another active service or contact support.
{"error": "The Link field is required."} 200 OK Missing parameter link in action=add. Provide the URL link to the target post, video, or profile.
{"error": "The Link format is invalid."} 200 OK The URL does not pass valid URL validation. Ensure the URL is well-formed with http:// or https:// protocol.
{"error": "The Quantity must be a number."} 200 OK Non-numeric value submitted for quantity. Provide a positive integer for quantity.
{"error": "The Quantity must be between :min and :max."} 200 OK Quantity is smaller than service minimum or larger than maximum. Adjust quantity to fall within the service's allowed range.
{"error": "You don't have enough money to pay."} 200 OK Account wallet balance is lower than total order cost. Deposit funds into your account or reduce order quantity.
{"error": "The Order field is required."} 200 OK Neither order nor orders parameter was provided for status query. Supply order for a single query or orders for a batch query.
{"error": "Incorrect Order"} 200 OK Order ID does not exist or does not belong to your account. Check that the order ID was created by your account.
{"<id>": {"error": "Incorrect OrderID"}} 200 OK One of the IDs in batch status check is not found or unauthorized. Other valid order IDs in the batch will still return valid status objects.
{"error": "Something went wrong"} 200 OK Internal server or database exception during order execution. Retry request with exponential backoff or contact support.
SECURITY

Integration Guidelines & Best Practices

Reseller Security
Server-Side Only

Never expose your API key in client-side code (Vue, React, plain JS, or mobile apps). Always proxy API calls through your backend server to safeguard your account balance.

Rate Limiting (60/min)

The API allows up to 60 requests per minute per IP address. Implement queuing on your end to prevent burst spikes and avoid HTTP 429 Too Many Requests responses.

Timeouts & Retries

Set your HTTP client connection timeout to 30 seconds. On network timeouts, query order status or use exponential backoff retries rather than immediately resubmitting orders.

Service Catalog Caching

Service rates and limits do not change frequently. Cache the service list locally on your server for 5–15 minutes to improve application responsiveness and reduce network load.