API documentation
In the standard SMM panel format: one endpoint, the action in the action field and your key. You create the key on the API page of the dashboard after signing up.
1. Create order
Creates a new order using your available balance. The amount is charged immediately; if the order fails later, the refund is automatic.
{
"key": "your_api_key_here",
"action": "add",
"service": 1041,
"link": "https://instagram.com/p/...",
"quantity": 1000
}{ "order": "7b43k6tk-gLSJ-975r-tpoH-2YH8tA36ggPL" }
// WARNING: the order id is a STRING (UUID), not a number.
// Store it as text — converting it to an integer loses the value.2. Order status
Checks the status and progress of an order. Use the `order` exactly as it came back in the `add` response: it is a string.
{
"key": "your_api_key_here",
"action": "status",
"order": "7b43k6tk-gLSJ-975r-tpoH-2YH8tA36ggPL"
}{
"charge": "16.5000",
"start_count": "0",
"status": "In progress",
"remains": "850",
"currency": "BRL"
}3. Status of multiple orders
Same `status` action, with `orders` (plural) and up to 100 comma-separated ids. This is the right way to sync a whole portfolio without exceeding your key's limit. The response is indexed by id; an id that is not yours comes back as an error at its own position.
{
"key": "your_api_key_here",
"action": "status",
"orders": "7b43k6tk-gLSJ-...,9af21c30-77bd-..."
}{
"7b43k6tk-gLSJ-...": {
"charge": "16.5000", "start_count": "0",
"status": "In progress", "remains": "850", "currency": "BRL"
},
"9af21c30-77bd-...": { "error": "Pedido não encontrado." }
}4. Refill
Requests a refill for a COMPLETED order, for when the delivery drops after completion. Only valid for services with `refill: true`, within 30 days of completion, and once every 24 hours per order. Keep the returned id: `refill_status` queries the order's most recent refill, and an earlier id can no longer be found once a new one is requested.
{
"key": "your_api_key_here",
"action": "refill",
"order": "7b43k6tk-gLSJ-975r-tpoH-2YH8tA36ggPL"
}
// Several at once (up to 10): use "orders" and receive an array.
{ "key": "...", "action": "refill", "orders": "id1,id2" }{ "refill": "RF-77" }
// with "orders":
[ { "order": "id1", "refill": "RF-77" },
{ "order": "id2", "refill": { "error": "Este serviço não oferece reposição.",
"error_code": "REFILL_NOT_AVAILABLE" } } ]5. Refill status
Checks the progress of a refill already requested, using the id returned by `refill`. For several at once (up to 10), use `refills` and receive an array.
{
"key": "your_api_key_here",
"action": "refill_status",
"refill": "RF-77"
}
// Several at once:
{ "key": "...", "action": "refill_status", "refills": "RF-77,RF-80" }{ "status": "Completed" }
// with "refills":
[ { "refill": "RF-77", "status": "Completed" },
{ "refill": "RF-80", "status": { "error": "Reposição não encontrada.",
"error_code": "REFILL_NOT_FOUND" } } ]6. Cancel order
Cancels an order that has not finished yet and returns to your balance whatever was not delivered. If delivery has already started, the cancellation only takes effect once confirmed — track it through `status`. Up to 10 ids per call; the response is always an array.
{
"key": "your_api_key_here",
"action": "cancel",
"orders": "7b43k6tk-gLSJ-975r-tpoH-2YH8tA36ggPL"
}[ { "order": "7b43k6tk-gLSJ-...", "cancel": 1 } ]
// refusal:
[ { "order": "...", "cancel": { "error": "Só dá para cancelar um pedido que ainda não terminou.",
"error_code": "CANCEL_NOT_AVAILABLE" } } ]7. Get balance
Returns your account's current balance.
{
"key": "your_api_key_here",
"action": "balance"
}{ "balance": "496.8800", "currency": "BRL" }8. List services
Returns all available services with their IDs and prices. The `service` field of each item is the ID you use in `add`, the same number shown in the ID column of the catalog. The `rate` already includes your account's discount, when there is one, and is the amount charged in `add`. The `type` field tells which parameters that service requires in `add` (see below). The same list, as a spreadsheet, is available through the download button on the Services screen.
{
"key": "your_api_key_here",
"action": "services"
}[
{
"service": 99003,
"name": "Instagram Curtidas",
"type": "Default",
"category": "Instagram — Curtidas",
"rate": "16.5000", // per 1000, in BRL
"min": "50",
"max": "20000",
"refill": false,
"cancel": true
}
]9. Order with type-specific parameters
Services that are not of the "Default" type require additional fields, using the same names as the market standard. For "Custom Comments" and "Package", the quantity is not sent: it comes from the list or from the package size. Check the service's `type` field in `action: services`.
// type: "Custom Comments" — no quantity
{
"key": "your_api_key_here",
"action": "add",
"service": 1042,
"link": "https://instagram.com/p/...",
"comments": "first comment\nsecond comment"
}
// type: "Mentions" | "SEO" | "Poll" | "Web Traffic" ...
// usernames / keywords / answer_number / country+device+type_of_traffic
// type: "Package" — link only
{ "key": "...", "action": "add", "service": 1043, "link": "https://..." }
// Staged delivery: only where action=services returns "dripfeed": true.
// quantity is PER RUN; the charge is quantity × runs. interval in minutes.
{ "key": "...", "action": "add", "service": 1044, "link": "https://...",
"quantity": 200, "runs": 5, "interval": 30 }10. Simulate order (no charge)
The same parameters as `add`, with the same validations and the same calculation, but nothing is charged and no order is created. It returns the exact amount for your account and whether your balance covers it. Use it to check the price before ordering; the key only needs read permission.
{
"key": "your_api_key_here",
"action": "quote",
"service": 1041,
"link": "https://instagram.com/p/...",
"quantity": 1500
}{ "service": 1041, "quantity": "1500", "charge": "15.0000", "currency": "BRL",
"balance": "496.8800", "enough_balance": true }Error format
Every failure responds with HTTP 200, as the market standard dictates. Check error before reading any other field; do not rely on the HTTP status code. The two exceptions are 429 (rate limit exceeded: wait) and 500 (our failure: you can retry later).
For your code to decide what to do, use error_code, which does not change, and not the text of error. retryable: true means that repeating the same request later may succeed. The error text comes in Portuguese.
{ "error": "Saldo insuficiente.", "error_code": "INSUFFICIENT_BALANCE", "retryable": false }
INVALID_KEY wrong or revoked key
INVALID_ACTION unknown action
INVALID_PARAMETER missing parameter or one that breaks the rules
TOO_MANY_IDS batch above the ceiling
SERVICE_NOT_FOUND service does not exist or left the catalog
SERVICE_UNAVAILABLE service currently paused
MINIMUM_ORDER_AMOUNT order below the minimum amount
INSUFFICIENT_BALANCE balance lower than the order
LINK_BUSY an order is already in progress on this link (retryable)
ORDER_NOT_FOUND order is not yours or does not exist
REFILL_NOT_FOUND refill is not yours or does not exist
REFILL_NOT_AVAILABLE refill does not apply to this order right now
CANCEL_NOT_AVAILABLE cancellation does not apply to this order
RATE_LIMITED rate limit (HTTP 429, retryable)
PROVIDER_ERROR temporary failure sending the order (retryable)
INTERNAL_ERROR our failure (HTTP 500, retryable)Request format
We accept JSON (Content-Type: application/json) and form-urlencoded, the format used by most panels. All actions live on the same endpoint; what changes is the action field.
GET with the parameters in the query string also works, for panels that can only speak that way. Prefer POST: in a URL, your key ends up recorded in access logs (ours and those of any proxy along the way). If you must use GET, treat the key as exposed and rotate it periodically. You can keep several keys and revoke one without taking down the others.
Rate limit
Each key accepts 600 requests per minute. There is also a limit of 1,200 per minute per source IP, summing all keys coming from the same server.
When exceeded, the response is 429 with the Retry-After header: the seconds left until you are cleared. To track many orders, use status with orders (up to 100 per call) instead of one order at a time.
Avoiding duplicate orders
If the connection drops after you send an add, you do not know whether the order went through. Send request_id along (we also accept idempotencyKey): resending with the same value returns the order already created instead of charging again. It can be the order id in your panel, up to 128 characters, with no spaces.
{ "key": "...", "action": "add", "service": 1041,
"link": "https://...", "quantity": 1000,
"request_id": "48213" }AI assistant (MCP)
Claude, Cursor and other assistants that speak MCP can query the catalog and, with your key, check the balance, simulate and place orders. Address: https://smmpix.com/api/mcp (Streamable HTTP). Catalog search works without a key; for the account, send the key in the Authorization: Bearer smmx_... header.
The assistant only buys after simulating and repeating the amount you confirmed: if the price is different, nothing is charged. To let it only query, create a read-only key. Deposits, cancellations and refills do not go through MCP.
claude mcp add --transport http smmpix https://smmpix.com/api/mcp \ --header "Authorization: Bearer your_api_key_here"
PHP example
A ready-to-paste client for your panel. Requires PHP 7.4 or newer with the curl extension.
<?php
// Cliente da API do SMMPix. PHP 7.4+ com a extensão curl.
class SmmpixApi
{
private $url = 'https://smmpix.com/api/v2';
private $key;
public function __construct(string $key)
{
$this->key = $key;
}
private function call(array $params): array
{
$ch = curl_init($this->url);
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query(['key' => $this->key] + $params),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
]);
$body = curl_exec($ch);
$http = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$netError = curl_error($ch);
curl_close($ch);
if ($body === false) {
throw new RuntimeException('Falha de rede: ' . $netError);
}
if ($http === 429) {
throw new RuntimeException('Limite de requisicoes. Espere 60 segundos.');
}
$data = json_decode($body, true);
if (!is_array($data)) {
throw new RuntimeException('Resposta inesperada (HTTP ' . $http . ')');
}
// Falha vem com HTTP 200: confira "error" antes de qualquer campo.
if (isset($data['error'])) {
throw new RuntimeException($data['error']);
}
return $data;
}
public function services(): array
{
return $this->call(['action' => 'services']);
}
public function balance(): array
{
return $this->call(['action' => 'balance']);
}
// $idempotencyKey: um id SEU, unico por pedido (ex.: o id do pedido no
// seu painel). Reenviar com o mesmo valor devolve o pedido ja criado.
public function add(int $service, string $link, int $quantity, string $idempotencyKey): string
{
$r = $this->call([
'action' => 'add',
'service' => $service,
'link' => $link,
'quantity' => $quantity,
'idempotencyKey' => $idempotencyKey,
]);
return (string) $r['order']; // UUID: guarde como TEXTO
}
public function status(string $order): array
{
return $this->call(['action' => 'status', 'order' => $order]);
}
// Ate 100 ids por chamada. Resposta indexada pelo id.
public function multiStatus(array $orders): array
{
return $this->call(['action' => 'status', 'orders' => implode(',', $orders)]);
}
}
// Uso
$api = new SmmpixApi('sua_chave_api_aqui');
try {
$saldo = $api->balance();
echo 'Saldo: ' . $saldo['balance'] . ' ' . $saldo['currency'] . PHP_EOL;
} catch (RuntimeException $e) {
echo 'Erro: ' . $e->getMessage() . PHP_EOL;
}
services, balance, quote, add, status, refill, refill_status and cancel. Checking status accepts up to 100 orders per call; the actions that change the order (refill and cancel) accept up to 10, because each one is processed immediately, one by one. refill and cancel only apply to services that return refill: true / cancel: true in action: services.