For developers
AI calling API for Bangladesh
আপনার অ্যাপ বা প্লাগইন থেকে অর্ডার পাঠান, আমরা ক্রেতাকে বাংলায় কল করে ফলাফল আপনার সিস্টেমে ফেরত পাঠাই।
Build Bangla voice calls into any store, or build a plugin that many shops can use with their own Sworborno API key.
What you can build
- Order confirmation. Ready-to-use Bangla calls from any store or platform.
- Other outbound calls. Reminders and follow-ups use the same endpoint after we set the call up with your client. A custom setup has a one-time setup cost, based on what it needs. We quote it before any work starts.
- Bangla text to speech. List voices at
/integrations/tts/voicesand send text to/integrations/ttsafter we switch voiceover on.
The API at a glance
Send an order; we call the buyer in Bangla and check the order and address. A signed call.result webhook returns confirmed or hold for your system to update the order.
| Method | Path | What it does |
|---|---|---|
| POST | /integrations/call-requests | Queue a call; 202 Accepted. |
| GET | /integrations/call-requests/{external_id} | Look up a request and its result. |
| DELETE | /integrations/call-requests/{external_id} | Withdraw it before the call. |
| GET | /integrations/balance | Check the shop’s balance. |
| GET | /integrations/tts/voices | List voices and samples. |
| POST | /integrations/tts | Turn text into audio, or queue a longer job. |
| GET | /integrations/tts/{id} | Check an audio job’s status. |
| GET | /integrations/tts/{id}/audio?format=mp3 | Download the audio; wav is also available. |
Base: https://www.sworborno.com/api/v1
Header: Authorization: Bearer vk_live_...
Example call request
{
"external_id": "10432",
"phone": "01798XXXXXX",
"context": {
"customer_name": "Rahim Uddin", "order_id": "10432",
"total": 1450, "payment_method": "cod",
"address": "House 12, Road 4, Dhanmondi, Dhaka",
"items": [{ "name": "Cotton Shirt", "qty": 2, "price": 650 },
{ "name": "Delivery", "qty": 1, "price": 150 }]
}
}Build one plugin for many shops
- Each shop has its own account and key. The key identifies the account; no account id goes in a request, so one shop’s orders stay in its account.
- Store the key on the server, never in browser code. Show the shop its webhook address. It pastes that into Settings → API keys → Result webhook, then copies the signing secret into your plugin. The secret is shown once.
- Use the order id as
external_idand always sendcontext.order_id. Retrying the same id never calls twice. Without a webhook, look up the result atGET /integrations/call-requests/{external_id}. - Show the shop’s balance from
GET /integrations/balance; checkavailable_secondsand react tobalance.low. Each shop pays from its own balance. - Ask for the test assistant, which only calls your own phones.
Oporanno already works this way: shops connect their own key and webhook address.
Use the platform you know
WooCommerce, Shopify apps, Laravel or plain PHP, Node.js and Python can all use the API. Start with the copy-ready GitHub examples and signed webhook receiver, or read the API docs.
Questions before you start
- Does Sworborno make its own WooCommerce plugin?
No. Sworborno does not publish a WooCommerce or WordPress plugin or a Shopify app. Developers build plugins and apps on the API.
See the WooCommerce guide- Who pays for the calls?
Each shop tops up its own Sworborno account. Calls sent with that shop’s key use that shop’s balance.
- Can one plugin serve many shops?
Yes. Each shop supplies its own API key and saves the webhook address shown by the plugin. The key identifies the account; requests need no account id.
- How do I test without calling real customers?
Ask us for the test assistant. It only calls your own phones, so you can check the request, call and result before going live.
- What does a call cost?
Order calls cost ৳4 a minute, billed by the second from the shop’s own prepaid balance.
See pricing
Sign up, ask us to switch calling on, top up, then create a key as the account’s owner or admin. Signup includes 2 free minutes to try the assistant.
Talk to usRead the docs