temp mail API Documentation
Developers: get your free API key
The REST API v1 and the MCP server for AI agents share one free key — 100 emails/day. Sign in with Google, no card, no forms.
Sign up with Google — get my key MCP documentationIntegrate our temporary email generator directly into your applications. The generator draws on two public, receive-only providers: Temp Mail (the endpoints below) and Edu Mail (documented at the end of this page). All domains returned by both providers appear in the generator's domain selector.
Base URL: https://api.temp-mail.agency/api
Initialize a client session. You must call this endpoint first to obtain a unique UUID to use in all subsequent requests.
Parameters (x-www-form-urlencoded):
app_uuid(string) - Set to"a5x-cj6a-ka1q".
Response Example:
Retrieve a list of all currently active premium domains that can be used to generate custom emails.
Parameters (x-www-form-urlencoded):
uuid(string) - The UUID obtained from /client/create.
Response Example:
Generate a new temporary email address with a custom username on a specific domain.
Parameters (x-www-form-urlencoded):
uuid(string) - The UUID obtained from /client/create.alias(string) - The requested username prefix.domain_id(integer) - The ID of the domain fetched from /domains.
Response Example:
Fetch the inbox contents for a specific email address.
Parameters (x-www-form-urlencoded):
uuid(string) - The UUID obtained from /client/create.selected_email_id(integer) - The email ID returned from /email/custom or /client/create.
Response Example:
Edu Mail API
Edu Mail inboxes are provided by EduMails. The API is public and keyless, returns JSON, and is receive-only. The temp-mail.agency generator requests the .edu.pl domain category and merges those addresses with the Temp Mail domains above.
Base URL: https://api.edu-mails.com/api
List Edu Mail domains. The optional tld filter defaults to .edu.pl. Each entry includes an id, name and tld.
Response Example:
Generate an Edu Mail address. Send a JSON body with action set to "custom" (with alias and domain_id) or "random". The response returns the inbox UUID and address; keep the UUID to read the inbox.
Request Example:
Response Example:
Read the inbox for a UUID returned by /emails/generate. Messages are newest first and include from, subject, body and created_at. Password-protected inboxes require the X-Inbox-Password header.
The temp-mail.agency inbox polls this endpoint every five seconds while an Edu Mail address is open. There is no public endpoint for sending, deleting an inbox or deleting a message.