Guides

Authentication

Every request carries an API key as a bearer token. The key decides the account, and its level decides what it can do. ChatGPT and Claude don't need one: they connect to the MCP server with OAuth.

Send the key

Create keys on the dashboard's API keys page. They start with mc_ and are shown once: MailCheap only keeps their hash, their first characters and when they were last used. The REST API and the MCP server take the same header. An account has up to 20 active keys.

Header
Authorization: Bearer mc_…

Two levels

LevelCan
Full accessEvery endpoint and MCP tool, including creating and revoking keys. Keep it on a server or in your AI assistant's settings.
Signups onlyOnly add_contact (POST /api/v1/contacts), for signup forms. It can go in a web page: that endpoint answers browsers, and the key can't read or send anything.

A signups only key calling anything else gets 403 forbidden. Keys made before levels existed are signups only. Revoked keys get 401 unauthorized.

A signup form

With a signups only key, from the browser. Pass the visitor's IP from a server to limit signups per visitor.

JavaScript
await fetch("https://mailcaptain.de/api/v1/contacts", {
  method: "POST",
  headers: {
    Authorization: "Bearer mc_your_signups_only_key",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ email: form.email.value, source: "website" }),
});

Rate limits

Each key gets 300 requests eine Minute across REST and MCP. Some actions have their own limit, for each key and for the account: its keys, connected apps and dashboard share the account's, so more keys don't raise it. Over a limit the answer is 429 rate_limited; wait and retry.

add_contact30.000 an hour, 5 per visitor in 10 minutes
update_newsletter3 slug changes einen Tag per account
get_summary120 eine Stunde
check_newsletter_slug300 eine Stunde
send_welcome_test_email20 eine Stunde
set_website_domain10 eine Stunde
check_website_domain60 eine Stunde
invite_team_member10 eine Stunde
preview_summary_email30 eine Stunde
send_inbox_check_email3 einen Tag
create_campaign60 eine Stunde
duplicate_campaign60 eine Stunde
count_section_readers600 eine Stunde
send_test_email30 eine Stunde
get_campaign_tips60 eine Stunde
schedule_campaign30 eine Stunde
send_campaign30 eine Stunde
send_campaign_to_more30 eine Stunde
resume_campaign30 eine Stunde
update_campaign_archive240 eine Stunde
preview_campaign_cleanup30 eine Stunde
create_author60 eine Stunde
update_contacts_status60 eine Stunde
tag_contacts120 eine Stunde
untag_contacts120 eine Stunde
delete_contact120 eine Stunde
delete_contacts60 eine Stunde
import_contacts120 eine Stunde
bring_back_contacts120 eine Stunde
export_contacts30 eine Stunde
create_contact_field60 eine Stunde
count_segment600 eine Stunde
create_segment60 eine Stunde
add_domain10 eine Stunde
check_domain60 eine Stunde
upload_image60 eine Stunde
create_api_key10 eine Stunde
change_plan30 eine Stunde
open_billing_portal30 eine Stunde

Plans

This server is self-hosted without billing: no plans and no limits on emails or subscribers. The billing endpoints answer 404 billing_off.