API Documentation

Integrate disposable email into your tests and applications.

Authentication

Include the x-api-key header in all requests.

x-api-key: mailcroc-dev-key

Endpoints

POST
/generateGenerate random email addresses
GET
/inbox/:addressGet all emails for a specific address
GET
/emails/:idGet a specific email by ID
DELETE
/inbox/:addressDelete all emails for a specific address

Code Examples


# Generate 5 emails
curl -X POST https://mailcroc.qzz.io/api/v1/generate \
  -H "x-api-key: mailcroc-dev-key" \
  -d '{"count": 5}'

# Get Inbox
curl https://mailcroc.qzz.io/api/v1/inbox/test@mailcroc.qzz.io \
  -H "x-api-key: mailcroc-dev-key"