Developer Docs
Developer Documentation
Integrate Robo Call Pakistan APIs in minutes with clear endpoints, webhooks, SDK examples, and sample requests.

Corporate Account API Overview
Robo Call Pakistan APIs use HTTPS GET endpoints with an api_key query parameter. This matches the website demo form and the project API settings, where calls are sent through https://portal.robocall.pk/api/calls unless a corporate account endpoint is configured.
https://corporate.robocall.pkAuthentication
All public examples authenticate with an api_key query parameter. Keep the key private, store it server-side, and never expose it in public frontend JavaScript.
?api_key=[VOICE API KEY]GETHTTPSJSONGET Endpoint
Verify API Key
https://corporate.robocall.pk/api/verify-key| Parameter | Type | Status | Description | Example |
|---|---|---|---|---|
| api_key | string | Required | API key provided by Robo Call Pakistan | [VOICE API KEY] |
Sample Request URL
https://corporate.robocall.pk/api/verify-key?api_key=[VOICE API KEY]Sample Response
{
"status": 200,
"valid": true,
"message": "API key is valid"
}GET Endpoint
Check Balance
Fetch account balance, username, and per-call pulse rate for the supplied API key.
https://corporate.robocall.pk/api/check_balanceSample Request URL
https://corporate.robocall.pk/api/check_balance?api_key=[VOICE API KEY]Sample Response
{
"status": 200,
"data": {
"balance": "2682.00",
"username": "demo",
"call_rate": "5.50"
}
}Call rate is shown in per-call pulse units, for example per 30 seconds.
GET Endpoint
Send Robo Call
Initiates a robo call to a specified customer with amount, voice ID, keys, and text values. The demo request form in this theme uses the same endpoint and query format.
https://corporate.robocall.pk/api/calls| Parameter | Description | Required | Example |
|---|---|---|---|
| api_key | API key provided by Robo Call Pakistan | Yes | [VOICE API KEY] |
| caller_id | Customer phone number with country code, no plus sign | Yes | 923001234567 |
| amount | Order/payment amount or campaign value | Optional | 1500 |
| voice_id | Voice ID configured for the account | Yes | 102 |
| key1, key2 | Custom keys or workflow markers | Optional | 0 |
| text1 | Store, company, vehicle, or campaign text | Optional | My Store |
| text2 | Order ID, reference, location, or campaign detail | Optional | ORD12345 |
| text3 - text5 | Additional optional text fields | Optional | 0 |
Sample Request URL
https://corporate.robocall.pk/api/calls?api_key=[VOICE API KEY]&caller_id=923001234567&amount=1500&voice_id=102&key1=0&key2=0&text1=My%20Store&text2=ORD12345&text3=0&text4=0&text5=0Sample Response
{
"status": 200,
"message": "Call Data inserted successfully",
"data": {
"call_id": "dynamicgenerated_number",
"call_to": "923001234567",
"amount": 1500,
"voice_id": 102
},
"api_response": "Ok 200"
}GET Endpoint
Get Call Status
Fetch final or in-progress status of a call using the call ID returned by the send call endpoint.
https://corporate.robocall.pk/api/get_call| Parameter | Description | Required | Example |
|---|---|---|---|
| api_key | API key provided by Robo Call Pakistan | Yes | [VOICE API KEY] |
| call_id | Unique call ID returned by /api/calls | Yes | 20076 |
Sample Request URL
https://corporate.robocall.pk/api/get_call?api_key=[VOICE API KEY]&call_id=20076Sample Response
{
"data": {
"call_id": 20076,
"call_to": "923001234567",
"call_status": 2,
"dtmf": 1,
"retry": 1,
"amount": 1500,
"voice_id": 102,
"text1": "My Store",
"text2": "ORD12345",
"call_charges": "6.90"
},
"code": 200,
"response": "Code Executed Successfully"
}Call Status Definitions
| Status | Meaning | Description |
|---|---|---|
| 1 | Initiated | Call has been initiated and is awaiting pickup. |
| 2 | Answered | Customer picked up. DTMF may be 1 confirm, 2 cancel, 3 callback, or empty. |
| 3 | Congestion | No answer due to network congestion. |
| 4 | Busy | Customer line was busy. |
| 5 | No Answer | Call rang but was not answered. |
| 6 | Hangup | Call disconnected before completion. |
| 8 | Pushed to SIP | Call job was pushed to SIP provider but not yet initiated. |
Retry Logic
- Unanswered calls can be retried automatically based on account settings.
- Retry statuses include initiated, congestion, busy, no answer, hangup, and pushed-to-SIP calls that do not convert within timeout.
- Retry delays can be configured from the Call Settings panel.
- Keep checking the get_call endpoint until a final status is available.
E-Commerce Integrations
Robo Call Pakistan provides ready-to-use integrations for Shopify, WooCommerce, Google Sheets, and custom systems through API.
Support
For API key setup, voice IDs, endpoint access, integrations, or troubleshooting, contact Robo Call Pakistan support.