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
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:
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 gets403.
Routes
| Method | Path | What it does |
|---|---|---|
| Read data | ||
| GET | /api/pools | Your 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/overview | Everything 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}/mailboxes | Which mailboxes the campaign sends from. |
| GET | /api/health | Health 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/summary | The home summary. Add ?fresh=1 to rebuild it. |
| GET | /api/canvas | Everything the Canvas draws. |
| GET | /api/crm | Every 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-counts | Total contacts, unreachable contacts, contacts in no list. |
| GET | /api/context | Context files. Filters: ?campaign_id=, ?scope=company|campaign. |
| GET | /api/context/file?id={id} | One context file with its content. |
| GET | /api/settings | Configured integrations (never the keys), the MCP URL and the API base. |
| GET | /api/outreachguy | OutreachGuy hand-off: connected, choices (campaign, interested, conversion), its campaigns, hot leads count. |
| GET | /api/handoffs | Hand-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/providers | Mailbox providers you can create or connect. |
| GET | /api/warmup | Warm-up state of the mailboxes. |
| Change things | ||
| POST | /api/send | Send 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}/send | The same, from one of your custom pools: it sends only from the domains of that pool. |
| POST | /api/campaigns/{id}/mailboxes | Choose 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/variants | Add an angle. Body: {campaign_id, step, angle, subject, body}. |
| POST | /api/conversion | Report a conversion. Body: {token or email, value, event, note, data}. Same effect as the postback. |
| POST | /api/handled | Mark an interested lead as handled. Body: {contact_id, undo}. |
| POST | /api/outreachguy | Save the OutreachGuy choices: {campaign_id, interested, conversion}. |
| POST | /api/outreachguy/sync | Send every hot lead Kata has now to OutreachGuy (up to 300). |
| POST | /api/handoffs | One 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/connect | Gmail or Outlook: a sign-in link ({ app }). Returns { url, account }. |
| POST | /api/mailboxes/connect/finish | After the sign-in ({ app, account }): the address becomes an active mailbox. |
| Run jobs | ||
| POST | /api/verify-email | Check 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-brief | Check the campaign's brief.md (same as check_campaign_brief). |
| POST | /api/sendingAffects 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/evolve | Run the evolve job now: retire losing angles, write new ones. |
| POST | /api/tickSends email | Run the scheduler now. This really sends. |
| Agent | ||
| GET | /api/agent/tools | The MCP tools: name, description, parameter names, required ones. |
| GET | /api/agent/conversations | The built-in agent's conversations. |
| GET | /api/agent/chat?c={id} | One conversation's transcript. |
403. Use the matching MCP tool instead.Send data
curl -s -X POST "https://api.katasend.com/api/import?campaign=1" \
-H "Authorization: Bearer $KATA_KEY" \
--data-binary @leads.csvVerify 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.
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
unknownanswer is free. The call needs credits for every address it sends, or it answers402with your balance. - status
valid: the server confirmed the mailbox.invalid: it does not exist, or the address or domain cannot receive email (suggestionfixes typos like gmial.com).catch_all: the server accepts every address, soscore(0 to 1) estimates whether an email lands.unknown: no answer, try again in a few hours.- send
truewhen 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 withprice_usd),billed,charged_usd,balance_usd. - Time
- A few seconds usually, up to 2 minutes when a server is slow.
503when the verifier is down; nothing is charged.
Calling MCP tools over HTTP
Any tool can be called with one POST, no MCP client needed:
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
| What | URL |
|---|---|
| REST API | https://api.katasend.com/api |
| MCP server | https://api.katasend.com/mcp |
| App | https://katasend.com/app |
| Lead list webhook | https://api.katasend.com/hooks/lists/<token> |
| Conversion postback | https://api.katasend.com/hooks/postback/<key> |
Webhook URLs carry their own secret, so they need no key. See Webhooks.