For engineers
Send a draft from any script. Change nothing else
Your weekly report job emails a private address or calls the API. Mape cleans the HTML, hosts the images and pours it into the company’s template. A person checks it and sends it.
What changes for you
One new destination for a job you already have.
- 1
Create a source
In Settings, name it (“Weekly industry report”), pick its default list and template, and list who may send to it. You get a private address and an API key, shown once.
- 2
Point your job at it
Email the address from your own mail server, or POST the HTML, Markdown or a whole .eml file. The rest of your pipeline stays as it is.
- 3
Mape builds the draft
Scripts, forms and external stylesheets are removed, images are re-hosted and your template is applied. Poll the message, or listen for the inbound.ready webhook.
- 4
A person sends it
A teammate edits, checks the previews and sends. Click and open tracking is added only then, so the draft and the previews stay clean.
One request in, one draft out
The answer comes back at once with an ID. The draft follows when the message has been processed. Send the same idempotency key again within 24 hours and you get the first message back, not a second draft.
Prefer email? Send the same report to the source’s address from your own mail server and set the template in a header. The docs have the Python sample, every option, the limits and the error codes.
What you can build on
Each one has a page of its own.
-
A private address per source
It accepts mail only from the senders you allow, up to 25 MB a message. Treat it like a password: regenerate it and the old one stops working at once.
Inbound Drafts -
A plain REST API
JSON with a bearer key, cursor pagination, an Idempotency-Key on every POST and errors in one shape. The reference is generated from the OpenAPI file the server serves.
API and MCP -
MCP for your agents
A remote MCP server with OAuth sign-in, or an API key for agents on a server. Tools plan the week, draft, edit in words, preview and read results.
API and MCP -
Keys you can reason about
Each key has a name, scopes and an optional expiry. It starts with mape_ so secret scanners recognise it, is stored only as a hash, and revoking it is immediate.
API and MCP -
Signed webhooks
Events for review, approval, sending, subscribes, unsubscribes and results. Each is signed with HMAC-SHA256 and a timestamp, and retried with backoff for 24 hours.
API and MCP -
One way out
Whatever your code sends in gets the company’s template, goes out from the company’s own domain and is tracked with everything else.
Email router
The rules your code runs under
They are the same for every key and every agent, so you can design around them.
-
No key approves or sends
No scope grants it and no MCP tool exists for it. A client can move an email to “In review”, which notifies the team. Approval is a person’s tap in the app.
-
Consent needs evidence
An upsert can subscribe a contact only with a consent record: source, time and wording. Without it the contact is stored as “No consent yet”. Unsubscribing by API is always allowed, and a suppression can be added but never removed.
-
Rate limits by plan
The API and MCP are on every plan. Starter allows 60 requests a minute and 10,000 a day; Growth 120 and 50,000; Pro 300 and 200,000; Scale 600 and 500,000. Past that you get a 429 with Retry-After.
-
Text is data, never orders
Tool results mark contact fields and imported text as data. Mape’s tools do not follow instructions found in email bodies, contact fields or inbound emails.
Your code drafts. The team decides
What your script or agent makes shows up next to everyone else’s work, labelled with where it came from: “via API” with the key’s name, or “via MCP” with the client’s.
- Each inbound source has its own reviewers, who are told when a draft is ready.
- A reviewer edits text and images, switches the template if needed and checks desktop, mobile and dark mode.
- Any teammate can approve. Approval is for one version; a later change needs “Stop and edit”.
- API keys and webhooks are managed by the account owner in Settings.
Questions, answered
Limits, options and error codes are in the docs.
Do I have to change how our report is generated?
No. Any HTML is accepted. Simple HTML with headings, paragraphs, lists, images and tables converts best, and Markdown is the cleanest input of all. Optional comment markers let you place content into named parts of a template.
Can my job send the newsletter with no person involved?
Build for a person in the loop: your job makes the draft and a teammate releases it. That also means a leaked address or key can do no more than create an unwanted draft.
Does the API cost extra?
No. It is on every plan. AI work you ask for through it, such as a draft from a brief or an edit in words, uses AI credits exactly as in the app. If your agent supplies the finished text, no credits are used. Cleaning up an inbound email with AI usually costs 1 credit, and a message can turn the AI off.
Can we get everything out again?
Yes. One export holds contacts with consent evidence, tags, groups and suppressions as CSV, every email as sent HTML, plain text and block JSON, results per email, automations, themes and uploaded images. The same export is available from the API.
Keep reading
- API and MCP Draft, edit and read results from your code, or from Claude, ChatGPT and your own agents.
- Inbound Drafts Your systems email a report to Mape; your team gets an editable newsletter draft.
- Email router Every email your company sends comes in, gets your design, goes out and is tracked in one place.
Point one job at Mape and see
An address, an API and MCP. Your pipeline does not change.
Get started