Your team needs hundreds of Gmail-style addresses you can spin up fast for sign-up flows, onboarding tests, or one-time verifications—and you need them today. By the end of this guide, you will generate a single temporary Gmail address, bulk-generate up to 500 unique addresses with dot/plus variants, and query recent inbox activity for a given address using the Temporary GMail API on Zyla API Hub.
What this API does and when to use it
The Temporary GMail API generates temporary Gmail-style addresses and provides basic inbox activity data for verification workflows. You can:
- Generate a single temporary Gmail address.
- Bulk-generate up to 500 unique addresses with optional dot and plus variants.
- Check recent activity for a specific address, including when it was queried, response time, number of results, and a messages array when available.
This is useful for seeding test accounts, validating email flows, and simulating user registrations without managing your own mailbox infrastructure.
Getting started on Zyla API Hub
Open the API page, click Subscribe or Start Free Trial when available, and get your API key. The first API you subscribe to on Zyla typically includes a 7-day trial or 50 requests; access options can vary, so confirm on the listing. Authentication is via HTTP header:
- Authorization: Bearer YOUR_API_KEY
Zyla API Hub centralizes billing with a subscription-and-quota model—not pay-per-call—and one API key works across many APIs. Explore more than 10,000 public APIs on Zyla API Hub, create your account, and pull the key you’ll use in the curl and Python calls below.
Endpoints you can ship with today
Below are the available endpoints, their HTTP methods, exact request URLs, and required parameters. Copy the examples as-is, replacing YOUR_API_KEY with your key.
1) Generate a single temporary address
Method: GET
URL: https://zylalabs.com/api/8382/temporary-gmail-api/14645/generate-gmail
Description: Generates a single temporary Gmail address.
Required params: domain=random
curl -s -X GET "https://zylalabs.com/api/8382/temporary-gmail-api/14645/generate-gmail?domain=random" \
-H "Authorization: Bearer YOUR_API_KEY"
Example response:
{
"email": "[email protected]"
}
Fields you’ll actually use:
- email: The generated Gmail-style address you can feed into your test or signup flow.
2) Bulk-generate up to 500 addresses
Method: GET
URL: https://zylalabs.com/api/8382/temporary-gmail-api/14647/bulk-gmail
Description: Generates up to 500 unique temporary emails with optional dot/plus/domain filters.
Params: dot=true (optional), plus=false (required)
Example response:
Fields you’ll actually use:
- count: How many addresses were produced.
- emails: Array of unique Gmail-style addresses (examples include gmail.com and googlemail.com domains).
3) Retrieve recent inbox activity for an address
Method: GET
URL: https://zylalabs.com/api/8382/temporary-gmail-api/14648/inbox
Description: Retrieve recent activity associated with a specified address, including query timestamps, response times, result counts, and available messages for verification.
Required params: [email protected]
Example response:
Fields you’ll actually use:
- email: The address you queried.
- queried_at: A timestamp string (server time) for the last query.
- response_time: How long the query took, as a string.
- count: Number of results found.
- messages: Array holding available messages for verification when present.
End-to-end example in Python
The snippet below bulk-generates addresses with dot variants enabled and plus variants disabled, then prints the count and the first few addresses. It also demonstrates querying recent inbox activity for a specific address using the Inbox endpoint. Replace YOUR_API_KEY with your key.
import requests
API_KEY = "YOUR_API_KEY"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
# 1) Bulk-generate emails (dot=true, plus=false)
bulk_url = "https://zylalabs.com/api/8382/temporary-gmail-api/14647/bulk-gmail"
bulk_params = {
"dot": "true",
"plus": "false"
}
bulk_resp = requests.get(bulk_url, headers=HEADERS, params=bulk_params, timeout=30)
bulk_resp.raise_for_status()
bulk_data = bulk_resp.json()
print("Generated count:", bulk_data.get("count"))
emails = bulk_data.get("emails", [])
print("First 5 emails:")
for e in emails[:5]:
print(" -", e)
# 2) Inbox activity for a specific address (use the official example address)
inbox_url = "https://zylalabs.com/api/8382/temporary-gmail-api/14648/inbox"
inbox_params = {
"email": "[email protected]"
}
inbox_resp = requests.get(inbox_url, headers=HEADERS, params=inbox_params, timeout=30)
inbox_resp.raise_for_status()
inbox_data = inbox_resp.json()
print("Inbox for:", inbox_data.get("email"))
print("Queried at:", inbox_data.get("queried_at"))
print("Response time:", inbox_data.get("response_time"))
print("Message count:", inbox_data.get("count"))
print("Messages:", inbox_data.get("messages"))
Practical implementation notes
- HTTP auth: Always send Authorization: Bearer YOUR_API_KEY.
- URL encoding: When calling the Inbox endpoint with plus signs in the email, URL-encode the value (as shown in the curl example).
- Batch size: The Bulk GMail endpoint can generate up to 500 unique addresses.
- Timestamps: The Inbox endpoint returns a queried_at string; treat it as server time. If you need strict time zone handling, store and convert as needed in your app.
- Caching and pagination: The provided endpoints return a single payload without pagination parameters. Use the count field and messages array as-is.
Real-world use cases you can implement now
- Sign-up flow testing: Generate dozens or hundreds of unique addresses to validate user registration, welcome series, and verification emails without manual inbox management.
- QA automation: Seed realistic Gmail-style addresses in CI to exercise email-dependent features and check for regressions.
- Inbox checks for verification: Poll the Inbox endpoint for a target address and assert that a message is available before advancing a test step.
- Load and resilience exercises: Stress email-triggering code paths with a large, unique set of addresses generated in bulk.
Call the API from AI agents via MCP
You can invoke the same endpoints from MCP-compatible clients (e.g., Claude Code, Cursor, Windsurf) using the MCP endpoint. Point your agent to the MCP host and include your Zyla API key as required by your MCP client. For reference, see MCP. The marketplace-hosted endpoints you’ll call from an agent are the same ones shown above on Zyla. This lets you script bulk address generation or inbox checks directly inside your agent workflows.
Operational guidance
- Access and pricing: Zyla uses subscription + quota (not pay-per-call). The first API typically includes a 7-day trial or 50 requests. Check the API page for current access options and pricing.
- Key management: Keep your Zyla key in your environment (e.g., environment variables or your secrets store). Rotate keys per your security policy.
- Error handling: Handle standard HTTP errors (401 for missing/invalid key, 4xx for bad parameters). The examples above use raise_for_status() to surface issues early.
- Consistency: If your tests depend on consistent address formats, pin your dot/plus options in Bulk GMail calls so your data set is stable run-to-run.
End-to-end copy-paste quickstart
1) Generate one address:
2) Generate a bulk set with dot variants and no plus aliases:
3) Check inbox activity for an email (note URL encoding of + and @):
Where to subscribe and ship
Subscribe and pull your API key directly from the marketplace listing: Start 7-day trial on Temporary GMail API. If you’re building beyond email utilities, browse more than 10,000 public APIs on Zyla API Hub and keep one key across your stack.
FAQ
How many emails can I generate in a single bulk call?
Up to 500 unique addresses, per the Bulk GMail endpoint description.
How do I enable or disable dot/plus behavior?
Use the Bulk GMail endpoint with dot and plus parameters. For example: dot=true&plus=false.
How do I authenticate my requests?
Send your key in the header: Authorization: Bearer YOUR_API_KEY.
Is there a free plan?
No Free Plan. The first API typically includes a 7-day trial or 50 requests. Check the API page for current access options and pricing.
How do I handle + signs in the inbox email parameter?
URL-encode the email value, including the + and @ characters. The official curl example demonstrates the correct encoding.
Ready to generate bulk Gmail-style addresses and ship your integration? Get your key and start the 7-day trial on the marketplace listing: Temporary GMail API on Zyla.