{"openapi":"3.1.0","info":{"title":"DummyInbox API","version":"1.0.0","description":"Free JSON API for DummyInbox temporary inboxes: create an address, wait for mail, and read it.\n\nNo key or account. Limits: 60 requests a minute per IP, waits of up to 30 seconds, and 10 open waits per IP. Messages are deleted 48 hours after they arrive.\n\nInboxes are public: anyone who knows an address can read it. CORS is open to every origin, so web pages can call the API as well as servers, scripts and tests. No cookies or credentials are used.","contact":{"email":"support@dummyinbox.com","url":"https://dummyinbox.com/contact"}},"externalDocs":{"description":"Guide and examples","url":"https://dummyinbox.com/api"},"servers":[{"url":"https://dummyinbox.com/api/v1"}],"paths":{"/domains":{"get":{"operationId":"listDomains","summary":"List domains","description":"Domains you can use in an address. They all behave the same way.","responses":{"200":{"description":"The domains.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainList"},"example":{"domains":["dummyinbox.com"]}}}},"429":{"$ref":"#/components/responses/Error429"}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl https://dummyinbox.com/api/v1/domains"}]}},"/inboxes":{"post":{"operationId":"createInbox","summary":"Create a random address","description":"Returns a new address that is hard to guess. Nothing is stored: every valid address already works, so this only saves you picking a name. Use one per test run.","requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInbox"},"example":{"domain":"dummyinbox.com"}}}},"responses":{"201":{"description":"A new address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Inbox"},"example":{"address":"k7m2q9xw4c8rbd3t@dummyinbox.com","domain":"dummyinbox.com","webUrl":"https://dummyinbox.com/email/k7m2q9xw4c8rbd3t@dummyinbox.com"}}}},"400":{"$ref":"#/components/responses/Error400"},"429":{"$ref":"#/components/responses/Error429"}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://dummyinbox.com/api/v1/inboxes"}]}},"/inboxes/{address}/messages":{"get":{"operationId":"listMessages","summary":"List messages","description":"Newest first, without bodies. With wait, the request stays open until a message arrives when none match yet.","parameters":[{"name":"address","in":"path","required":true,"description":"A full address at one of the domains from /domains. Any name works except reserved ones such as admin.","schema":{"type":"string"},"example":"k7m2q9xw4c8rbd3t@dummyinbox.com"},{"name":"limit","in":"query","description":"Messages per page.","schema":{"type":"integer","minimum":1,"maximum":50,"default":10}},{"name":"skip","in":"query","description":"Messages to skip, for paging.","schema":{"type":"integer","minimum":0,"maximum":10000,"default":0}},{"name":"since","in":"query","description":"Only messages received after this time. Pass the receivedAt of the newest message you have seen. Needs a timezone; URL-encode a + offset as %2B.","schema":{"type":"string","format":"date-time"}},{"name":"wait","in":"query","description":"Seconds to wait for a message when none match yet, up to 30. Returns as soon as one arrives.","schema":{"type":"integer","minimum":0,"maximum":30,"default":0}}],"responses":{"200":{"description":"Matching messages, newest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageList"},"example":{"messages":[{"id":"6716c0e2a4b9f3d1c8e5a702","from":"hello@example.com","fromName":"Example App","to":["k7m2q9xw4c8rbd3t@dummyinbox.com"],"cc":[],"subject":"Your Example App code","snippet":"Your verification code is 482913. It expires in 10 minutes.","receivedAt":"2026-10-21T09:41:07.000Z","attachmentCount":1}],"total":1}}}},"400":{"$ref":"#/components/responses/Error400"},"429":{"$ref":"#/components/responses/Error429"}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl \"https://dummyinbox.com/api/v1/inboxes/k7m2q9xw4c8rbd3t@dummyinbox.com/messages?wait=30\""}]}},"/inboxes/{address}/messages/{id}":{"get":{"operationId":"getMessage","summary":"Get a message","description":"The whole message: text and HTML bodies, attachments and the raw source. The id only works with the address the message was delivered to.","parameters":[{"name":"address","in":"path","required":true,"description":"A full address at one of the domains from /domains. Any name works except reserved ones such as admin.","schema":{"type":"string"},"example":"k7m2q9xw4c8rbd3t@dummyinbox.com"},{"name":"id","in":"path","required":true,"description":"The id from the message list.","schema":{"type":"string"},"example":"6716c0e2a4b9f3d1c8e5a702"}],"responses":{"200":{"description":"The message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"},"example":{"message":{"id":"6716c0e2a4b9f3d1c8e5a702","from":"hello@example.com","fromName":"Example App","to":["k7m2q9xw4c8rbd3t@dummyinbox.com"],"cc":[],"subject":"Your Example App code","snippet":"Your verification code is 482913. It expires in 10 minutes.","receivedAt":"2026-10-21T09:41:07.000Z","attachmentCount":1,"text":"Your verification code is 482913. It expires in 10 minutes.\n","html":"<p>Your verification code is <strong>482913</strong>. It expires in 10 minutes.</p>","attachments":[{"filename":"getting-started.pdf","contentType":"application/pdf","size":48213,"url":"https://static-files.dummyinbox.com/emails/attachments/3f6c2a9e-8b41-4d7e-a5c3-9e0b7d21f846/0/getting-started.pdf"}],"rawUrl":"https://static-files.dummyinbox.com/emails/raw/3f6c2a9e-8b41-4d7e-a5c3-9e0b7d21f846.eml"}}}}},"400":{"$ref":"#/components/responses/Error400"},"404":{"$ref":"#/components/responses/Error404"},"429":{"$ref":"#/components/responses/Error429"}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl https://dummyinbox.com/api/v1/inboxes/k7m2q9xw4c8rbd3t@dummyinbox.com/messages/6716c0e2a4b9f3d1c8e5a702"}]}}},"components":{"schemas":{"DomainList":{"type":"object","required":["domains"],"properties":{"domains":{"type":"array","items":{"type":"string"}}}},"CreateInbox":{"type":"object","properties":{"domain":{"type":"string","description":"One of the domains from /domains. Defaults to the first one."}}},"Inbox":{"type":"object","required":["address","domain","webUrl"],"properties":{"address":{"type":"string","description":"The new address."},"domain":{"type":"string","description":"Its domain."},"webUrl":{"type":"string","format":"uri","description":"The same inbox in the browser."}}},"MessageSummary":{"type":"object","required":["id","from","fromName","to","cc","subject","snippet","receivedAt","attachmentCount"],"properties":{"id":{"type":"string","description":"Message id. Fetch the full message with it and the same address."},"from":{"type":"string","description":"Sender address from the From header."},"fromName":{"type":["string","null"],"description":"Sender display name, if any."},"to":{"type":"array","items":{"type":"string"},"description":"Addresses in the To header. Yours is missing if you were Bcc’d."},"cc":{"type":"array","items":{"type":"string"},"description":"Addresses in the Cc header."},"subject":{"type":"string","description":"Subject line, or empty."},"snippet":{"type":"string","description":"Start of the body as plain text, up to 200 characters."},"receivedAt":{"type":"string","format":"date-time","description":"When DummyInbox received it. Messages are deleted 48 hours later."},"attachmentCount":{"type":"integer","description":"Number of attachments."}}},"Message":{"type":"object","required":["id","from","fromName","to","cc","subject","snippet","receivedAt","attachmentCount","text","html","attachments","rawUrl"],"properties":{"id":{"type":"string","description":"Message id. Fetch the full message with it and the same address."},"from":{"type":"string","description":"Sender address from the From header."},"fromName":{"type":["string","null"],"description":"Sender display name, if any."},"to":{"type":"array","items":{"type":"string"},"description":"Addresses in the To header. Yours is missing if you were Bcc’d."},"cc":{"type":"array","items":{"type":"string"},"description":"Addresses in the Cc header."},"subject":{"type":"string","description":"Subject line, or empty."},"snippet":{"type":"string","description":"Start of the body as plain text, up to 200 characters."},"receivedAt":{"type":"string","format":"date-time","description":"When DummyInbox received it. Messages are deleted 48 hours later."},"attachmentCount":{"type":"integer","description":"Number of attachments."},"text":{"type":["string","null"],"description":"Plain-text body, or null if there is none."},"html":{"type":["string","null"],"description":"HTML body, or null if there is none. It is untrusted: sandbox it before rendering."},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"},"description":"Attachments, in message order."},"rawUrl":{"type":["string","null"],"format":"uri","description":"The original message as an .eml file."}}},"Attachment":{"type":"object","required":["filename","contentType","size","url"],"properties":{"filename":{"type":"string","description":"File name, with unsafe characters replaced by _."},"contentType":{"type":"string","description":"MIME type."},"size":{"type":"integer","description":"Size in bytes."},"url":{"type":["string","null"],"format":"uri","description":"Download link. Anyone with the link can open it."}}},"MessageList":{"type":"object","required":["messages","total"],"properties":{"messages":{"type":"array","items":{"$ref":"#/components/schemas/MessageSummary"}},"total":{"type":"integer","description":"Messages matching the address and since, across all pages."}}},"MessageResponse":{"type":"object","required":["message"],"properties":{"message":{"$ref":"#/components/schemas/Message"}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"What went wrong."}}}},"responses":{"Error400":{"description":"The address, a query parameter or the body is invalid. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"limit must be an integer from 1 to 50"}}}},"Error404":{"description":"No such message in this inbox (it may have expired), or no such endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"Message not found"}}}},"Error429":{"description":"More than 60 requests a minute, or more than 10 open waits, from one IP. Retry after the number of seconds in Retry-After.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit":{"description":"The current window, such as limit=60, remaining=0, reset=42.","schema":{"type":"string"}},"RateLimit-Policy":{"description":"The policy: 60;w=60 is 60 requests per 60 seconds.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"Too many requests. Retry after the Retry-After delay."}}}},"Error500":{"description":"Something failed on our side. Retry with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"Internal server error"}}}}}}}