Developers & API

How to Connect an SMM Panel to a Service Provider via API

Learn how to connect an SMM panel to an upstream service provider using a standard v2 API. Follow this step-by-step technical guide to authenticate safely, fetch services, map IDs, submit test orders, and verify order status.

khoramfar
Hamid kh
Author & Contributor
Share:
How to Connect an SMM Panel to a Service Provider via API

Running an SMM panel manually—taking customer orders on the frontend and placing them by hand on an upstream platform—quickly becomes impossible as order volume grows. To scale reliably, panel operators use an SMM panel API integration to automate service syncing, order placement, and status tracking between their storefront and their upstream provider. (If you are new to how provider endpoints work, read our foundational guide on what an SMM panel API is and how it works.)

In this practical tutorial, you will learn how to connect an SMM panel to a service provider step by step. Rather than assuming a specific third-party panel interface, we will focus on the core technical workflow: generating a secret key in the Flowly dashboard, configuring the provider endpoint, fetching and mapping service IDs, submitting a test order, and verifying order status.

Why Automate Your SMM Panel with a Provider API?

An Application Programming Interface (API) acts as a direct, automated bridge between your panel's database and your service provider's fulfillment engine. When a customer purchases a package on your website, your backend automatically sends an HTTP POST request to the provider's API endpoint. Within milliseconds, the provider validates the parameters, deducts the wholesale cost from your wallet balance, and returns a unique remote order ID.

Automating this workflow eliminates manual data-entry errors, enables 24/7 instant order processing, and allows your server to periodically query the provider for real-time progress updates—including start counts, remaining quantities, and completion states.

Before You Connect: What You Need

Before configuring your provider settings or writing any integration code, make sure you have the following prerequisites ready:

  • A Panel or Custom Backend Capable of Outbound HTTP Requests: Your system must support standard server-to-server POST requests and JSON response parsing. Because the Flowly SMM Orders API documentation follows common SMM panel v2 formats, it integrates smoothly with standard panel scripts that support v2 provider structures as well as custom-built backends.
  • An Active Flowly Account with Wallet Balance: You need a registered account with sufficient funds in your wallet (visible under Billing & Wallet > My Wallet or the top navigation bar) to test live order creation. Note that SMM service orders deduct directly from your Wallet Balance—unlike the separate Flowly Tools API, which provides 100 free daily requests for utility endpoints.
  • Server-Side Credential Storage: API secret keys grant direct access to your wallet and order creation. Ensure your server stores keys securely in environment variables (.env) or encrypted database fields.

Step 1: Get Your Flowly API Key

Every request sent to Flowly must be authenticated using a secret key. To generate and manage your credentials, log in to your Flowly account and navigate to API & Usage in the left sidebar under the Orders section, or visit the API Access dashboard directly (login required).

At the top of the API Access page, you will see four real-time summary cards—Wallet Balance, Requests Today, Free Quota Left, and Spent Today—followed by two navigation tabs: API Keys and Usage.

Follow these steps inside the API Keys tab to generate your credential:

  1. Locate the Your Secret Keys card and click the + Create Key button in the top-right corner.
  2. In the Create New Secret Key modal that appears, enter a descriptive label in the Name field (for example, My Production Key or Staging Panel) so you can easily identify which server or panel is using it.
  3. Click Create secret key. Your new key—prefixed with sk-—will immediately appear in the table alongside its creation date (Created) and activity status (Last Used).
  4. Click the Copy to clipboard icon next to your sk-... key to copy the full string into your secure configuration file.

Managing and Rotating Keys: If you ever suspect a key has been exposed, open the three-dot menu under the Actions column in your key table. Selecting Regenerate immediately issues a new sk- string and invalidates the old one, while Delete permanently revokes the credential. Keep your secret keys strictly on the server side—never expose them in browser JavaScript, public repositories, or screenshots.

Step 2: Configure the API Endpoint and Authentication

Once you have copied your sk- secret key, configure the base provider URL in your SMM panel's provider settings or backend environment. All requests for the Flowly SMM Orders API v2 use a single base endpoint:

https://flowlycore.com/api/v2/

Recommended: Bearer Header vs. Form Parameters

Flowly supports flexible authentication methods so both custom applications and standard SMM panel scripts can connect without friction:

  • Bearer Token Header (Recommended): Passing your secret key via the HTTP Authorization: Bearer sk-YOUR_PLACEHOLDER_API_KEY header is the cleanest and most secure method, keeping credentials separated from request payloads and URL logs.
  • Form-Body Parameter (Standard Panel Compatibility): Most off-the-shelf SMM panel scripts send the API key inside the POST form body using the key parameter alongside the requested action.

Security Warning: While GET query-string parameters may be documented for basic testing, avoid passing API keys in URL query strings in production environments, as full URLs are commonly stored in web server access logs and proxy histories.

Before syncing services, verify that your endpoint and secret key work by querying your current account balance with the balance action:

curl -X POST https://flowlycore.com/api/v2/ \
  -H "Authorization: Bearer sk-YOUR_PLACEHOLDER_API_KEY" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "action=balance"

If your panel script authenticates via form body, pass key=sk-YOUR_PLACEHOLDER_API_KEY&action=balance in the payload instead. Receiving an HTTP 200 OK JSON response that matches the Wallet Balance shown in your dashboard confirms your connection is live.

Step 3: Import and Map Provider Services

With authentication verified, your panel needs to fetch the catalog of available SMM services, wholesale rates, and quantity limits. Call the services action to retrieve the full list:

curl -X POST https://flowlycore.com/api/v2/ \
  -H "Authorization: Bearer sk-YOUR_PLACEHOLDER_API_KEY" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "action=services"

When importing and mapping services into your panel's local database, ensure your system properly aligns three critical attributes for every package:

  1. Provider Service ID Mapping: Your SMM panel will likely generate its own customer-facing service ID (e.g., Local Service 12), which must be mapped internally to the exact Flowly service ID returned by the API.
  2. Minimum and Maximum Bounds (min / max): Synchronize your storefront order validation with Flowly's minimum and maximum quantity limits. Submitting an order outside these boundaries will trigger a 400 Bad Request error.
  3. Pricing Markup: Apply your retail percentage markup or fixed profit margin on top of the wholesale service rate returned in the JSON payload.

Step 4: Place a Test Order

Before opening newly imported services to customers, always run a live end-to-end test order. Submit a POST request using the add action along with the mapped service ID, the target link, and a valid quantity:

curl -X POST https://flowlycore.com/api/v2/ \
  -H "Authorization: Bearer sk-YOUR_PLACEHOLDER_API_KEY" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "action=add&service=101&link=https://example.com/target-post&quantity=100"

Upon success (HTTP 200), the API responds with a JSON object containing the newly created remote order ID (for example, {"order": 98765}). Make sure your backend stores this remote order ID alongside the customer's local order record so your system can track its progress.

Step 5: Verify the Order Status

Because SMM fulfillment happens asynchronously, your panel should run a scheduled background job (cron job) to check an order’s status through the API using the status action and the saved remote order ID:

curl -X POST https://flowlycore.com/api/v2/ \
  -H "Authorization: Bearer sk-YOUR_PLACEHOLDER_API_KEY" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "action=status&order=98765"

The API returns the current status, start count, and remaining quantity so your panel can automatically update the customer's order history. You can also check the Last Used badge next to your key in the API Access dashboard to confirm your panel's cron jobs are actively communicating with Flowly.

Common Setup Mistakes and How to Avoid Them

When connecting an SMM panel to a provider API, avoiding a few common configuration mistakes will save hours of debugging:

  • Sending Local Service IDs Instead of Provider IDs: Always verify that your outbound add request passes Flowly's service ID rather than your panel's internal database ID.
  • Not Handling Documented HTTP Status Codes: Build proper error handling around Flowly's standard HTTP response codes:
    • 200 OK: Request succeeded.
    • 400 Bad Request: Invalid parameters, missing fields, or quantity outside the service's min/max range.
    • 401 Unauthorized: Missing, invalid, regenerated, or deleted sk- API key.
    • 402 Payment Required: Your Wallet Balance is insufficient to cover the order cost.
    • 429 Too Many Requests: Your status-polling interval is too aggressive; space out your cron job requests.
    • 500 Internal Server Error: Temporary server issue; log the response and retry safely without submitting duplicate orders.
  • Confusing the Usage Tab (Tools API Quota) with SMM Orders Billing: Inside your API Access dashboard, the Usage tab tracks metrics like Free Quota (Today) (0 / 100 Requests with a daily reset countdown), Free vs Paid Requests charts, and the Recent Requests table (such as Youtube downloader API requests). Keep in mind that the 100 free daily requests quota—and the $0.002 per paid request rate after the free tier—applies exclusively to the Flowly Tools API (/api/v1/tools/youtube/, with Instagram Downloader, TikTok Downloader, Twitter/X Media, and AI Caption & Tags currently marked Coming Soon). Standard SMM orders placed through /api/v2/ do not use this 100-request counter and are billed directly from your Wallet Balance.

Start Automating Your SMM Fulfillment Today

With your secret key generated and your endpoints mapped, your panel is ready for automated fulfillment. Explore the full Flowly SMM Orders API documentation (also accessible directly inside your account via API Docs in the sidebar), manage your credentials in the API Access dashboard, or reach out to Flowly Contact Support if you need help fine-tuning your integration.

Frequently Asked Questions (FAQ)

Where do I generate and manage my Flowly API key?

Log in to your Flowly dashboard, click API & Usage in the left sidebar (under Orders), and stay on the API Keys tab. Click + Create Key, enter a name in the modal, and click Create secret key to generate your sk- credential. From the same table, you can copy, regenerate, or delete keys at any time.

Is the Flowly SMM Orders API compatible with my SMM panel script?

The Flowly SMM Orders API v2 follows and supports common SMM panel API formats using the https://flowlycore.com/api/v2/ endpoint and standard actions (services, add, status, and balance). While we do not claim compatibility with every third-party script on the market, any panel or custom backend that supports standard SMM v2 requests can integrate smoothly.

Why does the Usage tab show 100 Free Quota Left when I place SMM orders?

The 100 free daily requests quota displayed under Free Quota Left and inside the Usage tab applies exclusively to the Flowly Tools API (such as the YouTube Downloader endpoint at /api/v1/tools/youtube/). SMM service orders placed via /api/v2/ are deducted directly from your Wallet Balance and do not consume your daily Tools API quota.

What happens when I click Regenerate on an active API key?

Clicking Regenerate from the three-dot Actions menu immediately issues a new sk- key value and deactivates the old key. Any SMM panel or application still using the old key will receive a 401 Unauthorized error until you update its configuration with the new secret key.

khoramfar
Written by
Hamid kh

Content strategist and social media marketing specialist at Flowly, providing data-backed growth strategies for digital creators and brands.

Scale Faster

Ready to Boost Your Social Presence?

Get fast, high-retention followers, likes, and engagement for Instagram, Telegram, YouTube, and TikTok at the cheapest rates.

Explore Services