Docs Home Log in

REST API

Plain HTTP routes for your own code (a backend, a script, a CRM sync) to read or change Kata; for an AI, connect it to the MCP server instead, where every tool is one call.

Base URLhttps://api.katasend.com/api

Try it: get one campaign
curl -s https://api.katasend.com/api/campaigns/1 \
  -H "Authorization: Bearer $KATA_KEY"

Authentication

The MCP server and the REST API take your agent key in this header, on every request:

Request header
Authorization: Bearer <your key>
Body
JSON, with Content-Type: application/json. CSV imports send the raw CSV text instead.
Errors
A missing or wrong key gets 401 {"error": "unauthorized"}. A route for signed-in people only gets 403.

Routes

MethodPathWhat it does
Read data
GET/api/poolsYour credits, the global endpoint, and your custom pools: domains, mailboxes, room left today, endpoint.
GET/api/send/{id}One send: replied, reply_kind (interested, not_interested, unsubscribe, ooo, wrong_person, other), reply_text, bounced, complaint.
GET/api/send?since={date}The last sends, newest first. replied=1: only those with a reply or a bounce; pool_id, limit (500 max). A send with a webhook_url also gets a POST {event: reply|bounce|complaint, send, kind, text, at}.
GET/api/overviewEverything the dashboard shows: KPIs, campaigns, angles, domains, mailboxes, recent emails and events, health, leads to call.
GET/api/campaigns/{id}One campaign: stats, last 14 days, angles, steps, files, lead lists, brief.md, interested leads.
GET/api/campaigns/{id}/mailboxesWhich mailboxes the campaign sends from.
GET/api/healthHealth scores of every domain and mailbox.
GET/api/days?period={today|7d|30d|90d|all}The bars of a chart, one per day: sent, replies, interested, clicks, conversions, bounces. period=today gives one bar per hour of your local today instead: rows keyed h (0-23) instead of d, and unit "hour". Add campaign_id for one campaign or list_id for one lead list, tz (minutes west of UTC, as Date.getTimezoneOffset gives it; default 0 = UTC days) to count in your local days. /api/overview, /api/campaigns/{id} and /api/crm/list take the same period.
GET/api/export?kind={events|messages}A CSV file: the activity log (events) or the emails (messages). Filters: campaign_id, type (event type or message status), mailbox, period. Same as export_csv.
GET/api/summaryThe home summary. Add ?fresh=1 to rebuild it.
GET/api/canvasEverything the Canvas draws.
GET/api/crmEvery lead list with its numbers.
GET/api/crm/list?id={id}One list with its numbers. 0 = everyone, -1 = contacts in no list.
GET/api/contact-countsTotal contacts, unreachable contacts, contacts in no list.
GET/api/contextContext files. Filters: ?campaign_id=, ?scope=company|campaign.
GET/api/context/file?id={id}One context file with its content.
GET/api/settingsConfigured integrations (never the keys), the MCP URL and the API base.
GET/api/outreachguyOutreachGuy hand-off: connected, choices (campaign, interested, conversion), its campaigns, hot leads count.
GET/api/handoffsHand-offs: the rules (when = a list of events), the destinations (katacall, outreachguy, email, webhook) with their campaigns, the last 30 hand-offs, the interested leads count.
GET/api/mailboxes/providersMailbox providers you can create or connect.
GET/api/warmupWarm-up state of the mailboxes.
Change things
POST/api/sendSend one email through Kata's global pool, no campaign. Body: {to, subject, text, from_name, ref, webhook_url}; a follow-up gives reply_to_id (the id of an earlier send) and goes out in the same thread, from the same mailbox. 1 email = 1 pool credit. 1 credit = $0.04. Answers 201 {id, mailbox, thread_id, credits_left…}; 402 no credits, 429 daily cap reached or pool full.
POST/api/pools/{id}/sendThe same, from one of your custom pools: it sends only from the domains of that pool.
POST/api/campaigns/{id}/mailboxesChoose them. Body: {all}, {emails}, or {add, remove}.
POST/api/import?campaign={id}Import a CSV. The body is the raw CSV text. campaign is optional: with it, the campaign pulls the new contacts from the list at send time. Leads already in Kata take the file's non-empty values; existing=keep leaves them as they are. dry_run=1 returns the counts (added, updated, up_to_date) and writes nothing.
POST/api/variantsAdd an angle. Body: {campaign_id, step, angle, subject, body}.
POST/api/conversionReport a conversion. Body: {token or email, value, event, note, data}. Same effect as the postback.
POST/api/handledMark an interested lead as handled. Body: {contact_id, undo}.
POST/api/outreachguySave the OutreachGuy choices: {campaign_id, interested, conversion}.
POST/api/outreachguy/syncSend every hot lead Kata has now to OutreachGuy (up to 300).
POST/api/handoffsOne rule: {when, dest, campaign_id, campaign_name, url, emails} to add; {id, on|when|campaign_id|url|emails} to change; {id, remove: true}. when: one event or a list of replied (any reply from a person), interested, asks_call, clicked (clicked the link or visited the site), conversion; a lead goes once per rule, whichever event fired. dest email: emails = 1 to 5 addresses (list or comma-separated); each gets the lead, the event, the campaign, their reply and our last email, Reply-To the lead. {action: "sync", id}: send the leads that already qualify. {action: "transfer", email, dest|rule_id, campaign_id?, emails?, note?}: one lead now.
POST/api/mailboxes/connectGmail or Outlook: a sign-in link ({ app }). Returns { url, account }.
POST/api/mailboxes/connect/finishAfter the sign-in ({ app, account }): the address becomes an active mailbox.
Run jobs
POST/api/verify-emailCheck one address {email} or up to 100 {emails}: valid, invalid, catch_all or unknown. $0.01 per address from your credits, unknown is free. See Verify email addresses.
POST/api/campaigns/{id}/check-briefCheck the campaign's brief.md (same as check_campaign_brief).
POST/api/sending
Affects all campaigns
Global switch. Body: {on: false} pauses every active campaign; {on: true} resumes the campaigns it paused (not those you paused or archived yourself).
POST/api/evolveRun the evolve job now: retire losing angles, write new ones.
POST/api/tick
Sends email
Run the scheduler now. This really sends.
Agent
GET/api/agent/toolsThe MCP tools: name, description, parameter names, required ones.
GET/api/agent/conversationsThe built-in agent's conversations.
GET/api/agent/chat?c={id}One conversation's transcript.
Some routes of the app are for signed-in people only (settings, keys, chat, and most changes made from the pages). Called with a key, they answer 403. Use the matching MCP tool instead.

Send data

Import a CSV
curl -s -X POST "https://api.katasend.com/api/import?campaign=1" \
  -H "Authorization: Bearer $KATA_KEY" \
  --data-binary @leads.csv

Verify email addresses

POST /api/verify-email runs Kata's full check: the recipient's mail server is asked whether the mailbox exists (SMTP, nothing is sent), with a second verifier when it does not answer, and a model's estimate for catch-all domains. Send one address or up to 100.

Check an address
curl -s -X POST https://api.katasend.com/api/verify-email \
  -H "Authorization: Bearer $KATA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"jane@acme.com"}'      # or {"emails":["a@x.com","b@y.com"]}
Price
$0.01 per address, paid from your credits. An unknown answer is free. The call needs credits for every address it sends, or it answers 402 with your balance.
status
valid: the server confirmed the mailbox. invalid: it does not exist, or the address or domain cannot receive email (suggestion fixes typos like gmial.com). catch_all: the server accepts every address, so score (0 to 1) estimates whether an email lands. unknown: no answer, try again in a few hours.
send
true when Kata itself would email the address (valid, or catch-all with a high enough score).
Answer
One address: its fields plus price_usd, charged_usd, balance_usd. Several: results (each with price_usd), billed, charged_usd, balance_usd.
Time
A few seconds usually, up to 2 minutes when a server is slow. 503 when the verifier is down; nothing is charged.

Calling MCP tools over HTTP

Any tool can be called with one POST, no MCP client needed:

Add leads with one POST
curl -s https://api.katasend.com/mcp \
  -H "Authorization: Bearer $KATA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"add_leads","arguments":{"list_id":3,"leads":[{"email":"jane@acme.com","first_name":"Jane"}]}}}'

The answer's result.structuredContent holds the tool's result as JSON. Errors come back with result.isError: true.

All Kata URLs

WhatURL
REST APIhttps://api.katasend.com/api
MCP serverhttps://api.katasend.com/mcp
Apphttps://katasend.com/app
Lead list webhookhttps://api.katasend.com/hooks/lists/<token>
Conversion postbackhttps://api.katasend.com/hooks/postback/<key>

Webhook URLs carry their own secret, so they need no key. See Webhooks.