# Automailer API > Automailer is a cold-email outreach platform. Its REST API and MCP server let you manage workspaces, sending mailboxes, contact lists, contacts, exclusions, campaigns, analytics, the reply inbox, AI reply agents, Lead Finder (B2B people search) and LinkedIn workflows. - Base URL: https://app.automailer.io/api/v1 - Auth: `Authorization: Bearer amk_live_...` (keys: Settings → Integrations → API Keys in the app; paid plans) - Workspace: add `X-Workspace-Id: ` to act on a workspace other than the key's primary one (`GET /workspaces` lists ids) - Rate limit: 60 requests/minute per key; on 429 wait `Retry-After` seconds - Errors: `{"error": {"type", "code", "message", "request_id"}}`; branch on `code` - Safety: new campaigns are drafts and send nothing until `POST /campaigns/{id}/activate`. Inbox reply/forward need `confirm_send: true`. Endpoints that send email or spend credits need an `Idempotency-Key` header. ## Docs - [OpenAPI 3.1 spec](https://app.automailer.io/api/openapi.yaml): full machine-readable reference, every operation has an operationId - [API reference](https://app.automailer.io/api/docs): human-readable rendering of the same spec - [MCP server guide](https://app.automailer.io/api/mcp): connect Claude, Codex, Cursor or any MCP client to `https://mcp.automailer.io/mcp` (68 tools, Streamable HTTP, same API key) ## Workspaces - `GET /workspaces` (listWorkspaces): List accessible workspaces - `GET /workspaces/current` (getCurrentWorkspace): Get the current workspace ## Analytics - `GET /analytics` (getAnalytics): Campaign analytics over time ## Spam Check - `POST /spam-check` (checkSpam): Check email copy for spam triggers ## Email Accounts - `GET /email-accounts` (listEmailAccounts): List email accounts - `GET /email-accounts/{id}` (getEmailAccount): Retrieve an email account - `POST /email-accounts/connect-url` (createEmailAccountConnectUrl): Mint a mailbox connect (consent) URL ## Email Account Tags - `GET /tags` (listEmailAccountTags): List email account tags - `POST /tags` (createEmailAccountTag): Create a tag - `PATCH /tags/{id}` (updateEmailAccountTag): Update a tag - `DELETE /tags/{id}` (deleteEmailAccountTag): Delete a tag - `POST /tags/assign` (assignEmailAccountTags): Tag or untag mailboxes in bulk ## Contact Lists - `GET /lists` (listContactLists): List contact lists - `POST /lists` (createContactList): Create a list - `GET /lists/{id}` (getContactList): Retrieve a list - `PATCH /lists/{id}` (renameContactList): Rename a list - `DELETE /lists/{id}` (deleteContactList): Delete a list - `POST /lists/{id}/verify` (verifyContactList): Verify the emails on a list that have no result yet (uses verification credits, needs Idempotency-Key) ## Contacts - `GET /lists/{id}/contacts` (listContacts): List contacts in a list - `POST /lists/{id}/contacts` (addContact): Add / upsert a single contact - `POST /lists/{id}/contacts/bulk` (addContactsBulk): Bulk add / upsert contacts - `GET /contacts/{id}` (getContact): Retrieve a contact - `PATCH /contacts/{id}` (updateContact): Update a contact - `DELETE /contacts/{id}` (deleteContact): Delete a contact ## Exclusions - `GET /exclusions` (listExclusions): List exclusions - `POST /exclusions` (addExclusion): Add an exclusion - `POST /exclusions/bulk` (addExclusionsBulk): Bulk add exclusions - `GET /exclusions/{id}` (getExclusion): Retrieve an exclusion - `PATCH /exclusions/{id}` (updateExclusion): Update an exclusion - `DELETE /exclusions/{id}` (deleteExclusion): Delete an exclusion ## Campaigns - `GET /campaigns` (listCampaigns): List campaigns - `POST /campaigns` (createCampaign): Create a campaign - `GET /campaigns/{id}` (getCampaign): Retrieve a campaign, with every step's emails, A/B variants and per-step numbers - `GET /campaigns/{id}/leads` (listCampaignLeads): List a campaign's leads and their progress (steps sent, replied, bounced) - `PATCH /campaigns/{id}` (updateCampaign): Update a campaign - `DELETE /campaigns/{id}` (deleteCampaign): Delete a campaign - `POST /campaigns/{id}/activate` (activateCampaign): Activate a campaign - `POST /campaigns/{id}/pause` (pauseCampaign): Pause a campaign - `POST /campaigns/{id}/resume` (resumeCampaign): Resume a paused campaign - `POST /campaigns/{id}/complete` (completeCampaign): Mark a campaign as completed - `POST /campaigns/{id}/archive` (archiveCampaign): Archive a campaign - `POST /campaigns/{id}/unarchive` (unarchiveCampaign): Unarchive a campaign ## Lead Finder - `GET /lead-finder/filter-schema` (leadFinderFilterSchema): Get the filter registry - `GET /lead-finder/suggestions` (leadFinderSuggestFilterValues): Typeahead values for a filter - `POST /lead-finder/search` (leadFinderSearch): Search people (free preview) - `GET /lead-finder/credits` (leadFinderCredits): Get the credit balance - `POST /lead-finder/reveal-email` (leadFinderRevealEmail): Reveal a person's email (1 credit) - `POST /lead-finder/reveal-emails/bulk` (leadFinderRevealEmailsBulk): Reveal up to 500 emails (1 credit per new email) - `POST /lead-finder/reveal-phone` (leadFinderRevealPhone): Reveal a person's phone (10 credits) - `POST /lead-finder/builds` (leadFinderCreateBuild): Start a background list build - `GET /lead-finder/builds` (leadFinderListBuilds): List builds (order history) - `GET /lead-finder/builds/{id}` (leadFinderGetBuild): Get one build (poll this) - `DELETE /lead-finder/builds/{id}` (leadFinderCancelBuild): Cancel a queued build - `GET /lead-finder/builds/{id}/csv` (leadFinderBuildCsv): Download a build's CSV - `GET /lead-finder/saved-searches` (leadFinderListSavedSearches): List saved searches - `POST /lead-finder/saved-searches` (leadFinderSaveSearch): Save a search - `DELETE /lead-finder/saved-searches/{id}` (leadFinderDeleteSavedSearch): Delete a saved search - `GET /lead-finder/searches/recent` (leadFinderRecentSearches): Recent searches (deduplicated) - `GET /lead-finder/activity` (leadFinderActivity): Raw usage feed - `GET /lead-finder/lists/{id}/export` (leadFinderExportList): Export an owned list as CSV (free) ## LinkedIn Accounts - `GET /linkedin-accounts` (listLinkedInAccounts): List LinkedIn accounts - `GET /linkedin-accounts/{id}` (getLinkedInAccount): Get a LinkedIn account ## Workflows - `GET /workflows` (listWorkflows): List workflows - `POST /workflows` (createWorkflow): Create a workflow (draft) - `GET /workflows/{id}` (getWorkflow): Get a workflow - `PATCH /workflows/{id}` (updateWorkflow): Update a workflow - `DELETE /workflows/{id}` (deleteWorkflow): Delete a draft - `POST /workflows/{id}/activate` (activateWorkflow): Start a workflow - `POST /workflows/{id}/pause` (pauseWorkflow): Pause a workflow - `POST /workflows/{id}/resume` (resumeWorkflow): Resume a paused workflow - `POST /workflows/{id}/archive` (archiveWorkflow): Archive a workflow - `GET /workflows/{id}/leads` (listWorkflowLeads): People in a workflow ## Inbox - `GET /inbox/stats` (getInboxStats): Inbox overview - `GET /inbox/leads` (listConversations): List conversations - `GET /inbox/leads/{id}` (getConversation): Get a conversation - `PATCH /inbox/leads/{id}` (updateConversation): Tag, assign, pin, archive or mark read - `DELETE /inbox/leads/{id}` (deleteConversation): Delete a conversation - `GET /inbox/leads/{id}/messages` (listConversationMessages): Read the conversation - `GET /inbox/leads/{id}/messages/{messageId}/attachments/{index}` (getInboxAttachment): Download an attachment - `POST /inbox/leads/{id}/reply` (replyToConversation): Send a reply - `POST /inbox/leads/{id}/forward` (forwardConversation): Forward the conversation - `GET /inbox/leads/{id}/notes` (listConversationNotes): List notes - `POST /inbox/leads/{id}/notes` (addConversationNote): Add a note ## Reply Agent - `GET /reply-agents` (listReplyAgents): List reply agents - `POST /reply-agents` (createReplyAgent): Create a reply agent - `GET /reply-agents/{id}` (getReplyAgent): Get a reply agent - `PATCH /reply-agents/{id}` (updateReplyAgent): Update a reply agent - `DELETE /reply-agents/{id}` (deleteReplyAgent): Delete a reply agent - `POST /reply-agents/{id}/test` (testReplyAgent): Try a reply agent - `PUT /reply-agents/keys/{provider}` (setReplyAgentKey): Save a model key - `DELETE /reply-agents/keys/{provider}` (removeReplyAgentKey): Remove a model key - `POST /reply-agents/keys/{provider}/check` (checkReplyAgentKey): Check a model key