# SMM Panel API Malaysia: Reseller Integration Guide

> A concise guide to the Socio.my SMM panel API: endpoint, services/add/bulk_add/status/refill actions, API key, 60/min limit and sandbox mode for resellers.

Once your reseller orders pass a few dozen a day, pasting links by hand stops being practical. The Socio.my SMM panel API lets you pull the catalogue, send bulk orders and check status automatically. It is built to be compatible with the SMM panel v2 format, so scripts or bots that already support other panels can connect with minor changes.

This guide covers the real endpoint and the available actions. For the full interactive documentation, see [api-docs](https://app.socio.my/api-docs). If you are not a reseller yet, start with the [reseller guide](/en/blog/smm-panel-for-resellers-malaysia/) first.

## Endpoint and authentication

Every request is a `POST` to:

```
https://app.socio.my/api/v1
```

The body is accepted as `application/json` or `application/x-www-form-urlencoded`. Two base params:

- `key` — your account API key (the legacy alias `api_key` is also accepted).
- `action` — the operation to run.

A wrong or missing key returns `{"error":"Wrong API Key"}`. Access is limited to **Reseller** and **Agen** tiers; a reseller account must be activated before ordering. The currency is **MYR** — all values in ringgit, two decimals.

`GET /api/v1` without auth returns API info and a docs summary, useful for checking connectivity.

## Available actions

| Action | Purpose |
| --- | --- |
| `services` | Pull the catalogue of orderable services (live price, min/max, refill) |
| `add` | Place a single order (alias `order`) |
| `bulk_add` | Place up to 100 orders at once |
| `status` | Check order status (alias `orders`) |
| `refill` | Request a refill for an eligible order |
| `refill_status` | Check the status of a refill request |
| `balance` | Read your account balance |
| `set_api_secret` | Set the secret for HMAC signing |

The `services` catalogue only returns services that are active and served by a provider — the same set you see on the web. When an admin switches a category off, it disappears from the API catalogue immediately.

## Example: pull the catalogue and place an order

Pull the catalogue (form-encoded):

```bash
curl -s https://app.socio.my/api/v1 \
  -d "key=YOUR_KEY&action=services"
```

Place a single follower order:

```bash
curl -s https://app.socio.my/api/v1 \
  -d "key=YOUR_KEY&action=add&service=123&link=https://instagram.com/p/xxx&quantity=1000"
```

Check status:

```bash
curl -s https://app.socio.my/api/v1 \
  -d "key=YOUR_KEY&action=status&order=OID"
```

For `bulk_add`, send the `orders` param as a JSON array of objects (maximum 100). Each item is processed separately; a failed item is refunded on its own without stopping the others.

## Rate limit and sandbox mode

The limit is **60 requests per minute per IP**, and it fails closed. Once reached, requests are rejected with a rate-limit message until the next window. For high-throughput automation, space your requests and respect this limit.

Before going live, test with `sandbox=1` on `add`, `bulk_add` or `balance`. This mode processes the request without a real order or balance deduction — for example, a sandbox `balance` returns a sample RM1000.00 marked `sandbox:true`.

## HMAC signing (optional, tightened)

By default, authentication uses a plain API key. If you set an `api_secret` via `set_api_secret`, a signature becomes **required** on every request:

- `timestamp` — epoch seconds, must be within ±300 seconds.
- `signature` — `HMAC_SHA256_HEX(canonicalString, api_secret)`.

The `canonicalString` is every param except `signature`, sorted by key, joined as `key=value` with `&`, with both key and value `encodeURIComponent`-ed. A signature that has already been processed is rejected within the nonce window (anti-replay). This is an extra security layer for production integrations.

## Common integration mistakes

The two most common errors: placing an order without checking `services` first (the service may already be off), and ignoring refill terms. Always read the live catalogue before ordering, and check the refill column so the promise you make to your customer matches the real terms. For the business context behind this API, see the [SMM Panel Malaysia](/en/smm-panel/).

The API gives you automation, but the same discipline as web ordering still applies: live prices, no password, and clear refill terms.

## Frequently asked questions

See the FAQ below for access, format, rate limit, sandbox and HMAC. To start building an integration, [sign up for a reseller account](/en/reseller/) and generate your API key from the dashboard.
