Eastern Bypass, Utawala. Grey Park Heights, 3rd floor, Suite C3 +254 717 581 105 info@satas.co.ke
  Developers

Satas API, for your own systems

Send SMS, check your balance and numbers, read and add CRM contacts, and get notified when calls, deals and tickets change.

Get an API key Read the guide

Three steps to your first request

  1. Create an account on the client portal (14-day free trial) and top up your wallet with M-Pesa or card.
  2. Create a key. Messaging and account key: portal, Developer. CRM key: portal, CRM, Integrations. Each key is shown once; keep it on your server, never in a browser or mobile app.
  3. Call the API over HTTPS with JSON. Every response carries an X-Request-ID header; quote it if you contact support.
Messaging and account APICRM API
Base URLhttps://calls.satas.co.ke/api/v1https://calls.satas.co.ke/api/v2
Key headerAuthorization: Bearer sk_live_...X-API-Key: sk_live_...
Where to create itPortal, DeveloperPortal, CRM, Integrations (choose scopes)
Limit600 requests a minute per keyUp 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).

Endpoints

RequestWhat it does
POST /messagesSend 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 /balanceWallet balance and total spent, in KES.
GET /numbersPhone numbers assigned to your account.
GET /accountCompany, plan, balance and number count.
GET /usageYour recent API requests (limit up to 200, offset).
POST /webhooksRegister 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.

Send an SMS

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
}

The same in Node.js and Python

// 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())

Connect your database to the dialer

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.

RequestWhat it does
GET /campaignsYour campaigns with progress.
POST /campaignsCreate 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}/contactsAdd 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, /stopControl 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}

Dialer webhook events

EventWhen
dialer.call.completedEvery call attempt ends: outcome (answered, no-answer, busy, failed, voicemail), duration, agent, and the contact with your external_id and fields.
dialer.call.dispositionedThe agent saves the result of a conversation: disposition, notes, callback time.
dialer.campaign.completedEvery 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}}
  }
}

Contacts and deals

RequestScopeWhat it does
GET /pinganyCheck the key works; shows its company and scopes.
GET /contactscontacts:readNewest contacts first. limit (up to 500) and offset.
POST /contactscontacts:writeAdd a contact: name (required), email, phone, company, title, status.
GET /dealsdeals:readDeals 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"}'

Get told when something happens

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.

AreaEvents
Callscall.completed, call.missed, call.initiated
Outbound dialerdialer.call.completed, dialer.call.dispositioned, dialer.campaign.completed
SMSsms.sent
Contacts and leadscontact.created, contact.updated, lead.received
Dealsdeal.created, deal.stage_changed, deal.won, deal.lost
Taskstask.created, task.completed
Orders and ticketsorder.created, order.status_changed, ticket.created

Check the signature

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.

Building something with Satas?

Tell us what you are connecting and we will help you get it working, including higher limits and sender IDs.