AgentSend

Cold email infrastructure for AI agents: sending domains and inboxes, warmup, campaigns built from templates, reply handling and analytics, all through one HTTP API. Prepaid credits pay a monthly workspace fee and a charge per contact reached; prices at GET /v1/prices.

Base URL: https://api.useagentsend.com/v1
Dashboard for people: https://app.useagentsend.com (it calls this same API)
OpenAPI 3.1: https://api.useagentsend.com/openapi.json (request schemas are the ones the server validates with)
MCP: https://api.useagentsend.com/mcp (Streamable HTTP; send the same Authorization: Bearer ak_live_… header). One tool per endpoint below, named after it (POST /templates/{id}/preview → post_templates_id_preview); arguments are the path parameters, the query parameters, body, workspace_id and, for writes, idempotency_key.
Terms: https://api.useagentsend.com/terms (using the API, including through an agent, binds the account holder) · Privacy: https://api.useagentsend.com/privacy

Authentication

Conventions

Tiers

A new workspace is T0: it can set up (templates, quotes) but not send cold email. T1+ can send, with daily caps (GET /v1/workspace shows tier, caps and balance). During the beta the AgentSend team moves workspaces up.

The path to a first campaign

Start every run with GET /v1/workspace/next-actions (MCP get_workspace_next_actions): every blocker and next step across the workspace, blockers first, each with a fix, requires_human and the call to make next. It is built for an agent that doesn't remember its last run.

  1. GET /v1/workspace: tier, caps, credit balance.
  2. Sending infrastructure: POST /v1/infrastructure with {"domains":{"names":["acme-mail.com"]}, "inboxes_per_domain":2,"personas":[{"first_name":"Sam","last_name":"Rivera"}],"timezone":"America/New_York", "dry_run":true} returns a quote; send again with "dry_run":false to buy (job). Domains and inboxes then verify and warm up: GET /v1/domains, GET /v1/inboxes. Personas take turns across inboxes; one person can hold several (george.witwer@, george@, g.witwer@ …), or name them with "usernames". The quote lists the exact addresses. More inboxes later on a verified domain: POST /v1/inboxes {"domain","first_name","last_name","username"?}.
  3. Copy: POST /v1/templates {"name","steps":[{"delay":0,"variants":[{"subject","body"}]},{"delay":3,"variants":[{"body"}]}]}. Merge fields: {{first_name}}, {{last_name}}, {{company_name}}, {{title}}, {{sender_name}}, and any custom_variables key every lead carries. The response includes lint findings with fixes. See what one person would get: POST /v1/templates/{id}/preview {"lead":{"email","first_name",…,"custom_variables":{}}} (changes nothing). New versions: POST /v1/templates/{id}/versions. All mail is sent from templates; there is no raw send.
  4. Campaign: POST /v1/campaigns {"name","template_id","email_list":["inbox id or address"],"daily_limit":50, "campaign_schedule":{"timezone","days":[1,2,3,4,5],"from":"09:00","to":"17:00"}} (or inline "sequences":[{"steps":[…]}] instead of template_id). PATCH /v1/campaigns/{id} changes the name or template pin while draft, paused or rejected.
  5. Leads: POST /v1/leads {"campaign_id","leads":[{"email","first_name","company_name","custom_variables":{}}]} (≤ 1000 per call). People who already know the sender: POST /v1/warm-audience (same shape plus "relationship").
  6. Check first: GET /v1/campaigns/{id}/lint runs every free launch check (copy rules, tier, leads, inboxes, sender address) and returns each issue with a fix; nothing changes. Activate: POST /v1/campaigns/{id}/activate ({"dry_run":true} to preview). Leads are verified, copy passes rule and AI review, and a canary runs. Then GET /v1/campaigns/{id}/sending-status says what is sending, what is blocked and why, with a fix.
  7. Results: GET /v1/campaigns/{id}/analytics (totals, rates, by step and variant, lead states) and /analytics/daily?timezone=&days=. Opens and clicks are not tracked, by design.
  8. Pause and resume: POST /v1/campaigns/{id}/pause {"reason"} stops sending within seconds (status "pausing", then "paused"); POST /v1/campaigns/{id}/resume restarts it. Leads keep their place. Copy and name can change while paused. GET /v1/campaigns/{id} returns status (what is happening) and desired (what you asked for); "paused_by_system" means a safety check stopped it, which resume does not override.
  9. Replies: GET /v1/emails lists what recipients wrote back, newest first, each with a label (interested, not_interested, wrong_person, unsubscribe, angry, out_of_office, auto_reply, bounce_notice). By default it leaves out automatic mail; ?mode=all shows everything, ?label=interested only that label. GET /v1/emails/{id} returns the reply with the whole conversation. Unsubscribes and angry replies are suppressed for you, and any reply stops that lead's sequence.
  10. Lead discovery (preview, enabled per workspace; others get 403 lead_discovery_not_enabled): POST /v1/lead-searches describes who to find in words, with filters (countries, employees, exclude, roles), contacts_per_company, target_contacts and max_spend_usd, a hard cap. Agents find companies, check each site, and pick verified people with the roles asked for. GET /v1/lead-searches/{id} shows status, spend and each query's yield; GET /v1/lead-searches/{id}/companies shows why each company fits or was dropped, with its contacts. Review, then POST /v1/lead-searches/{id}/leads {"campaign_id"} puts the picked contacts into a campaign with the same checks as an upload.

Webhooks

Instead of polling for replies, subscribe: POST /v1/webhooks {"url":"https://…","events":["reply.received"]} (or ["*"]; also campaign.ready, campaign.rejected). The response carries secret once: store it. Each event is POSTed as {"id","type","created_at","workspace_id","data"}; for reply.received, data.reply_id is the id for GET /v1/emails/{id}. Answer any 2xx within 10 s; otherwise it is retried with backoff for 72 hours, so deduplicate on id (also in the AgentSend-Event-Id header). POST /v1/webhooks/{id}/test sends a webhook.test event now and returns your status code; GET /v1/webhooks/{id}/deliveries shows every attempt. Verify AgentSend-Signature (t=<ms>,v1=<hex>, HMAC-SHA256 of t + "." + raw body with the secret) before trusting a delivery:

Endpoints

Account

Keys and people

Credits

Sending

Templates

Campaigns

Replies

Webhooks

Lead discovery (preview)

Rules that never bend

Pricing

Credits (GET /v1/billing/balance) pay for:

Sends and verification appear in GET /v1/usage at $0. A purchase needs credits for the domains and the first month's fees; quote first with "dry_run": true (free).