Docs · Developers

API overview & keys

Spamurai has four ways in for your own code:

Lead intake webhookPush leads into a list from forms, Zapier, Make or a CRM. One secret URL per list.
IntegrationsOutcomes call your HTTPS endpoint after a call (signed), and you send results back.
REST APIRead lists, leads, outcomes, integrations and revenue; configure lead fields, outcomes and integrations.
MCP serverThe same operations as tools for Claude and other MCP clients.

Base addresses

REST API    https://app.spamuraidialer.com/api/v1
MCP server  https://app.spamuraidialer.com/mcp
Lead intake https://app.spamuraidialer.com/hooks/leads/<key>

Self-hosted: use your own domain. Settings → API & MCP shows the exact addresses with copy buttons.

API keys

Admins create keys under Settings → API & MCP: a name (e.g. “Claude — laptop”) and what the key may do. The key starts with spk_ and is shown once; only its hash is stored. Each key only sees its own space.

ScopeMay
readLook at lists, leads, outcomes, integrations (without their secrets) and revenue, and read the integration guide.
configureEverything read may, plus change lead fields, list fields, the outcome library and integrations, add outcomes to lists, test integrations and post results. Also sees integration secrets.

Delete a key there to stop it straight away. Keys show when they were last used.

Authentication

Authorization: Bearer spk_…

Tokens from “Sign in with Spamurai” (spa_…, see MCP & OAuth) work the same way, with the scope the admin approved.

Errors

Errors come back as JSON {"error": "…"} with a readable message:

400Something in the request is wrong; the message says what.
401No key, or an unknown key.
403A read key tried to change something.
404Unknown route, list, lead, outcome or integration.
429Too many requests.

Rate limits

  • REST API and MCP: 240 requests per minute per key.
  • Lead intake: 60 leads per minute per URL.

Conventions

  • JSON in and out, bodies up to 256 KB.
  • Amounts are in euros.
  • Dates are ISO 8601; report dates are YYYY-MM-DD.
  • Field keys are lowercase letters, digits and _ (max 40).