Временная почта
Одноразовые ящики для регистрации или теста.
Инструменты временной почты
| Инструмент | Что делает |
|---|---|
| listTempMailDomains | Домены, на которых можно создать временный ящик. |
| createTempInbox | Новый одноразовый адрес и токен ящика, которым этот адрес открывается. Сохраните токен: он нужен всем остальным инструментам временной почты. |
| getTempInbox | Адрес ящика, когда истекает его срок, сколько осталось продлений и сколько в нём писем. |
| listTempMessages | Письма, которые получил ящик, новые сверху, с отправителем, темой, временем получения и фрагментом текста. |
| readTempMessage | Одно письмо с текстом, а также его код входа, если это письмо с подтверждением и OpenEmail уверен в коде. |
| extendTempInbox | Оставить ящик открытым дольше. Возвращает новый токен, которым дальше и нужно пользоваться. |
| deleteTempMessage | Удалить одно письмо из ящика навсегда. |
| deleteTempInbox | Закрыть ящик сейчас же и удалить всё, что он получил. |
Это бесплатные одноразовые ящики с сайта OpenEmail. Ящик не принадлежит ни одному рабочему пространству и открывается собственным токеном, поэтому инструментам не нужны разрешения, а токен служит единственным ключом. Любой, у кого он есть, может читать ящик.
Почта на этот адрес хранится не больше суток. Выбранное имя можно угадать, и после истечения срока ящика его займёт кто-то другой, поэтому не указывайте localPart, чтобы получить случайное имя.
Справочник
listTempMailDomains
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.
Входные данные
Не принимает входных данных.
Также доступно в
createTempInbox
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.
Входные данные
domainstringOne of the domains listTempMailDomains names. Defaults to the first.
До 253 символовlocalPartstringThe 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 символовttlMinutesintegerHow 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
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
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 символовlimitintegerHow many messages to return.
Не меньше 1Не больше 50cursorstringThe 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
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 символов
Также доступно в
extendTempInbox
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
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 символов
Также доступно в
deleteTempInbox
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