Saltar para a documentação
Servidor MCP

Correio temporário

Caixas de entrada descartáveis para um registo ou um teste.

Ferramentas de correio temporário

FerramentaO que faz
listTempMailDomainsOs domínios em que é possível criar uma caixa temporária.
createTempInboxUm endereço descartável novo e o token da caixa que lhe dá acesso. Guarde o token: todas as outras ferramentas de correio temporário precisam dele.
getTempInboxO endereço de uma caixa, quando expira, quantas extensões restam e quantas mensagens contém.
listTempMessagesAs mensagens que uma caixa recebeu, as mais recentes primeiro, com remetente, assunto, hora de chegada e um excerto.
readTempMessageUma mensagem com o seu texto, e o seu código de acesso quando é um email de verificação e o OpenEmail tem a certeza do código.
extendTempInboxMantém uma caixa aberta durante mais tempo. Devolve um token novo, a usar a partir daí.
deleteTempMessageElimina de vez uma mensagem de uma caixa.
deleteTempInboxFecha uma caixa de imediato e elimina tudo o que recebeu.

São as caixas de entrada descartáveis gratuitas do site do OpenEmail. Uma caixa não pertence a nenhum espaço de trabalho e abre-se com o seu próprio token, por isso as ferramentas não precisam de nenhuma permissão e o token é a única chave. Quem o tiver pode ler a caixa.

O correio enviado para o endereço é guardado durante um dia, no máximo. Um nome escolhido pode ser adivinhado e outra pessoa fica com ele assim que a caixa expira, por isso deixe localPart de fora para obter um aleatório.

Referência

createTempInbox

Sem âmbitoO assistente da app executa-o sem perguntarConjunto de ferramentasworkspace

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.

Entradas

domainstring

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

Até 253 caracteres
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.

Até 64 caracteres
ttlMinutesinteger

How long the inbox lasts, in minutes.

Pelo menos 1No máximo 1440

Também disponível em

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

getTempInbox

Sem âmbitoO assistente da app executa-o sem perguntarConjunto de ferramentasworkspace

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

Entradas

tokenstringObrigatório

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

De 1 a 4096 caracteres

Também disponível em

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

Sem âmbitoO assistente da app executa-o sem perguntarConjunto de ferramentasworkspace

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

Entradas

tokenstringObrigatório

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

De 1 a 4096 caracteres
limitinteger

How many messages to return.

Pelo menos 1No máximo 50
cursorstring

The next cursor of the previous page.

De 1 a 512 caracteres

Também disponível em

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

Sem âmbitoO assistente da app executa-o sem perguntarConjunto de ferramentasworkspace

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.

Entradas

tokenstringObrigatório

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

De 1 a 4096 caracteres
messageIdstringObrigatório

The message id listTempMessages returned.

De 1 a 512 caracteres

Também disponível em

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

Sem âmbitoO assistente da app executa-o sem perguntarConjunto de ferramentasworkspace

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.

Entradas

tokenstringObrigatório

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

De 1 a 4096 caracteres

Também disponível em

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

deleteTempMessage

Sem âmbitoO assistente da app executa-o sem perguntarConjunto de ferramentasworkspace

Delete one message of a temporary inbox for good.

Entradas

tokenstringObrigatório

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

De 1 a 4096 caracteres
messageIdstringObrigatório

The message id listTempMessages returned.

De 1 a 512 caracteres

Também disponível em

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

Sem âmbitoO assistente da app executa-o sem perguntarConjunto de ferramentasworkspace

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

Entradas

tokenstringObrigatório

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

De 1 a 4096 caracteres

Também disponível em

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