Provider API v2
Connect your panel
Add us as a provider in PerfectPanel or any panel that speaks the standard provider API, import services, and know exactly how your panel reads our answers.
What you need
- An API key from Dashboard → API keys with all four scopes. Panels call
services,add,status,refill,refill_status,cancelandbalance. - Some balance. Orders are charged when they’re placed; a panel order fails with “Not enough funds on balance” if you run dry.
- If you lock the key to IP addresses, your panel’s outgoing address. Hosted panels publish theirs; ask your panel’s support if unsure.
PerfectPanel
The provider form needs two values:
https://ultrasmm.io/api/v2tk_live_… (your key)- In your panel’s admin, open Settings → Providers and choose Add provider.
- Paste the API URL and your key, and save. The panel calls
balanceto check them — you should see your balance next to the provider. - Open Services, add a service and pick our provider as the source. The panel calls
servicesand lists ours with their IDs, types, rates, minimums and maximums. - Choose the services to sell and set your price. Our
rateis what you pay per 1,000; your panel’s price is what your customers pay. Keep the type we report (Default, Custom Comments or Comment Likes) so the panel shows the right order fields. - Place a small test order from your panel and watch it move through Pending, Processing and In progress in the order list. The same order appears in your dashboard with its full timeline.
Menu names differ slightly between panel versions and themes. What matters is that the panel stores the API URL exactly as shown — with /api/v2 and no trailing slash — and that it sends requests as POST.
Other panels and your own scripts
Any panel that supports “standard” or “PerfectPanel-compatible” providers works with the same URL and key. If you’re writing the integration yourself, this is the whole protocol in one class:
<?php
/**
* Minimal client for the tiksmm provider API v2.
* The same shape as the standard "Api" class most panels ship with.
*/
class TiksmmApi
{
public string $apiUrl = 'https://ultrasmm.io/api/v2';
public function __construct(private string $apiKey) {}
public function services(): array { return $this->call(['action' => 'services']); }
public function balance(): array { return $this->call(['action' => 'balance']); }
/** $data: service, link, quantity — plus runs/interval, comments or username. */
public function order(array $data): array
{
return $this->call(['action' => 'add'] + $data);
}
public function status(int $orderId): array
{
return $this->call(['action' => 'status', 'order' => $orderId]);
}
/** Up to 100 IDs per call. */
public function multiStatus(array $orderIds): array
{
return $this->call(['action' => 'status', 'orders' => implode(',', $orderIds)]);
}
public function refill(int $orderId): array
{
return $this->call(['action' => 'refill', 'order' => $orderId]);
}
public function multiRefill(array $orderIds): array
{
return $this->call(['action' => 'refill', 'orders' => implode(',', $orderIds)]);
}
public function refillStatus(int $refillId): array
{
return $this->call(['action' => 'refill_status', 'refill' => $refillId]);
}
public function cancel(array $orderIds): array
{
return $this->call(['action' => 'cancel', 'orders' => implode(',', $orderIds)]);
}
private function call(array $params): array
{
$ch = curl_init($this->apiUrl);
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_POSTFIELDS => http_build_query(['key' => $this->apiKey] + $params),
]);
$raw = curl_exec($ch);
$http = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
if ($http === 429) {
throw new RuntimeException('Rate limited; retry later.');
}
$body = json_decode((string) $raw, true);
if (!is_array($body)) {
throw new RuntimeException('Unexpected response from provider.');
}
return $body; // check isset($body['error']) on single-item calls
}
}
$api = new TiksmmApi('tk_live_your_key_here');
$order = $api->order(['service' => 102, 'link' => 'https://www.tiktok.com/@mila.makes', 'quantity' => 1000]);
if (isset($order['error'])) {
exit('Order failed: ' . $order['error']);
}
echo 'Placed order ' . $order['order'];We accept GET and POST, with form-encoded, multipart or JSON bodies. JSON arrays are joined for you (comma-separated IDs; newline-separated comments). Full details for every action are in the actions reference.
How services sync
Panels refresh our service list on a schedule or when you press sync. Each refresh is a services call, and it reflects the current state:
- Rates change when your tier changes (see below), so a panel that auto-updates provider prices will follow your discount.
- Paused services disappear from the list until they resume, so panels stop selling them. An order for a paused service is refused with “Service is temporarily disabled”.
- Slower-than-usual services stay listed. The status page and
GET /api/v3/statussay which ones and why. - Service IDs never change. Map your panel services to ours by ID, not by name.
Rates and tier discounts
The rate in every services response already includes your tier discount — it’s exactly what you’ll be charged per 1,000. Your tier follows your net spend (charges minus refunds) over the last 30 days:
| Tier | 30-day spend | Discount |
|---|---|---|
| Starter | Any | None |
| Seller | $250.00 or more | 8% |
| Reseller | $1,000.00 or more | 15% |
| Wholesale | $5,000.00 or more | 25% |
| Source | $15,000.00 or more | 35% |
An order’s rate is fixed when it’s placed: a later tier change never re-prices it. Rates are rounded to 1/100,000 of a dollar, and so is every charge (rate × quantity ÷ 1,000). v3’s GET /balance shows your current tier and the spend needed for the next one.
How panels read our responses
Failures are HTTP 200 with an error key
Panel software checks for an error key, not the HTTP status. So v2 answers HTTP 200 for everything — including invalid keys and refused orders — and puts the reason in error:
{
"error": "Quantity less than minimal 50"
}The one exception is rate limiting: when a key is over its limit we answer HTTP 429 with {"error": "Too many requests"} and a Retry-After header. Every error string is listed on Errors.
charge is net of refunds
In status, charge is what the order cost you after refunds. When an order ends Partial, we refund the undelivered part and charge drops to match, so a panel that reads it as provider cost stays correct:
{
"charge": "13.41226",
"start_count": "120501",
"status": "Partial",
"remains": "3029",
"currency": "USD"
}It was charged $16.61088 up front and refunded $3.19862 for the 3,029 followers not delivered, so charge reads 13.41226. Most panels refund their own customer for remains automatically when they see Partial.
Status strings
v2 uses the six standard status strings, spelled exactly as panels expect — including the single-L Canceled:
| v2 status | Meaning | What panels usually do |
|---|---|---|
Pending | Accepted and charged, waiting to start. | Shows Pending; may allow cancel. |
Processing | We’re checking the link and reading the start count. | Shows Processing. |
In progress | Delivering. | Shows In progress and remains. |
Completed | Delivered in full. | Marks the order done. |
Partial | Stopped early; the undelivered remainder was refunded. | Refunds its customer for remains. |
Canceled | Nothing delivered; refunded in full. | Refunds its customer in full. |
Order lifecycle explains each status, the start count and the refund math in full.
Troubleshooting
| Your panel says | Usually means |
|---|---|
Invalid API key | The key was pasted with a space or line break, or it was revoked. Copy it again or create a new one. |
IP address is not allowed | The key has an allowlist without your panel’s address. Add it, or clear the allowlist. |
Incorrect request | The API URL is wrong (check it ends in /api/v2) or a required field is missing. |
Incorrect link | A video link was sent to a follower service, or the reverse. See Services and links. |
You have active order with this link… | An order for the same link and service is still running. Wait for it to finish. |
Not enough funds on balance | Add funds in the dashboard. Nothing was charged. |
| Orders stuck on Pending | Each service has an advertised start window — check status for delays. |
Something unclear or out of date? Write to [email protected] and quote the page.