Docs · Developers
REST API reference
Base: https://app.spamuraidialer.com/api/v1. Send Authorization: Bearer spk_…. See API overview for keys, errors and limits. Each endpoint has the same name as its MCP tool.
Lists
GET/lists · read
All lead lists with lead counts (leads, toCall), lead fields and outcomes. Tool: list_lists.
{ "lists": [ { "id": "…", "name": "Gyms Q1", "description": "", "enabled": true, "deleted": false,
"leads": 412, "toCall": 230, "fields": [ … ], "outcomes": [ { "id", "label", "category", "libraryId"? } ] } ] }
GET/lists/{id} · read
One list in full: settings, lead fields and outcomes with their forms, actions and waits. Tool: get_list.
PUT/lists/{id}/fields · configure
Replace the list’s lead fields (max 30). Keep existing keys; leads, imports and integrations use them. Tool: save_list_fields.
{ "fields": [
{ "key": "package", "label": "Package", "type": "select", "options": ["8 weeks", "12 weeks"] },
{ "key": "budget", "label": "Budget", "type": "money" }
] }
Types: text, number, money, email, select, date. Not allowed as keys (already on every lead): name, phone, email, title, notes, company.
POST/lists/{id}/outcomes · configure
Add a library outcome to a list so callers see it. Does nothing when the list already has it. Tool: add_outcome_to_list.
{ "outcomeId": "lib-…" } → { "listId": "…", "added": true }
Leads
GET/leads · read
Find leads. Tool: search_leads.
q | Words in name, email, title or field values; or 4+ digits of the phone number |
listId | Only this list |
status | active (still to call) or done |
waiting | true: only leads waiting for an integration result |
limit | 1–100, default 25 |
{ "total": 3, "leads": [ { "id", "listId", "name", "phone", "email", "title", "status", "fields": {…},
"lastOutcome": { "label", "category", "at" } | null, "calls": 2, "waiting"?: {…}, "lastResult"?: {…} } ] }
GET/leads/{id} · read
One lead with notes, fields, last 50 calls, waiting state and integration results. Tool: get_lead.
PATCH/leads/{id}/fields · configure
Set field values on one lead, merged; null or "" removes a field (max 30 per call). Tool: update_lead_fields.
{ "fields": { "package": "12 weeks", "budget": 997, "old_field": null } }
POST/leads/{id}/results · configure, or an integration’s result key
Record an integration result on a lead. Accepts an API key (spk_…, configure) or an integration’s result key (srk_…). Tool: post_result. See Sending results back.
{ "status": "paid", "amount": 997, "note": "order 123", "fields": { "order_id": "123" } }
Outcome library
GET/outcomes · read
The outcome library. Tool: list_outcomes.
POST/outcomes · configure
PUT/outcomes/{id} · configure
Create or change a library outcome. Lists that use it are updated. Tool: save_outcome.
{
"label": "Send payment link",
"category": "sale",
"form": [
{ "key": "package", "label": "Package", "type": "select", "options": ["8 weeks","12 weeks"], "required": true, "saveTo": "lead" },
{ "key": "amount", "label": "Amount", "type": "money", "required": true, "saveTo": "call" }
],
"actions": [
{ "type": "webhook", "integrationId": "int-…" },
{ "type": "sms", "text": "Hi {{lead.first_name}}, your payment link: {{result.payment_url}}" },
{ "type": "email", "subject": "Your payment link", "text": "…" }
],
"await": { "status": "paid", "label": "Paid", "after": { "value": 24, "unit": "hours" }, "onTimeout": "callback", "live": true }
}
category | sale, positive, callback, neutral, negative |
form | Up to 12 questions: key, label, type, options, required, saveTo (lead | call). A money question is the revenue. |
actions | Up to 8, in order: webhook (with integrationId), sms, whatsapp (with text), email (with subject and text). Texts up to 1,500 characters. |
await | Only with a webhook action. after.value 1–720, unit hours | days. onTimeout: callback, remind (send messages again once, then call back) or wait. live: true keeps the caller on the call screen. |
Integrations
GET/integrations · read
Integrations with their last calls. Configure keys also see secret and resultKey. Tool: list_integrations.
POST/integrations · configure
PUT/integrations/{id} · configure
Create or change an integration. Returns its signing secret and result key. Tool: save_integration.
{ "name": "Payment link", "url": "https://example.com/spamurai" }
POST/integrations/{id}/test · configure
Send a signed test event and return the answer. Tool: test_integration.
Reports & guide
GET/reports/revenue · read
Calls, sales and revenue between two dates. Tool: revenue_report.
from, to | YYYY-MM-DD; default the last 30 days |
groupBy | list (default), caller or day |
{ "from": "2026-10-21", "to": "2026-11-20", "currency": "EUR", "groupBy": "list",
"total": { "calls": 1200, "sales": 14, "sold": 13958, "paid": 9970 },
"rows": [ { "key", "label", "calls", "sales", "sold", "paid" } ] }
GET/guide · read
The integration guide as Markdown, with your server’s address filled in. Tool: integration_guide.
Example
curl https://app.spamuraidialer.com/api/v1/leads?q=jansen&limit=5 \
-H "Authorization: Bearer spk_…"