Send SMS, check your balance and numbers, read and add CRM contacts, and get notified when calls, deals and tickets change.
X-Request-ID header; quote it if you contact support.| Messaging and account API | CRM API | |
|---|---|---|
| Base URL | https://calls.satas.co.ke/api/v1 | https://calls.satas.co.ke/api/v2 |
| Key header | Authorization: Bearer sk_live_... | X-API-Key: sk_live_... |
| Where to create it | Portal, Developer | Portal, CRM, Integrations (choose scopes) |
| Limit | 600 requests a minute per key | Up to 500 records per page |
Errors come back as JSON, for example {"error": "Invalid API key"}, with status 400 (bad input), 401 (key missing or wrong), 402 (wallet balance too low), 403 (scope missing) or 429 (too many requests).
| Request | What it does |
|---|---|
POST /messages | Send one SMS. Body: to (e.g. +254712345678), body (up to 918 characters), optional sender_id (your approved sender name). Costs KES 0.60 per SMS part (160 characters each); credits in your linked SMS Pro account are used first, then your wallet. |
GET /balance | Wallet balance and total spent, in KES. |
GET /numbers | Phone numbers assigned to your account. |
GET /account | Company, plan, balance and number count. |
GET /usage | Your recent API requests (limit up to 200, offset). |
POST /webhooks | Register a URL: url, optional events (leave out for every event, list in GET /webhooks/events). Returns the secret for checking signatures, once. |
GET /webhooks, DELETE /webhooks/{id} | List or remove your webhook URLs. |
curl https://calls.satas.co.ke/api/v1/messages \
-H "Authorization: Bearer $SATAS_KEY" \
-H "Content-Type: application/json" \
-d '{"to": "+254712345678", "body": "Your order 1042 is on its way."}'
Reply (201):
{
"message_id": "SM3F9A...",
"to": "+254712345678",
"status": "sent",
"cost_kes": 1.5,
"balance_kes": 248.5
}
// Node.js 18 or later
const r = await fetch('https://calls.satas.co.ke/api/v1/messages', {
method: 'POST',
headers: { Authorization: 'Bearer ' + process.env.SATAS_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({ to: '+254712345678', body: 'Your order 1042 is on its way.' }),
});
console.log(r.status, await r.json());
# Python, with requests
import os, requests
r = requests.post('https://calls.satas.co.ke/api/v1/messages',
headers={'Authorization': 'Bearer ' + os.environ['SATAS_KEY']},
json={'to': '+254712345678', 'body': 'Your order 1042 is on its way.'})
print(r.status_code, r.json())
Send contacts from your own system or CRM straight into a dialer campaign, start it, and get every call result back, by webhook as it happens or by asking for it. Uses the same /api/v1 key as above; the Outbound Dialer module must be active on your account. Your Do-Not-Call list and calling hours apply to every contact.
| Request | What it does |
|---|---|
GET /campaigns | Your campaigns with progress. |
POST /campaigns | Create one: name (required), optional caller_id (one of your numbers), dialer_mode (power, preview, predictive), max_attempts, call_start, call_end. |
GET /campaigns/{id} | One campaign and its counts. |
POST /campaigns/{id}/contacts | Add up to 50,000 contacts per request: contacts: [{ phone, name, external_id, fields }]. external_id is your own record ID: send the same one again to update that contact instead of adding a copy. fields is any small JSON object you want back in webhooks. |
POST /campaigns/{id}/start, /pause, /stop | Control dialing. |
GET /campaigns/{id}/calls?since= | Call results after a time (ISO date), oldest first, up to 1,000 per request. Ask again with next_since from the reply. |
curl https://calls.satas.co.ke/api/v1/campaigns/12/contacts \
-H "Authorization: Bearer $SATAS_KEY" -H "Content-Type: application/json" \
-d '{"contacts": [
{"phone": "+254712345678", "name": "Jane Wanjiru", "external_id": "CUST-1042", "fields": {"balance": 3200}},
{"phone": "0723456789", "name": "Peter Otieno", "external_id": "CUST-1043"}]}'
Reply: {"inserted": 2, "updated": 0, "duplicates": 0, "dnc": 0, "invalid": 0}
| Event | When |
|---|---|
dialer.call.completed | Every call attempt ends: outcome (answered, no-answer, busy, failed, voicemail), duration, agent, and the contact with your external_id and fields. |
dialer.call.dispositioned | The agent saves the result of a conversation: disposition, notes, callback time. |
dialer.campaign.completed | Every contact has been worked; includes the campaign totals. |
{
"event": "dialer.call.completed",
"company_id": 4,
"fired_at": "2026-10-30T15:17:56.120Z",
"data": {
"campaign": {"id": 12, "name": "October renewals"},
"call": {"id": 881, "phone": "254712345678", "outcome": "answered", "duration_sec": 41,
"agent_ext": "3060", "started_at": "2026-10-30T15:17:15Z", "ended_at": "2026-10-30T15:17:56Z"},
"contact": {"id": 5521, "external_id": "CUST-1042", "name": "Jane Wanjiru", "status": "answered",
"attempts": 1, "disposition": null, "fields": {"balance": 3200}}
}
}
| Request | Scope | What it does |
|---|---|---|
GET /ping | any | Check the key works; shows its company and scopes. |
GET /contacts | contacts:read | Newest contacts first. limit (up to 500) and offset. |
POST /contacts | contacts:write | Add a contact: name (required), email, phone, company, title, status. |
GET /deals | deals:read | Deals with value, stage and dates. limit and offset. |
curl -X POST https://calls.satas.co.ke/api/v2/contacts \
-H "X-API-Key: $SATAS_CRM_KEY" -H "Content-Type: application/json" \
-d '{"name": "Jane Wanjiru", "phone": "+254712345678", "company": "Acme Ltd"}'
Add a webhook in the portal under Webhooks (or CRM, Integrations), or with POST /api/v1/webhooks. Satas sends a POST with a JSON body to your URL, and retries up to five times over about 15 hours if your server does not answer with a 2xx status. URLs must be public internet addresses.
| Area | Events |
|---|---|
| Calls | call.completed, call.missed, call.initiated |
| Outbound dialer | dialer.call.completed, dialer.call.dispositioned, dialer.campaign.completed |
| SMS | sms.sent |
| Contacts and leads | contact.created, contact.updated, lead.received |
| Deals | deal.created, deal.stage_changed, deal.won, deal.lost |
| Tasks | task.created, task.completed |
| Orders and tickets | order.created, order.status_changed, ticket.created |
Each request has X-Webhook-Event and X-Webhook-Signature: sha256=..., an HMAC-SHA256 of the raw body using your webhook secret. Reject requests where it does not match:
// Node.js (Express): use the raw body, not parsed JSON
const crypto = require('crypto');
app.post('/satas-webhook', express.raw({ type: 'application/json' }), (req, res) => {
const expected = 'sha256=' + crypto.createHmac('sha256', process.env.SATAS_WEBHOOK_SECRET).update(req.body).digest('hex');
const got = req.get('X-Webhook-Signature') || '';
if (got.length !== expected.length || !crypto.timingSafeEqual(Buffer.from(got), Buffer.from(expected))) return res.sendStatus(401);
const event = JSON.parse(req.body);
// ... handle event ...
res.sendStatus(200);
});
Zapier, Make and n8n can receive these webhooks too: use their "catch webhook" trigger URL as your webhook address.
Tell us what you are connecting and we will help you get it working, including higher limits and sender IDs.