Перейти к документации
MCP-сервер

Временная почта

Одноразовые ящики для регистрации или теста.

Инструменты временной почты

ИнструментЧто делает
listTempMailDomainsДомены, на которых можно создать временный ящик.
createTempInboxНовый одноразовый адрес и токен ящика, которым этот адрес открывается. Сохраните токен: он нужен всем остальным инструментам временной почты.
getTempInboxАдрес ящика, когда истекает его срок, сколько осталось продлений и сколько в нём писем.
listTempMessagesПисьма, которые получил ящик, новые сверху, с отправителем, темой, временем получения и фрагментом текста.
readTempMessageОдно письмо с текстом, а также его код входа, если это письмо с подтверждением и OpenEmail уверен в коде.
extendTempInboxОставить ящик открытым дольше. Возвращает новый токен, которым дальше и нужно пользоваться.
deleteTempMessageУдалить одно письмо из ящика навсегда.
deleteTempInboxЗакрыть ящик сейчас же и удалить всё, что он получил.

Это бесплатные одноразовые ящики с сайта OpenEmail. Ящик не принадлежит ни одному рабочему пространству и открывается собственным токеном, поэтому инструментам не нужны разрешения, а токен служит единственным ключом. Любой, у кого он есть, может читать ящик.

Почта на этот адрес хранится не больше суток. Выбранное имя можно угадать, и после истечения срока ящика его займёт кто-то другой, поэтому не указывайте localPart, чтобы получить случайное имя.

Справочник

listTempMailDomains

Без области доступаАссистент в приложении выполняет его без вопросовНабор инструментовworkspace

List the domains a temporary inbox can be made on, the free disposable addresses of the OpenEmail website. A temporary inbox belongs to no workspace and opens with its own token.

Входные данные

Не принимает входных данных.

Также доступно в

API
GET /temp-mail/domains
TypeScript
tempMail.listDomains()
Python
temp_mail.list_domains()
Ruby
temp_mail.list_domains
PHP
tempMail->listDomains

createTempInbox

Без области доступаАссистент в приложении выполняет его без вопросовНабор инструментовworkspace

Make a temporary inbox: a disposable address that receives mail for a while, for a sign-up or a test, without touching the workspace. Returns the address and an inbox token that every other temporary mail tool needs, so keep it. Read what arrives with listTempMessages and readTempMessage, which also gives the sign-in code of a verification email. The inbox lasts an hour by default and at most 1440 minutes in all.

Входные данные

domainstring

One of the domains listTempMailDomains names. Defaults to the first.

До 253 символов
localPartstring

The part before the @. Leave it out for a random one: a chosen name can be guessed and is taken by somebody else once the inbox expires.

До 64 символов
ttlMinutesinteger

How long the inbox lasts, in minutes.

Не меньше 1Не больше 1440

Также доступно в

API
POST /temp-mail/inboxes
TypeScript
tempMail.create()
Python
temp_mail.create()
Ruby
temp_mail.create
PHP
tempMail->create

getTempInbox

Без области доступаАссистент в приложении выполняет его без вопросовНабор инструментовworkspace

Read a temporary inbox: its address, when it expires, how many extensions are left and how many messages it holds.

Входные данные

tokenstringОбязательно

The inbox token createTempInbox returned, starting with oe_inbox_. It is the only key to the inbox.

От 1 до 4096 символов

Также доступно в

API
GET /temp-mail/inboxes/{id}GET /temp-mail/inboxes/{id}/messages
TypeScript
tempMail.get()tempMail.listMessages()tempMail.listAllMessages()tempMail.iterateMessages()
Python
temp_mail.get()temp_mail.list_messages()temp_mail.list_all_messages()temp_mail.iterate_messages()
Ruby
temp_mail.gettemp_mail.list_messagestemp_mail.list_all_messagestemp_mail.iterate_messages
PHP
tempMail->gettempMail->listMessagestempMail->listAllMessagestempMail->iterateMessages

listTempMessages

Без области доступаАссистент в приложении выполняет его без вопросовНабор инструментовworkspace

List the messages a temporary inbox has received, newest first: id, sender, subject, when it arrived and a snippet.

Входные данные

tokenstringОбязательно

The inbox token createTempInbox returned, starting with oe_inbox_. It is the only key to the inbox.

От 1 до 4096 символов
limitinteger

How many messages to return.

Не меньше 1Не больше 50
cursorstring

The next cursor of the previous page.

От 1 до 512 символов

Также доступно в

API
GET /temp-mail/inboxes/{id}GET /temp-mail/inboxes/{id}/messages
TypeScript
tempMail.get()tempMail.listMessages()tempMail.listAllMessages()tempMail.iterateMessages()
Python
temp_mail.get()temp_mail.list_messages()temp_mail.list_all_messages()temp_mail.iterate_messages()
Ruby
temp_mail.gettemp_mail.list_messagestemp_mail.list_all_messagestemp_mail.iterate_messages
PHP
tempMail->gettempMail->listMessagestempMail->listAllMessagestempMail->iterateMessages

readTempMessage

Без области доступаАссистент в приложении выполняет его без вопросовНабор инструментовworkspace

Read one message of a temporary inbox: sender, subject, when it arrived, the sign-in code when it is a verification email and OpenEmail is sure of it, and the text.

Входные данные

tokenstringОбязательно

The inbox token createTempInbox returned, starting with oe_inbox_. It is the only key to the inbox.

От 1 до 4096 символов
messageIdstringОбязательно

The message id listTempMessages returned.

От 1 до 512 символов

Также доступно в

API
GET /temp-mail/inboxes/{id}/messages/{messageId}
TypeScript
tempMail.getMessage()
Python
temp_mail.get_message()
Ruby
temp_mail.get_message
PHP
tempMail->getMessage

extendTempInbox

Без области доступаАссистент в приложении выполняет его без вопросовНабор инструментовworkspace

Keep a temporary inbox open longer. Each extension adds time up to 1440 minutes in all, at most 23 times. It returns a new inbox token: use it from then on.

Входные данные

tokenstringОбязательно

The inbox token createTempInbox returned, starting with oe_inbox_. It is the only key to the inbox.

От 1 до 4096 символов

Также доступно в

API
POST /temp-mail/inboxes/{id}/extend
TypeScript
tempMail.extend()
Python
temp_mail.extend()
Ruby
temp_mail.extend
PHP
tempMail->extend

deleteTempMessage

Без области доступаАссистент в приложении выполняет его без вопросовНабор инструментовworkspace

Delete one message of a temporary inbox for good.

Входные данные

tokenstringОбязательно

The inbox token createTempInbox returned, starting with oe_inbox_. It is the only key to the inbox.

От 1 до 4096 символов
messageIdstringОбязательно

The message id listTempMessages returned.

От 1 до 512 символов

Также доступно в

API
DELETE /temp-mail/inboxes/{id}/messages/{messageId}
TypeScript
tempMail.deleteMessage()
Python
temp_mail.delete_message()
Ruby
temp_mail.delete_message
PHP
tempMail->deleteMessage

deleteTempInbox

Без области доступаАссистент в приложении выполняет его без вопросовНабор инструментовworkspace

Close a temporary inbox now and delete everything it received. Its token stops working.

Входные данные

tokenstringОбязательно

The inbox token createTempInbox returned, starting with oe_inbox_. It is the only key to the inbox.

От 1 до 4096 символов

Также доступно в

API
DELETE /temp-mail/inboxes/{id}
TypeScript
tempMail.delete()
Python
temp_mail.delete()
Ruby
temp_mail.delete
PHP
tempMail->delete