# Alienmail - **Get started** - [Introduction](/): Connect your own systems to Alienmail with the REST API and the MCP server. - [Quickstart](/quickstart): Create an API key and make your first requests. - [Authentication](/authentication): API keys, roles, and the permission each endpoint needs. - **Basics** - [Errors](/errors): Status codes and the error format. - [Pagination](/pagination): Cursor pagination for list endpoints. - [Rate limits](/rate-limits): 120 requests per minute per API key. - **Guides** - [Sync leads](/guides/sync-leads): Add, update, stop and remove the people a campaign emails. - [Campaigns and mailboxes](/guides/campaigns-and-mailboxes): List, start and pause campaigns, and manage the mailboxes they send from. - [Alienmail MCP server](/guides/mcp-server): Work with your Alienmail account from Claude, Cursor and other AI tools. - [Connect your own app](/guides/mcp-oauth): For developers. Connect your app or agent to the Alienmail MCP server with OAuth or an API key. - [AI tools and MCP](/ai-tools): Use these docs from ChatGPT, Claude, Cursor and other AI tools. - **API reference** - [Overview](/api-reference): Every endpoint of the Alienmail REST API, with a playground to try it. - Campaigns - [List campaigns](/api-reference/campaigns/listCampaigns): The campaigns of your workspace, newest first. Archived campaigns are included; deleted ones are not. - [Start or resume a campaign](/api-reference/campaigns/startCampaign): Starts a `draft` campaign, resumes a `paused` one, or restarts a `completed` one. Leads that were waiting become `active` and their next email is queued. A campaign that is already `active` is returned unchanged, so the call is safe to repeat. - [Pause a campaign](/api-reference/campaigns/pauseCampaign): Stops sending: emails that were waiting to go out are taken off the queue. Start the campaign again to resume; each lead then continues with their next email. A campaign that is already `paused` is returned unchanged. - Leads - [List leads](/api-reference/leads/listLeads): The leads of a campaign, newest first. Leads that were removed from the campaign are not listed. - [Add leads](/api-reference/leads/addLeads): Adds up to 500 people to a campaign by email. In an `active` campaign a new lead's first email is queued at once; in a `draft` or `paused` one they wait as `pending` until it starts. Adding to a `completed` campaign makes it `active` again. - [Update a lead](/api-reference/leads/updateLead): Changes a lead's fields and custom values, and stops or resumes emails to them. Only what you send changes. - [Remove a lead](/api-reference/leads/removeLead): Removes one lead from a campaign and cancels their waiting emails. The emails the campaign already sent them stay in its statistics, and the person stays in your workspace's leads. An `archived` campaign returns 409. - [Remove leads](/api-reference/leads/removeLeads): Removes up to 500 leads from a campaign by email. Their waiting emails are cancelled. The emails the campaign already sent them stay in its statistics, and the people stay in your workspace's leads. - Mailboxes - [List mailboxes](/api-reference/mailboxes/listMailboxes): The mailboxes connected to your workspace, newest first. Passwords, tokens and server settings are never returned. - [Update a mailbox](/api-reference/mailboxes/updateMailbox): Changes a mailbox's sender name, its daily sending limit, or turns it off and on. Only what you send changes. Server settings, logins and passwords can't be changed through the API: reconnect the mailbox in Alienmail.