CLEANPANELS
FeaturesHow it worksComparePricingWhatsAppDevelopersMarketplaceDomainsFAQBlogContact Sign in
Home / Developers

Build on CLEANPANELS —
with or without code.

The standard SMM API on every panel, plus a REST API for WhatsApp numbers and email. Every example comes ready to copy in cURL, PHP, Python and Node.js — and one click gives your AI assistant everything it needs to write the code for you.

Get started

Three steps to your first request.

You don't have to be a developer. Get a key, pick the example that matches what you want, and paste it — or let an AI assistant write the code for you (next section).

1

Get your key

Panel API: on your panel go to Account → API. Platform API: create a sk_live_… key in your console under API keys.

2

Keep it secret

Store the key in an environment variable or your hosting's settings — never inside code you share or paste into a chat.

3

Copy an example

Every endpoint below has a working sample. Pick your language on the left once and every example switches.

Panel API · SMM API v2

Orders, services, refills

  • POST https://yourbrand.cleanpanels.co.ke/api/v2
  • Form fields: key + action
  • Works with every reseller script that supports API v2
  • Use your panel's own domain in place of yourbrand.cleanpanels.co.ke
Platform API · REST v1

WhatsApp, email, wallet

  • https://cleanpanels.co.ke/api/v1
  • Header: Authorization: Bearer sk_live_…
  • JSON in, JSON out
  • Works from any app — even panels hosted elsewhere
Build with AI

Not a developer? Let AI write it.

ChatGPT, Claude, Gemini and Copilot can all write working integrations for you — they just need the full API reference. One button copies a ready-made prompt that includes everything.

The ready-made AI prompt

  1. Click Copy AI prompt below.
  2. Open your AI assistant and paste it.
  3. Replace the two lines in [square brackets] with what you want to build and where it will run.
  4. Follow its steps. If something fails, paste the error message back to the AI — it will fix the code.

AI tools that can read web pages can also be given this link directly: https://cleanpanels.co.ke/developers/llms. The OpenAPI file imports into Postman, Insomnia or a custom GPT action.

Never paste your real API key into an AI chat. Chats can be stored and reviewed. Let the AI write code with YOUR_API_KEY or an environment variable, then add the real key yourself on your server. If a key was ever shared, regenerate it straight away (panel: Account → API · console: API keys).

Ideas to start with

Each button copies the full prompt with that idea already filled in.

An order form on my WordPress or PHP website: the customer picks a service, enters a link and quantity, and the order is placed on my panel
A Telegram bot where customers send an order ID and get its status back
A Google Sheet that shows my panel balance and the status of my latest orders
A WhatsApp auto-reply: when a customer sends an order number, reply with its status
A script that checks all my open orders every hour and requests a refill when the count dropped
Keys, errors & limits

Keep keys safe, handle errors kindly.

All examples read the key from an environment variable. Here is how to set one — pick whatever matches where your code runs.

Storing your key
# Mac / Linux terminal — lasts until you close the window
export PANEL_API_KEY="paste-your-panel-key"
export CLEANPANELS_API_KEY="sk_live_paste-your-key"

# Windows PowerShell
$env:PANEL_API_KEY = "paste-your-panel-key"

Panel API errors

HTTP is always 200; check for an error field.

● Error
{
    "success": false,
    "error": "Not enough funds on balance"
}

Common: Invalid API key · Incorrect service ID · Quantity less than minimal · Not enough funds on balance · Incorrect order ID.

Platform API errors

Real HTTP status codes with a machine-readable code.

● Error · 402
{
    "error": {
        "code": "insufficient_funds",
        "message": "Top up your wallet to continue."
    }
}
401Missing or wrong API key
402Wallet needs topping up
404 / 409Not found / already exists
422Invalid input — message says which field
429More than 120 requests a minute — wait and retry
Panel API · SMM API v2

Orders, services and refills.

Every request is a POST to https://yourbrand.cleanpanels.co.ke/api/v2 (your panel's domain) with form fields key and action. Your panel uses the same API to connect to its providers — and offers it to your resellers.

List services

POSTaction=services

Every service you can order, with price per 1,000, limits and options. Call it once and cache it.

API_KEY="YOUR_API_KEY"   # from your panel: Account → API
curl -sS -X POST "https://yourbrand.cleanpanels.co.ke/api/v2" \
  --data-urlencode "key=${API_KEY}" \
  --data-urlencode "action=services"
● Response
[
    {
        "service": 1042,
        "name": "Instagram Followers [Real]",
        "type": "Default",
        "category": "Instagram",
        "rate": "1.20",
        "min": "10",
        "max": "100000",
        "refill": true,
        "cancel": false
    }
]

Place an order

POSTaction=add

Creates an order and charges your balance. Keep the returned order ID to check its status.

serviceService ID from "services"1042
linkProfile or post linkhttps://instagram.com/yourbrand
quantityBetween the service min and max1000
API_KEY="YOUR_API_KEY"   # from your panel: Account → API
curl -sS -X POST "https://yourbrand.cleanpanels.co.ke/api/v2" \
  --data-urlencode "key=${API_KEY}" \
  --data-urlencode "action=add" \
  --data-urlencode "service=1042" \
  --data-urlencode "link=https://instagram.com/yourbrand" \
  --data-urlencode "quantity=1000"
● Response
{
    "order": 20481
}

Order with drip-feed

POSTaction=add

Spreads delivery over time so growth looks natural. Total = quantity × runs.

serviceService ID1042
linkLinkhttps://instagram.com/yourbrand
quantityQuantity per run500
runsHow many runs10
intervalMinutes between runs60
API_KEY="YOUR_API_KEY"   # from your panel: Account → API
curl -sS -X POST "https://yourbrand.cleanpanels.co.ke/api/v2" \
  --data-urlencode "key=${API_KEY}" \
  --data-urlencode "action=add" \
  --data-urlencode "service=1042" \
  --data-urlencode "link=https://instagram.com/yourbrand" \
  --data-urlencode "quantity=500" \
  --data-urlencode "runs=10" \
  --data-urlencode "interval=60"
● Response
{
    "order": 20482
}

Order custom comments

POSTaction=add

For services of type "Custom Comments". The quantity is the number of lines.

serviceA "Custom Comments" service2210
linkPost linkhttps://instagram.com/p/POST_ID
commentsOne comment per line (\n)Love this!\nSo good 🔥\nWow
API_KEY="YOUR_API_KEY"   # from your panel: Account → API
curl -sS -X POST "https://yourbrand.cleanpanels.co.ke/api/v2" \
  --data-urlencode "key=${API_KEY}" \
  --data-urlencode "action=add" \
  --data-urlencode "service=2210" \
  --data-urlencode "link=https://instagram.com/p/POST_ID" \
  --data-urlencode $'comments=Love this!\nSo good 🔥\nWow'
● Response
{
    "order": 20483
}

Order status

POSTaction=status

Status values: Pending, Processing, In progress, Completed, Partial, Canceled. "remains" is how much is left to deliver.

orderOrder ID20481
API_KEY="YOUR_API_KEY"   # from your panel: Account → API
curl -sS -X POST "https://yourbrand.cleanpanels.co.ke/api/v2" \
  --data-urlencode "key=${API_KEY}" \
  --data-urlencode "action=status" \
  --data-urlencode "order=20481"
● Response
{
    "charge": "1.20",
    "start_count": "1290",
    "status": "In progress",
    "remains": "380",
    "currency": "USD"
}

Status of many orders

POSTaction=status

One request for up to 100 orders — use this for dashboards and scheduled checks.

ordersUp to 100 IDs, comma separated20481,20482,20483
API_KEY="YOUR_API_KEY"   # from your panel: Account → API
curl -sS -X POST "https://yourbrand.cleanpanels.co.ke/api/v2" \
  --data-urlencode "key=${API_KEY}" \
  --data-urlencode "action=status" \
  --data-urlencode "orders=20481,20482,20483"
● Response
{
    "20481": {
        "charge": "1.20",
        "start_count": "1290",
        "status": "Completed",
        "remains": "0",
        "currency": "USD"
    },
    "20482": {
        "error": "Incorrect order ID"
    }
}

Request a refill

POSTaction=refill

Only for services with "refill": true, when the count dropped.

orderOrder ID (or "orders" for several)20481
API_KEY="YOUR_API_KEY"   # from your panel: Account → API
curl -sS -X POST "https://yourbrand.cleanpanels.co.ke/api/v2" \
  --data-urlencode "key=${API_KEY}" \
  --data-urlencode "action=refill" \
  --data-urlencode "order=20481"
● Response
{
    "refill": "7731"
}

Refill status

POSTaction=refill_status

Status of a refill request.

refillRefill ID (or "refills" for several)7731
API_KEY="YOUR_API_KEY"   # from your panel: Account → API
curl -sS -X POST "https://yourbrand.cleanpanels.co.ke/api/v2" \
  --data-urlencode "key=${API_KEY}" \
  --data-urlencode "action=refill_status" \
  --data-urlencode "refill=7731"
● Response
{
    "status": "Completed"
}

Cancel orders

POSTaction=cancel

Only for services with "cancel": true that have not started.

ordersComma separated order IDs20481,20482
API_KEY="YOUR_API_KEY"   # from your panel: Account → API
curl -sS -X POST "https://yourbrand.cleanpanels.co.ke/api/v2" \
  --data-urlencode "key=${API_KEY}" \
  --data-urlencode "action=cancel" \
  --data-urlencode "orders=20481,20482"
● Response
[
    {
        "order": 20481,
        "cancel": 1
    },
    {
        "order": 20482,
        "cancel": {
            "error": "Incorrect order ID"
        }
    }
]

Ask to speed up

POSTaction=speedup

Sends a speed-up request for a running order to the panel's support team.

orderOrder ID (or "orders" for several)20481
API_KEY="YOUR_API_KEY"   # from your panel: Account → API
curl -sS -X POST "https://yourbrand.cleanpanels.co.ke/api/v2" \
  --data-urlencode "key=${API_KEY}" \
  --data-urlencode "action=speedup" \
  --data-urlencode "order=20481"
● Response
{
    "speedup": 1
}

Plain-language request

POSTaction=request

Understands a support message like a human would — perfect for chat bots. Returns one result per order plus a ready-made reply text.

textOrder IDs plus what you want: status, refill, cancel or speed20481 20482 refill
API_KEY="YOUR_API_KEY"   # from your panel: Account → API
curl -sS -X POST "https://yourbrand.cleanpanels.co.ke/api/v2" \
  --data-urlencode "key=${API_KEY}" \
  --data-urlencode "action=request" \
  --data-urlencode "text=20481 20482 refill"
● Response
{
    "results": [
        {
            "order": 20481,
            "action": "refill",
            "ok": true,
            "task": 7731
        }
    ],
    "reply": "Refill requested for #20481"
}

Your balance

POSTaction=balance

Your account balance on this panel.

API_KEY="YOUR_API_KEY"   # from your panel: Account → API
curl -sS -X POST "https://yourbrand.cleanpanels.co.ke/api/v2" \
  --data-urlencode "key=${API_KEY}" \
  --data-urlencode "action=balance"
● Response
{
    "balance": "184.32",
    "currency": "USD"
}
Platform API · REST v1

WhatsApp & email for any app.

Link WhatsApp numbers by QR, get messages on your webhook, send notifications, and resell branded mailboxes with one-click Cloudflare DNS. Base URL https://cleanpanels.co.ke/api/v1 · billed monthly from your wallet · 120 requests/minute per key.

Account

Who am I

GET/me

Your account, pricing tier and wallet balance. Good first call to test your key.

API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X GET "https://cleanpanels.co.ke/api/v1/me" \
  -H "Authorization: Bearer ${API_KEY}"
● Response
{
    "id": 42,
    "name": "Jane",
    "email": "[email protected]",
    "tier": "external",
    "wallet": {
        "balance": 25.5,
        "currency": "USD"
    }
}

Wallet and transactions

GET/wallet

Balance and your last 50 wallet transactions. Services are paid monthly from this wallet.

API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X GET "https://cleanpanels.co.ke/api/v1/wallet" \
  -H "Authorization: Bearer ${API_KEY}"
● Response
{
    "balance": 25.5,
    "currency": "USD",
    "transactions": [
        {
            "id": 901,
            "amount": -5,
            "balance_after": 25.5,
            "type": "charge",
            "description": "WhatsApp API number — first month",
            "created_at": "2026-10-25T09:12:00+03:00"
        }
    ],
    "top_up_url": "https://cleanpanels.co.ke/wallet"
}

Your prices

GET/prices

What you pay per month, including any custom reseller pricing.

API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X GET "https://cleanpanels.co.ke/api/v1/prices" \
  -H "Authorization: Bearer ${API_KEY}"
● Response
{
    "tier": "reseller",
    "currency": "USD",
    "custom_pricing": false,
    "monthly": {
        "whatsapp_number": 4,
        "mailbox": 1.5
    }
}
WhatsApp

Create a WhatsApp number

POST/whatsapp/instances

Starts a new number (first month charged from your wallet) and returns a QR code. Scan it in WhatsApp → Linked devices.

nameSupport
webhook_urlhttps://yourapp.com/whatsapp-webhook
API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X POST "https://cleanpanels.co.ke/api/v1/whatsapp/instances" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"name":"Support","webhook_url":"https://yourapp.com/whatsapp-webhook"}'
● Response
{
    "id": 12,
    "name": "Support",
    "status": "pending",
    "webhook_secret": "whsec_…",
    "connection": {
        "status": "qr",
        "qr": "data:image/png;base64,…"
    }
}

List numbers

GET/whatsapp/instances

All your WhatsApp numbers with status and message counts.

API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X GET "https://cleanpanels.co.ke/api/v1/whatsapp/instances" \
  -H "Authorization: Bearer ${API_KEY}"
● Response
{
    "data": [
        {
            "id": 12,
            "name": "Support",
            "status": "connected",
            "phone": "254712345678",
            "messages_in": 120,
            "messages_out": 96
        }
    ]
}

Connection status / QR

GET/whatsapp/instances/{id}/qr

Poll every few seconds while linking: returns a fresh QR until status becomes "connected".

API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X GET "https://cleanpanels.co.ke/api/v1/whatsapp/instances/12/qr" \
  -H "Authorization: Bearer ${API_KEY}"
● Response
{
    "status": "connected",
    "phone": "254712345678"
}

Send a message

POST/whatsapp/instances/{id}/send

"to" is a phone number in international format (digits only) OR a group ID (JID) ending in @g.us from GET …/groups. In groups you can @mention people: add "mentions": ["254711111111"] and write "@254711111111" in the text. The number must be a member of the group (and an admin if only admins can send).

to254712345678
textYour order #20481 is complete ✅
API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X POST "https://cleanpanels.co.ke/api/v1/whatsapp/instances/12/send" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"to":"254712345678","text":"Your order #20481 is complete ✅"}'
● Response
{
    "sent": true,
    "to": "254712345678",
    "group": false,
    "message_id": "3EB0C4A1F2"
}

Send to a group

POST/whatsapp/instances/{id}/send

Same endpoint, with a group JID as "to". Get group IDs from GET …/groups. Incoming group messages arrive at your webhook with group=true, group_id, group_name and chat_id (send your reply to chat_id).

to[email protected]
textNew services added today 🚀 @254711111111
mentionsArray
API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X POST "https://cleanpanels.co.ke/api/v1/whatsapp/instances/12/send" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"to":"[email protected]","text":"New services added today 🚀 @254711111111","mentions":["254711111111"]}'
● Response
{
    "sent": true,
    "to": "[email protected]",
    "group": true,
    "message_id": "3EB0C4A1F3"
}

Send an image, video, document or audio

POST/whatsapp/instances/{id}/send

Same endpoint with "type" = image, video, document or audio and ONE source: "media_url" (a public https link we download; up to the full WhatsApp limit), "media_base64" (inline; whole request up to 25 MB) or "media_id" (from POST …/media; send it to many chats). Optional "caption" (up to 1024 characters; not for audio), "filename" and "mimetype" (documents), "ptt": true (audio as a voice note). Limits: image 5 MB (JPEG, PNG), video 16 MB (MP4, 3GP), audio 16 MB (OGG Opus, MP3, M4A/AAC, AMR), document 100 MB (any file). The real file type is checked. Errors: {"sent":false,"error":{"code":"media_too_large","message":"…"}}, codes: invalid_type, missing_media, ambiguous_media, invalid_media_url, media_url_blocked, media_download_failed, invalid_base64, media_not_found, media_too_large, unsupported_media_type, caption_too_long, caption_not_allowed, invalid_recipient, not_connected, rate_limited, daily_limit_reached, send_failed. Requests without media fields work exactly as before.

to254712345678
typedocument
media_urlhttps://yourshop.com/invoices/20481.pdf
filenameInvoice 20481.pdf
mimetypeapplication/pdf
captionYour invoice
API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X POST "https://cleanpanels.co.ke/api/v1/whatsapp/instances/12/send" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"to":"254712345678","type":"document","media_url":"https://yourshop.com/invoices/20481.pdf","filename":"Invoice 20481.pdf","mimetype":"application/pdf","caption":"Your invoice"}'
● Response
{
    "sent": true,
    "id": "3EB0C4A1F4",
    "message_id": "3EB0C4A1F4",
    "to": "254712345678",
    "group": false,
    "type": "document",
    "size": 48213
}

Upload a file to send

POST/whatsapp/instances/{id}/media

Upload once, send many times with "media_id" (kept 3 days). Send a multipart form with a "file" field (up to 25 MB) or JSON with media_url / media_base64; "type" is optional (we detect it). GET …/media/{media_id} shows a file, DELETE removes it.

media_urlhttps://yourshop.com/promo.jpg
typeimage
API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X POST "https://cleanpanels.co.ke/api/v1/whatsapp/instances/12/media" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"media_url":"https://yourshop.com/promo.jpg","type":"image"}'
● Response
{
    "media_id": "9f2c…",
    "type": "image",
    "mimetype": "image/jpeg",
    "filename": "promo.jpg",
    "size": 182311,
    "url": "https://cleanpanels.co.ke/wa-media/9f2c…",
    "expires_at": "2026-12-01T10:00:00+00:00"
}

List groups

GET/whatsapp/instances/{id}/groups

Groups this number is a member of. "id" is the group JID to send to. can_send=false means only admins may post there. Cached for 2 minutes; add ?refresh=1 after joining a new group.

API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X GET "https://cleanpanels.co.ke/api/v1/whatsapp/instances/12/groups" \
  -H "Authorization: Bearer ${API_KEY}"
● Response
{
    "data": [
        {
            "id": "[email protected]",
            "name": "VIP Customers",
            "participants": 148,
            "is_admin": true,
            "admins_only": false,
            "can_send": true
        }
    ]
}

Change settings

PATCH/whatsapp/instances/{id}

Change name, webhook_url or respond_groups.

webhook_urlhttps://yourapp.com/new-webhook
respond_groupsfalse
API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X PATCH "https://cleanpanels.co.ke/api/v1/whatsapp/instances/12" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"webhook_url":"https://yourapp.com/new-webhook","respond_groups":false}'
● Response
{
    "id": 12,
    "name": "Support",
    "webhook_url": "https://yourapp.com/new-webhook",
    "respond_groups": false
}

Recent messages

GET/whatsapp/instances/{id}/messages

The last 100 messages in and out.

API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X GET "https://cleanpanels.co.ke/api/v1/whatsapp/instances/12/messages" \
  -H "Authorization: Bearer ${API_KEY}"
● Response
{
    "data": [
        {
            "direction": "in",
            "peer": "254712345678",
            "text": "20481 status",
            "status": "received",
            "created_at": "2026-10-25T10:01:00+03:00"
        }
    ]
}

Unlink / delete

DELETE/whatsapp/instances/{id}

Deletes the number and stops billing. Use POST …/12/logout to only unlink the phone.

API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X DELETE "https://cleanpanels.co.ke/api/v1/whatsapp/instances/12" \
  -H "Authorization: Bearer ${API_KEY}"
● Response
{
    "deleted": true
}
Email

Add an email domain

POST/email/domains

Creates the domain and its DKIM key (ready in about a minute). Returns the DNS records to publish.

domainbrandx.com
API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X POST "https://cleanpanels.co.ke/api/v1/email/domains" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"domain":"brandx.com"}'
● Response
{
    "id": 42,
    "domain": "brandx.com",
    "status": "provisioning",
    "dns_records": [
        {
            "type": "TXT",
            "name": "brandx.com",
            "value": "v=spf1 a mx ip4:… ~all"
        }
    ]
}

One-click DNS with Cloudflare

POST/email/domains/{id}/cloudflare

Your customer's Cloudflare token (template "Edit zone DNS") — used once, never stored. Merges SPF, adds DKIM and DMARC, and MX only if receive_mail is true.

api_tokenCLOUDFLARE_TOKEN
receive_mailtrue
replace_mxfalse
API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X POST "https://cleanpanels.co.ke/api/v1/email/domains/42/cloudflare" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"api_token":"CLOUDFLARE_TOKEN","receive_mail":true,"replace_mx":false}'
● Response
{
    "cloudflare": {
        "zone": "brandx.com",
        "changes": [
            "Updated your SPF record to include our server",
            "Added DKIM record",
            "Added DMARC record",
            "Added MX record — email to brandx.com now arrives here"
        ]
    },
    "can_send": true,
    "can_receive": true
}

Live DNS check

GET/email/domains/{id}/dns

Checks every record against public DNS. Each has status ok | missing | wrong | warn | info, what was found, and a fix.

API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X GET "https://cleanpanels.co.ke/api/v1/email/domains/42/dns" \
  -H "Authorization: Bearer ${API_KEY}"
● Response
{
    "summary": {
        "can_send": false,
        "can_receive": false,
        "inbox_ready": false,
        "records": {
            "spf": "wrong",
            "dkim": "ok",
            "dmarc": "warn",
            "mx": "info"
        }
    },
    "dns_check": [
        {
            "key": "spf",
            "status": "wrong",
            "message": "Your SPF record does not include our server yet. Replace it with:",
            "suggest": "v=spf1 ip4:… include:_spf.google.com ~all"
        }
    ]
}

Create a mailbox

POST/email/mailboxes

On your verified domain (domain_id) or the shared domain ("domain":"shared"). The password is shown only once.

domain_id42
namesupport
API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X POST "https://cleanpanels.co.ke/api/v1/email/mailboxes" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"domain_id":42,"name":"support"}'
● Response
{
    "id": 7,
    "address": "[email protected]",
    "status": "provisioning",
    "smtp": {
        "host": "mail.cleanpanels.co.ke",
        "port_ssl": 465,
        "port_tls": 587,
        "username": "[email protected]",
        "password": "…",
        "imap_host": "mail.cleanpanels.co.ke",
        "imap_port": 993
    }
}

Forwarding, auto-reply, aliases, size

PATCH/email/mailboxes/{id}

Send only what you want to change. forward_to: up to 10 addresses ([] = off); keep_copy: false forwards without storing; aliases: extra addresses delivering to this mailbox; quota_mb: 512, 1024 or 2048; password: set your own (10+ letters and numbers). Live within a minute.

forward_toArray
keep_copytrue
autoreplyArray
aliasesArray
quota_mb2048
API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X PATCH "https://cleanpanels.co.ke/api/v1/email/mailboxes/7" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"forward_to":["[email protected]"],"keep_copy":true,"autoreply":{"enabled":true,"message":"Thanks! We reply within 24 hours."},"aliases":["sales","hello"],"quota_mb":2048}'
● Response
{
    "id": 7,
    "address": "[email protected]",
    "status": "active",
    "settings": {
        "forward_to": [
            "[email protected]"
        ],
        "keep_copy": true,
        "autoreply": {
            "enabled": true,
            "message": "Thanks! We reply within 24 hours."
        },
        "aliases": [
            "[email protected]",
            "[email protected]"
        ],
        "quota_mb": 2048,
        "state": "syncing"
    },
    "changed": [
        "forwarding",
        "auto-reply",
        "aliases",
        "storage"
    ]
}

Catch-all for a domain

PATCH/email/domains/{id}

Mail to any address @domain that does not exist is delivered here instead of bouncing. Send null to turn it off.

catchall[email protected]
API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X PATCH "https://cleanpanels.co.ke/api/v1/email/domains/42" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"catchall":"[email protected]"}'
● Response
{
    "id": 42,
    "domain": "brandx.com",
    "status": "active",
    "catchall": "[email protected]",
    "can_send": true,
    "can_receive": true
}

New mailbox password

POST/email/mailboxes/{id}/reset-password

Generates a new password (takes effect within a minute).

API_KEY="sk_live_YOUR_KEY"   # Console → API keys
curl -sS -X POST "https://cleanpanels.co.ke/api/v1/email/mailboxes/7/reset-password" \
  -H "Authorization: Bearer ${API_KEY}"
● Response
{
    "password": "…",
    "note": "Takes effect within a minute."
}

All endpoints

GET/me · /wallet · /pricesAccount, balance and transactions, your monthly prices
GET · POST/whatsapp/instancesList / create numbers
GET · PATCH · DELETE/whatsapp/instances/{id}Details (with connection) / change settings / delete
POST/whatsapp/instances/{id}/connect · /logoutStart linking / unlink the phone
GET/whatsapp/instances/{id}/qr · /messagesQR + status / last 100 messages
POST/whatsapp/instances/{id}/send · /rotate-secretSend a text / new webhook secret
GET · POST/email/domainsList / add sending domains
GET · PATCH · DELETE/email/domains/{id}Details with DNS records and access info / set catch-all / remove
POST · GET/email/domains/{id}/verify · /dnsRe-check and save / live per-record check with fixes
POST/email/domains/{id}/cloudflareOne-click DNS with the customer's Cloudflare token
GET · POST/email/mailboxesList / create mailboxes
GET · PATCH · DELETE/email/mailboxes/{id}Details with settings / forwarding, auto-reply, aliases, size, password / delete
POST/email/mailboxes/{id}/reset-passwordNew password

DNS check statuses: ok · missing · wrong · warn (recommended) · info (optional, e.g. MX pointing to Google). Mail apps connect with IMAP 993 · POP3 995 · SMTP 465 (SSL) or 587 (STARTTLS) — returned as access on every domain.

Webhooks

Answer WhatsApp messages from your own code.

Each incoming message is POSTed as JSON to your number's webhook_url, signed with X-Signature: sha256=HMAC_SHA256(raw body, webhook_secret). Reply within 10 seconds with {"reply":"…"} to answer, or {} to stay silent.

If your server can't be reached, times out or answers 5xx/429, we keep the message and try again after 30 s, 2 min, 5 min, 15 min and 30 min, and your reply is still sent to the chat. Messages that waited on WhatsApp while the number was reconnecting are delivered too, with "delayed": true and the time the customer sent them in timestamp. The same message can reach you more than once, so use message_id to skip ones you've already handled. Any other 4xx answer counts as a deliberate rejection and isn't retried.

Verify & reply
<?php
// webhook.php — set this URL as your number's webhook_url
$secret = getenv('WA_WEBHOOK_SECRET');           // from the create response
$raw = file_get_contents('php://input');
$sig = $_SERVER['HTTP_X_SIGNATURE'] ?? '';

if (!hash_equals('sha256=' . hash_hmac('sha256', $raw, $secret), $sig)) {
    http_response_code(401);
    exit;
}
$msg = json_decode($raw, true);   // event, from, name, text, group, group_id, chat_id, timestamp

header('Content-Type: application/json');
if (stripos($msg['text'], 'hello') !== false) {
    echo json_encode(['reply' => 'Hi ' . $msg['name'] . '! How can we help?']);
} else {
    echo '{}';   // stay silent
}
● What we send you
{
    "event": "message",
    "instance_id": 12,
    "from": "254712345678",
    "from_is_lid": false,
    "name": "Jane",
    "text": "hello, is my order done?",
    "group": false,
    "group_id": "",
    "chat_id": "254712345678",
    "timestamp": 1761300000,
    "message_id": "3EB0C431D2A1F8E9B7",
    "delayed": false,
    "attempt": 1
}
Always check the signature. It proves the message came from us. Compare it in constant time (as the samples do) and reject anything that doesn't match. Lost the secret? POST /whatsapp/instances/{id}/rotate-secret.
Recipes

Complete examples you can run today.

Copy, add your key, run. Each one is short enough to understand — and to hand to an AI if you want to change it.

PHP · any web host

An order form on your website

Save as order.php on your site. Customers enter a link and quantity; the order is placed on your panel and they see the order number.

<?php
// order.php — set PANEL_API_KEY in your hosting's environment settings
$apiUrl = 'https://yourbrand.cleanpanels.co.ke/api/v2';
$serviceId = 1042;   // the service to sell, from action=services
$message = '';

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    $ch = curl_init($apiUrl);
    curl_setopt_array($ch, [
        CURLOPT_POST => true,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_POSTFIELDS => http_build_query([
            'key' => getenv('PANEL_API_KEY'),
            'action' => 'add',
            'service' => $serviceId,
            'link' => $_POST['link'] ?? '',
            'quantity' => (int) ($_POST['quantity'] ?? 0),
        ]),
    ]);
    $r = json_decode((string) curl_exec($ch), true);
    $message = isset($r['order']) ? 'Thank you! Your order number is #' . $r['order'] : 'Sorry: ' . ($r['error'] ?? 'please try again');
}
?>
<form method="post">
  <input name="link" placeholder="Your profile or post link" required>
  <input name="quantity" type="number" min="10" value="1000" required>
  <button>Order now</button>
</form>
<p><?= htmlspecialchars($message) ?></p>
Python · run on a schedule

Check all open orders and request refills

Checks up to 100 orders in one call, then asks for a refill on partial orders. Run it hourly with cron or Task Scheduler.

# pip install requests
import os, requests

API = "https://yourbrand.cleanpanels.co.ke/api/v2"
KEY = os.environ["PANEL_API_KEY"]
my_orders = [20481, 20482, 20483]   # load these from your own records

def call(**fields):
    return requests.post(API, data={"key": KEY, **fields}, timeout=30).json()

statuses = call(action="status", orders=",".join(map(str, my_orders)))
for order_id, info in statuses.items():
    if "error" in info:
        print(order_id, "→", info["error"])
        continue
    print(order_id, info["status"], "remains:", info["remains"])
    if info["status"] == "Partial":
        result = call(action="refill", order=order_id)
        print("   refill:", result.get("refill") or result.get("error"))
Node.js · WhatsApp bot

Reply to customers with their order status

When a customer sends an order number on WhatsApp, your webhook asks your panel and replies instantly. Uses the plain-language request action, so "20481 refill" works too.

// npm install express   ·   node --env-file=.env bot.js
import express from "express";
import crypto from "crypto";

const app = express();
app.post("/whatsapp-webhook", express.raw({ type: "application/json" }), async (req, res) => {
  const expected = "sha256=" + crypto.createHmac("sha256", process.env.WA_WEBHOOK_SECRET).update(req.body).digest("hex");
  const got = req.get("X-Signature") || "";
  if (got.length !== expected.length || !crypto.timingSafeEqual(Buffer.from(got), Buffer.from(expected))) return res.sendStatus(401);

  const msg = JSON.parse(req.body);
  if (msg.group || !/\d{3,}/.test(msg.text)) return res.json({}); // no order number → stay silent

  const r = await fetch("https://yourbrand.cleanpanels.co.ke/api/v2", {
    method: "POST",
    body: new URLSearchParams({ key: process.env.PANEL_API_KEY, action: "request", text: msg.text }),
  }).then((x) => x.json());

  res.json({ reply: r.reply || r.error || "Sorry, I couldn't find that order." });
});
app.listen(3000, () => console.log("Bot listening on :3000"));
Pricing

Pay monthly from your wallet.

Panel ownersExternal
WhatsApp number$5.00/mo$7.00/mo
Mailbox$2.00/mo$4.00/mo

The Panel API is free on every panel. Top up with M-PESA & mobile money, cards or Binance USDT. Reseller pricing available — talk to us.

Become a provider

Let other panels resell you

List your panel in the provider marketplace. It appears inside every panel's Providers page on the platform — boost it to be featured at the top, and track impressions and clicks in your console.

See the marketplace

Build on your own panel.

Launch a panel and get your API key in under a minute.

Launch my panel
Pay in your currencyM-PESA & mobile moneyLive right after paymentCancel any time