API documentation
Integrate our catalog and ordering into your own panel, bot or app with a simple HTTP API.
Overview
- Base URL
- https://zmxpanel.com/api/v1
- HTTP method
- POST (form-encoded or JSON)
- Response format
- JSON
- Currency
- INR (money values are returned as strings)
Authentication
Send your API key as the key parameter on every request. Invalid keys return HTTP 401.
Rate limits
60 requests per minute per key. Exceeding it returns HTTP 429 with a Retry-After header.
Errors
Errors are JSON like {"error":"message"} with a matching HTTP status code.
Your API key
Sign in to see and manage your API key.
Endpoints
POSTService list/api/v1/services
Returns every service currently available to your account, with your rates (INR per 1000, or per package).
Parameters
| Name | Required | Description |
|---|---|---|
| key | Yes | Your API key. |
Example response
[
{
"service": 1,
"name": "Telegram Channel Members",
"type": "Default",
"category": "Telegram",
"rate": "12.3456",
"min": "50",
"max": "100000",
"refill": true,
"cancel": false
}
]Error response
{
"error": "Invalid API key"
}Code samples
curl -X POST "https://zmxpanel.com/api/v1/services" \
-d "key=YOUR_API_KEY"POSTAdd order/api/v1/order
Places a new order. The charge is deducted from your balance. Send an optional Idempotency-Key header to safely retry without creating duplicate orders.
Optional header: Idempotency-Key: <unique string>
Parameters
| Name | Required | Description |
|---|---|---|
| key | Yes | Your API key. |
| service | Yes | Service ID. |
| link | Yes | Public link to the profile or post. |
| quantity | No | Quantity. Not used for package or custom-comments services. |
| runs | No | Drip-feed: number of runs (drip-feed services only). |
| interval | No | Drip-feed: minutes between runs. |
| comments | No | Comments, one per line (custom-comments services only). |
| username | No | Comment Likes services: username of the comment author. |
| answer_number | No | Poll services: answer to vote for (1 = first). |
| hashtag | No | Mentions Hashtag services: the hashtag. |
| keywords | No | SEO services: keywords, one per line. |
| username / min / max / posts | No | Subscription services (no link): channel username, min and max per post, number of new posts (1-500). |
| old_posts / delay / expiry | No | Subscriptions, optional: existing posts to include (0-100), delay in minutes (0, 5, 10, 15, 20, 30 ... 600), stop date (YYYY-MM-DD). |
Example response
{
"order": 23501
}Error response
{
"error": "Not enough funds"
}Code samples
curl -X POST "https://zmxpanel.com/api/v1/order" \
-H "Idempotency-Key: $(uuidgen)" \
-d "key=YOUR_API_KEY" \
-d "service=1" \
-d "link=https://t.me/example" \
-d "quantity=1000"POSTOrder status/api/v1/order-status
Returns the status of one order, several orders (comma separated, up to 100), or your paginated order history when orders is omitted.
Parameters
| Name | Required | Description |
|---|---|---|
| key | Yes | Your API key. |
| orders | No | One order ID or up to 100 comma-separated IDs. Omit to list your history. |
| page | No | History only: page number. |
| limit | No | History only: page size, max 100. |
| status | No | History only: filter by status. |
Example response
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "INR"
}
// multiple IDs return a map keyed by order ID:
{
"1": { "charge": "0.27819", "start_count": "3572", "status": "Completed", "remains": "0", "currency": "INR" },
"2": { "error": "Incorrect order ID" }
}Error response
{
"error": "Incorrect order ID"
}Code samples
curl -X POST "https://zmxpanel.com/api/v1/order-status" \
-d "key=YOUR_API_KEY" \
-d "orders=23501"POSTCreate refill/api/v1/refill
Requests a refill for an eligible completed order.
Parameters
| Name | Required | Description |
|---|---|---|
| key | Yes | Your API key. |
| order | Yes | Order ID. |
Example response
{
"refill": "1"
}Error response
{
"error": "Refill not available for this order"
}Code samples
curl -X POST "https://zmxpanel.com/api/v1/refill" \
-d "key=YOUR_API_KEY" \
-d "order=23501"POSTRefill status/api/v1/refill-status
Returns the status of a refill request.
Parameters
| Name | Required | Description |
|---|---|---|
| key | Yes | Your API key. |
| refill | Yes | Refill ID. |
Example response
{
"status": "Completed"
}Error response
{
"error": "Refill not found"
}Code samples
curl -X POST "https://zmxpanel.com/api/v1/refill-status" \
-d "key=YOUR_API_KEY" \
-d "refill=1"POSTCancel orders/api/v1/cancel
Cancels one or more orders (comma separated) when the service supports cancellation. Canceled orders are refunded.
Parameters
| Name | Required | Description |
|---|---|---|
| key | Yes | Your API key. |
| orders | Yes | Comma-separated order IDs. |
Example response
[
{ "order": 2, "cancel": 1 },
{ "order": 9, "cancel": { "error": "Incorrect order ID" } }
]Error response
{
"error": "Invalid API key"
}Code samples
curl -X POST "https://zmxpanel.com/api/v1/cancel" \
-d "key=YOUR_API_KEY" \
-d "orders=2,9"POSTBalance/api/v1/balance
Returns your current balance. The currency is always INR.
Parameters
| Name | Required | Description |
|---|---|---|
| key | Yes | Your API key. |
Example response
{
"balance": "100.84292",
"currency": "INR"
}Error response
{
"error": "Invalid API key"
}Code samples
curl -X POST "https://zmxpanel.com/api/v1/balance" \
-d "key=YOUR_API_KEY"