{"components":{"headers":{"RateLimitLimit":{"description":"Monthly call allowance for the key owner's plan.","schema":{"type":"integer"}},"RateLimitRemaining":{"description":"Calls left in the monthly allowance (never below 0).","schema":{"type":"integer"}},"RateLimitReset":{"description":"ISO timestamp of the next allowance reset (1st of next month, UTC).","schema":{"format":"date-time","type":"string"}}},"schemas":{"Error":{"properties":{"code":{"description":"Machine-readable code, present on some errors (for example domain_not_verified).","type":"string"},"error":{"type":"string"}},"required":["error"],"type":"object"},"Message":{"properties":{"body_html":{"type":["string","null"]},"body_text":{"type":["string","null"]},"id":{"type":"integer"},"is_read":{"type":"boolean"},"received_at":{"format":"date-time","type":"string"},"sender":{"type":"string"},"subject":{"type":"string"}},"type":"object"},"RiskVerdict":{"properties":{"credits":{"properties":{"freeAllowance":{"example":1000,"type":"integer"},"freeUsed":{"type":"integer"},"paidBalance":{"type":"integer"},"source":{"enum":["free","paid"],"type":"string"}},"type":"object"},"disposable":{"type":"boolean"},"domain":{"type":"string"},"email":{"type":"string"},"has_mx":{"type":"boolean"},"level":{"enum":["low","medium","high"],"type":"string"},"reasons":{"items":{"type":"string"},"type":"array"},"score":{"maximum":100,"minimum":0,"type":"integer"}},"type":"object"}},"securitySchemes":{"ApiKeyAuth":{"description":"API key created in the Tempify dashboard (API Keys section). The key's owner must be on Premium, Developer, or Business; Free-plan keys return 402 on every call.","in":"header","name":"x-api-key","type":"apiKey"}}},"info":{"contact":{"name":"Tempify Support","url":"https://tempify.org/contact"},"description":"Create temporary inboxes, list messages, extract verification codes, and long-poll for new mail. Every call is authenticated with an x-api-key header and metered against the key owner's monthly plan allowance. The Free plan does not include API access: calls on a Free plan return 402. API access starts on Premium ($4.99/month, 1,000 calls/month) and Business ($49/month, 50,000 calls/month). The Developer plan ($19/month, 10,000 calls/month) is coming soon. Calls beyond the monthly allowance are metered at $5 per additional 1,000 calls, up to 5x the plan allowance; automated overage charging is not wired up yet. Inboxes created through this API are QA inboxes: they appear in the dashboard QA section. Base URL: https://tempify.org/api/v1. Full human-readable reference: https://tempify.org/developers/temporary-email-api","license":{"name":"All rights reserved","url":"https://tempify.org/terms"},"title":"Tempify Temporary Email API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/inbox":{"post":{"description":"Creates a QA inbox owned by the API key's user. The address is random unless `address` requests a local part. Pass `domain` with a verified custom domain to create the inbox on that domain instead of tempify.org. Retention follows the caller's plan: Premium 7 days, Developer 14 days, Business 30 days. The Free plan returns 402.","operationId":"createInbox","requestBody":{"content":{"application/json":{"schema":{"properties":{"address":{"description":"Optional requested address or local part (3-40 characters, lowercase letters, digits, dot, underscore, hyphen). Omit for a random address.","example":"qa-signup-4821@tempify.org","type":"string"},"domain":{"description":"Optional verified custom domain owned by the caller's account. Must already be added in the dashboard and TXT-verified.","example":"qa.example.com","type":"string"}},"type":"object"}}},"required":false},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"inbox":{"properties":{"address":{"example":"qa-signup-4821@tempify.org","type":"string"},"created_at":{"format":"date-time","type":"string"},"expires_at":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"}},"type":"object"}},"type":"object"}}},"description":"Inbox created."},"400":{"content":{"application/json":{"example":{"error":"Invalid address"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid address or invalid domain."},"401":{"content":{"application/json":{"example":{"error":"Missing x-api-key header"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing, invalid, or deactivated API key."},"402":{"content":{"application/json":{"example":{"error":"The Free plan does not include API access. Upgrade to Premium, Developer, or Business to use the API."},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The Free plan does not include API access."},"403":{"content":{"application/json":{"example":{"code":"domain_not_verified","error":"That domain is not a verified custom domain on this account. Add it in the dashboard under Custom domains and complete TXT verification first."},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The requested domain is not a verified custom domain on this account."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Monthly allowance exhausted, including the metered overage allowance (up to 5x the plan allowance). Resets on the 1st of the next month (UTC)."},"500":{"content":{"application/json":{"example":{"error":"Could not create inbox"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Could not create inbox."}},"summary":"Create a temporary inbox","tags":["Inbox"]}},"/inbox/{address}":{"get":{"description":"Returns the inbox and its messages, newest first, up to 100. Only inboxes owned by the API key's user are visible; other addresses return 404.","operationId":"listInboxMessages","parameters":[{"example":"qa-signup-4821@tempify.org","in":"path","name":"address","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"inbox":{"properties":{"address":{"type":"string"},"expires_at":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"}},"type":"object"},"messages":{"items":{"$ref":"#/components/schemas/Message"},"type":"array"}},"type":"object"}}},"description":"Inbox and messages."},"400":{"content":{"application/json":{"example":{"error":"Invalid address"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid address."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing, invalid, or deactivated API key."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The Free plan does not include API access."},"404":{"content":{"application/json":{"example":{"error":"Inbox not found"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Inbox not found (or not owned by this key)."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Monthly allowance exhausted, including overage."},"500":{"content":{"application/json":{"example":{"error":"Could not load inbox"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Could not load inbox."}},"summary":"List messages in an inbox","tags":["Inbox"]}},"/inbox/{address}/otp":{"get":{"description":"Reads the latest message in the inbox and extracts verification codes and links server-side. When the inbox has no messages yet it still returns 200 with message null and empty code and link lists, so a test can tell 'no mail yet' apart from 'inbox not found' (404).","operationId":"getInboxOtp","parameters":[{"example":"qa-signup-4821@tempify.org","in":"path","name":"address","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"codes":{"example":["482913"],"items":{"type":"string"},"type":"array"},"inbox":{"properties":{"address":{"type":"string"},"expires_at":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"}},"type":"object"},"links":{"items":{"format":"uri","type":"string"},"type":"array"},"message":{"properties":{"id":{"type":"integer"},"received_at":{"format":"date-time","type":"string"},"sender":{"type":"string"},"subject":{"type":"string"}},"type":["object","null"]},"otp":{"description":"The most likely one-time code, or null when none was found.","example":"482913","type":["string","null"]},"verification_links":{"description":"Links that look like verification, confirmation, or reset links.","items":{"format":"uri","type":"string"},"type":"array"}},"type":"object"}}},"description":"Latest message with extracted codes, or an empty result when no mail has arrived yet."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing, invalid, or deactivated API key."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The Free plan does not include API access."},"404":{"content":{"application/json":{"example":{"error":"Inbox not found"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Inbox not found (or not owned by this key)."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Monthly allowance exhausted, including overage."},"500":{"content":{"application/json":{"example":{"error":"Could not extract codes"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Could not extract codes."}},"summary":"Extract OTP codes and links from the latest message","tags":["Inbox"]}},"/inbox/{address}/wait":{"get":{"description":"Holds the request until a new message arrives or the timeout elapses, so tests do not have to poll on a timer. One wait counts as one API call however long it holds. There is no WebSocket yet; long-poll is the shipped primitive.","operationId":"waitForMail","parameters":[{"example":"qa-signup-4821@tempify.org","in":"path","name":"address","required":true,"schema":{"type":"string"}},{"description":"Seconds to hold the request. Default 30, maximum 55.","in":"query","name":"timeout","required":false,"schema":{"default":30,"maximum":55,"minimum":1,"type":"integer"}},{"description":"ISO timestamp. Only messages received after it are returned. Without it, only messages arriving after the call starts count.","in":"query","name":"since","required":false,"schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"inbox":{"properties":{"address":{"type":"string"},"expires_at":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"}},"type":"object"},"messages":{"items":{"$ref":"#/components/schemas/Message"},"type":"array"},"timed_out":{"type":"boolean"},"waited_ms":{"type":"integer"}},"type":"object"}}},"description":"New messages, or an empty list with timed_out true when the timeout elapsed."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing, invalid, or deactivated API key."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The Free plan does not include API access."},"404":{"content":{"application/json":{"example":{"error":"Inbox not found"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Inbox not found (or not owned by this key)."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Monthly allowance exhausted, including overage."},"500":{"content":{"application/json":{"example":{"error":"Could not wait for mail"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Could not wait for mail."}},"summary":"Long-poll for new mail","tags":["Inbox"]}},"/risk":{"get":{"description":"Returns a risk verdict for one email address: a score from 0 to 100, a level (low, medium, or high), and reason codes. The response never contains the underlying disposable-domain blocklist and never states whether a specific person owns an address. Metering: 1,000 free checks per calendar month per authenticated API key, then 1 PAYG credit per check. Paid credit purchase is not wired up yet. The email is validated before auth, so a malformed address always returns 400, with or without a key.","operationId":"checkRiskGet","parameters":[{"example":"user@example.com","in":"query","name":"email","required":true,"schema":{"format":"email","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskVerdict"}}},"description":"Risk verdict."},"400":{"content":{"application/json":{"example":{"error":"Invalid email address. Send a valid email such as user@example.com."},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid email address."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing, invalid, or deactivated API key."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Free risk checks exhausted and no paid credits available."},"500":{"content":{"application/json":{"example":{"error":"Could not check this address"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Could not check this address."}},"summary":"Check the disposable-email risk of one address (GET)","tags":["Risk"]},"post":{"description":"Same verdict as GET /risk, with the address in the JSON body instead of the query string.","operationId":"checkRiskPost","requestBody":{"content":{"application/json":{"schema":{"properties":{"email":{"example":"user@example.com","format":"email","type":"string"}},"required":["email"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskVerdict"}}},"description":"Risk verdict."},"400":{"content":{"application/json":{"example":{"error":"Invalid email address. Send a valid email such as user@example.com."},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid email address."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing, invalid, or deactivated API key."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Free risk checks exhausted and no paid credits available."},"500":{"content":{"application/json":{"example":{"error":"Could not check this address"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Could not check this address."}},"summary":"Check the disposable-email risk of one address (POST)","tags":["Risk"]}}},"security":[{"ApiKeyAuth":[]}],"servers":[{"description":"Production","url":"https://tempify.org/api/v1"}],"tags":[{"description":"Create inboxes, list messages, extract codes, wait for mail.","name":"Inbox"},{"description":"Disposable-email risk verdicts for one address.","name":"Risk"}]}