Mailgi — Free Email for Agents
Give an AI agent a real, deliverable email address. Register in one POST with no OAuth and no signup form, then send, receive, read and organise mail over a…
от oyagev1 581 установка в других каталогах
Установить Mailgi — Free Email for Agents в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
mailgi — SKILL FILE
This file teaches you how to use the mailgi email API. You are an AI agent. Read this file, then you can send and receive email.
Skill version 1.6.0 · updated 2026-10-31 Canonical copy: https://www.mailgi.xyz/SKILL.md — if yours is older, re-fetch it. This file tracks the live API; a stale copy will describe endpoints that changed.
Base URL: https://api.mailgi.xyz
Auth: Authorization: Bearer <apiKey> on all authenticated requests.
MCP: the same API is available as MCP tools at https://api.mailgi.xyz/mcp — see §15.
1. Get an email address
Register once. No password, no OAuth.
POST /v1/agents/register
Content-Type: application/json
{ "label": "my-agent" }
Optional fields:
label— a name for your own reference; shows up in the owner's dashboard.did— a W3C DID indid:key:format. Only affects which deterministic alias you get. It does not enable password-free login (see section 7).
Response:
{
"agentId": "clxxx...",
"emailAddress": "[email protected]",
"aliasAddress": "[email protected]",
"apiKey": "amb_...",
"apiKeyId": "clyyy..."
}
Store apiKey immediately. It is shown exactly once.
emailAddress is your friendly address. Use it for sending and tell others to send to it.
aliasAddress is a deterministic alias — both receive mail to the same inbox.
2. Check your profile
GET /v1/agents/me
Authorization: Bearer <apiKey>
3. Read your inbox
GET /v1/mail
Authorization: Bearer <apiKey>
Optional query params:
mailboxId— restrict to one folderlimit— max results (default 20, max 100)position— pagination offset (default 0)sort—ascordesc(defaultdesc)
There is no search. No full-text, subject, sender or date filtering exists — any other query param is ignored, not rejected. To find a message, page through the list and match it yourself.
Response: { messages: [...], total: N, position: N }, plus held when mail is
waiting (below).
Each message has: id, subject, from, to, receivedAt, size, preview,
seen, mailboxIds.
from and to are arrays of objects, not strings. Each entry is
{ "name": "...", "email": "..." } — name is often empty. Read the address as
msg.from[0].email. Treating from as a string is the most common mistake
against this API.
You can poll, or you can register a webhook. Polling is the simplest thing
and is fine for most work: call GET /v1/mail again, every few seconds when
waiting for something specific (a verification code), every minute or two for a
background inbox. If you would rather be told, see section 7 — but there is
still no WebSocket and no long-poll.
Held mail: free mail arrives in 15 minutes
On a @mailgi.xyz address, mail from outside your wallet reaches you
15 minutes after it arrived, unless this mailbox has a MailPass. Until
then it is not in the list, not counted in total, and GET /v1/mail/<id>
answers 404 MESSAGE_HELD. Never held:
- mail you sent, including to yourself, wherever you file it;
- mail from a mailbox on the same wallet;
- any mailbox on your own organisation's domain;
- any mailbox with a MailPass.
When something is waiting, the list says so:
{
"messages": [],
"total": 0,
"position": 0,
"held": {
"status": "held",
"message": "New mail is on hold for 15 minutes. Fund a wallet with payLink for instant mail on this and other mailboxes.",
"count": 1,
"nextReleaseAt": "2026-11-26T16:30:00Z",
"holdMinutes": 15,
"mailPassUsd": 0.2,
"payLink": "https://app.mailgi.xyz/topup?address=buzzing-falcon%40mailgi.xyz",
"linkEndpoint": "POST /v1/billing/link",
"docUrl": "https://www.mailgi.xyz/SKILL.md#mailpass"
}
}
Waiting for a verification code? Most codes expire before 15 minutes are
up. If you see held while waiting for one, give payLink to whoever you work
for: paying it funds a wallet and starts this mailbox's MailPass, and held mail
appears at once. One wallet can pay for many mailboxes: if whoever you work for
already has one, ask its first mailbox for a link code and redeem it at
linkEndpoint. Otherwise keep polling; mail appears at nextReleaseAt.
GET /v1/mail/<id> on a held message answers 404 MESSAGE_HELD with the same
fields under error.details, plus releaseAt. See §4, "MailPass".
Get full body of a message:
GET /v1/mail/<id>
Authorization: Bearer <apiKey>
Response includes htmlBody and/or textBody. If body is a string, use it directly.
If it is an array of JMAP parts, look up bodyValues[part.partId].value for the text.
4. Send email
POST /v1/mail/send
Authorization: Bearer <apiKey>
Content-Type: application/json
{
"to": ["[email protected]"],
"subject": "Hello from my agent",
"textBody": "Hi there."
}
Required: to and subject. Optional: cc, bcc, htmlBody, replyTo.
to,
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Mailgi — Free Email for Agents?
Give an AI agent a real, deliverable email address. Register in one POST with no OAuth and no signup form, then send, receive, read and organise mail over a plain REST API — polling or webhooks — on a shared handle or your own verified domain. Also available as a hosted MCP server. Receiving and mail between agents are free; on @mailgi.xyz, mail from outside your wallet arrives 15 minutes late unless the mailbox has a MailPass. Until the first top-up, mail to up to 50 new outside addresses a day is free too, with Mailgi branding; after it, outside mail is prepaid, pay as you go.
Как установить скилл Mailgi — Free Email for Agents?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Mailgi — Free Email for Agents запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…