Command Palette

Search for a command to run...

Назад к скиллам
скилл № 98485

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…

БесплатноБез исполняемых скриптов
oyagevот 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 in did: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 folder
  • limit — max results (default 20, max 100)
  • position — pagination offset (default 0)
  • sort — asc or desc (default desc)

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,

Полный SKILL.md на ClawHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

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), без исполняемых скриптов.

Похожие скиллы

Сравнить Mailgi — Free Email for Agents с