{"openapi":"3.1.0","info":{"version":"1.0.0","title":"Email-Check.app API","description":"Call the Email-Check.app API from your own code; every charged call uses your workspace's Email-Check.app credits.\n\n**Authentication.** Create an API key in your workspace (Settings → API keys) and send it as the `x-api-key` header. A `read` key lists and reads; a `write` key also makes changes, like a workspace member; an `admin` key can do everything its owner can. Every call acts on the workspace of the key. Guide: https://api.email-check.app/developers/auth.md\n\n**Errors.** Failures answer `{ \"error\": \"UPPER_SNAKE_CODE\", \"message\": \"...\" }` with the HTTP status; validation errors add `issues`. `402 INSUFFICIENT_CREDITS` means the credits are used up; `429` means slow down (see the `ratelimit-*` headers).\n\n**Ids** are UUIDv7 strings; times are ISO 8601 UTC.\n\n## AI Agents (MCP)\n\nThis API is also available as a hosted [MCP](https://modelcontextprotocol.io) server for AI agents at `https://mcp.email-check.app/mcp` — Streamable HTTP (JSON-RPC 2.0), authenticated with the same `x-api-key` header and scoped to the key's workspace. API catalog: `https://api.email-check.app/.well-known/api-catalog`."},"servers":[{"url":"https://api.email-check.app","description":"Email-Check.app"}],"components":{"schemas":{"BadRequestError":{"type":"object","properties":{"error":{"type":"string","example":"VALIDATION_ERROR","description":"Error code identifier"},"message":{"type":"string","example":"Invalid request parameters","description":"Human-readable error message"}},"required":["error","message"]},"UnauthorizedError":{"type":"object","properties":{"error":{"type":"string","example":"AUTHENTICATION_REQUIRED","description":"Error code"},"message":{"type":"string","example":"Authentication token is required","description":"Error message"}},"required":["error","message"]},"ForbiddenError":{"type":"object","properties":{"error":{"type":"string","example":"ACCESS_DENIED","description":"Error code"},"message":{"type":"string","example":"You do not have permission to perform this action","description":"Error message"}},"required":["error","message"]},"NotFoundError":{"type":"object","properties":{"error":{"type":"string","example":"NOT_FOUND","description":"Error code"},"message":{"type":"string","example":"The requested resource was not found","description":"Error message"}},"required":["error","message"]},"TooManyRequestsError":{"type":"object","properties":{"error":{"type":"string","example":"RATE_LIMIT_EXCEEDED","description":"Error code"},"message":{"type":"string","example":"Too many requests, please try again later","description":"Error message"}},"required":["error","message"]},"InternalServerError":{"type":"object","properties":{"error":{"type":"string","example":"INTERNAL_SERVER_ERROR","description":"Error code"},"message":{"type":"string","example":"An unexpected error occurred","description":"Error message"}},"required":["error","message"]},"ServiceUnavailableError":{"type":"object","properties":{"error":{"type":"string","example":"AUTHENTICATION_UNAVAILABLE","description":"Error code"},"message":{"type":"string","example":"Service temporarily unavailable","description":"Error message"}},"required":["error","message"]},"PaginationMeta":{"type":"object","properties":{"page":{"type":"integer","minimum":1},"limit":{"type":"integer","minimum":1,"maximum":200},"total":{"type":"integer","minimum":0},"totalPages":{"type":"integer","minimum":0},"hasNext":{"type":"boolean"},"hasPrev":{"type":"boolean"}},"required":["page","limit","total","totalPages","hasNext","hasPrev"]},"WalletBrandDomain":{"type":"string","enum":["any.xyz","phone-check.app","email-check.app","ip-info.app","ops.tools","currency-exchange.app"],"description":"Brand domain of the wallet (each product brand keeps its own credits, plans and Stripe customer)","example":"phone-check.app"},"CreditUsageDailyListResponse":{"type":"object","properties":{"daily":{"type":"array","items":{"$ref":"#/components/schemas/CreditUsageDailyModel"}},"pagination":{"$ref":"#/components/schemas/PaginationMeta"}},"required":["daily","pagination"]},"CreditUsageDailyModel":{"type":"object","properties":{"_id":{"type":"string","format":"uuid","example":"018f6b1c-7e2a-7000-9d3e-4a5b6c7d8e9f","description":"UUID v7 identifier (36-character string)"},"workspaceId":{"type":"string","format":"uuid","example":"018f6b1c-7e2a-7000-9d3e-4a5b6c7d8e9f","description":"UUID v7 identifier (36-character string)"},"brandDomain":{"$ref":"#/components/schemas/WalletBrandDomain"},"userId":{"type":"string","format":"uuid","example":"018f6b1c-7e2a-7000-9d3e-4a5b6c7d8e9f","description":"UUID v7 identifier (36-character string)"},"service":{"type":"string","description":"Product service that consumed credits (e.g., \"phone-details\", \"email-check-details\")","example":"phone-details"},"date":{"type":"string","description":"Date in YYYY-MM-DD format","example":"2026-01-20"},"creditsUsed":{"type":"number","description":"Total credits consumed on this date","example":150},"requestCount":{"type":"number","description":"Number of requests made on this date","example":25},"metadata":{"type":"object","additionalProperties":{}}},"required":["_id","workspaceId","brandDomain","userId","service","date","creditsUsed","requestCount"]},"CreditUsageBreakdownResponse":{"type":"object","properties":{"workspaceId":{"type":"string","format":"uuid","example":"018f6b1c-7e2a-7000-9d3e-4a5b6c7d8e9f","description":"UUID v7 identifier (36-character string)"},"groupBy":{"type":"array","items":{"type":"string","enum":["date","user","api-key","service"]}},"totals":{"type":"object","properties":{"credits":{"type":"number","description":"Credits consumed in this slice."},"requests":{"type":"number","description":"Charged requests in this slice."}},"required":["credits","requests"]},"groups":{"type":"array","items":{"type":"object","properties":{"date":{"type":["string","null"],"description":"Usage day (YYYY-MM-DD, UTC).","example":"2026-07-01"},"userId":{"type":["string","null"],"format":"uuid","description":"Workspace member the usage attributes to (null when not grouped by user)."},"apiKeyId":{"type":["string","null"],"format":"uuid","description":"API key that made the calls (null for signed-in calls, or when not grouped by API key)."},"service":{"type":["string","null"],"description":"Product service that consumed credits.","example":"phone-details"},"credits":{"type":"number","description":"Credits consumed in this slice."},"requests":{"type":"number","description":"Charged requests in this slice."}},"required":["date","userId","apiKeyId","service","credits","requests"]}}},"required":["workspaceId","groupBy","totals","groups"]},"InsufficientCreditsError":{"type":"object","properties":{"error":{"type":"string","enum":["INSUFFICIENT_CREDITS"],"description":"Error code"},"message":{"type":"string","example":"No credits left: add credits or a plan under Billing","description":"Error message"}},"required":["error","message"]},"EmailCheckDetailsResponse":{"type":"object","properties":{"email":{"type":"string","description":"The address checked.","example":"john.smith@gmail.com"},"validMx":{"type":["boolean","null"],"description":"The domain has mail servers; null without `verifyMx` or `verifySmtp`, or for a disposable domain.","example":true},"validSmtp":{"type":["boolean","null"],"description":"The mail server accepts the mailbox; null without `verifySmtp`, or when indeterminate.","example":null},"validFormat":{"type":"boolean","description":"The address is well formed.","example":true},"isDisposable":{"type":"boolean","description":"The domain is a disposable (throwaway) email provider.","example":false},"isFree":{"type":"boolean","description":"The domain is a free email provider.","example":true},"mxRecords":{"type":["array","null"],"items":{"type":"string"},"description":"The domain's mail servers, by priority (with `verifyMx`).","example":["gmail-smtp-in.l.google.com"]},"detectedName":{"type":"object","properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"confidence":{"type":"number","description":"0..1"}},"required":["confidence"],"description":"The name in the local part (with `detectName`).","example":{"firstName":"John","lastName":"Smith","confidence":0.95}},"domainSuggestion":{"type":"object","properties":{"original":{"type":"string"},"suggested":{"type":"string"},"confidence":{"type":"number","description":"0..1"}},"required":["original","suggested","confidence"],"description":"The likely intended domain (with `suggestDomain`).","example":{"original":"gmial.com","suggested":"gmail.com","confidence":0.9}},"domainAge":{"type":"object","properties":{"domain":{"type":"string"},"creationDate":{"type":"string"},"ageInDays":{"type":"number"},"ageInYears":{"type":"number"},"expirationDate":{"type":["string","null"]},"updatedDate":{"type":["string","null"]}},"required":["domain","creationDate","ageInDays","ageInYears","expirationDate","updatedDate"],"description":"Domain age from WHOIS (with `checkDomainAge`); dates are ISO 8601 UTC."},"domainRegistration":{"type":"object","properties":{"domain":{"type":"string"},"isRegistered":{"type":"boolean"},"isAvailable":{"type":"boolean"},"status":{"type":"array","items":{"type":"string"}},"registrar":{"type":["string","null"]},"nameServers":{"type":"array","items":{"type":"string"}},"expirationDate":{"type":["string","null"]},"isExpired":{"type":"boolean"},"daysUntilExpiration":{"type":["number","null"]},"isPendingDelete":{"type":"boolean"},"isLocked":{"type":"boolean"}},"required":["domain","isRegistered","isAvailable","status","registrar","nameServers","expirationDate","isExpired","daysUntilExpiration"],"description":"Domain registration from WHOIS (with `checkDomainRegistration`)."},"smtpDebug":{"type":"object","properties":{"port":{"type":"number"},"responseCode":{"type":"number"},"enhancedStatus":{"type":"string","description":"RFC 3463 enhanced status code, e.g. 5.1.1."},"reason":{"type":"string"},"isCatchAll":{"type":"boolean","description":"The server accepts any recipient, so `validSmtp` is unreliable."},"provider":{"type":"string"},"transcript":{"type":"array","items":{"type":"string"}},"commands":{"type":"array","items":{"type":"string"}},"error":{"type":"string"}},"description":"The SMTP check's details (with `smtpDebug` and `verifySmtp`)."},"error":{"type":"string","description":"Why the address failed before any check: `invalidEmailFormat` or `invalidEmailTld`.","example":"invalidEmailTld"}},"required":["email","validMx","validSmtp","validFormat","isDisposable","isFree"]}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API Key authentication using the `x-api-key` header."}}},"paths":{"/credit-usage/daily/list":{"get":{"summary":"List the credits used per day","description":"List the credits the request brand's wallets used per day.","security":[{"ApiKeyAuth":[]}],"parameters":[{"schema":{"type":"integer","exclusiveMinimum":0,"default":1,"example":1,"description":"Page number for pagination"},"required":false,"description":"Page number for pagination","name":"page","in":"query"},{"schema":{"type":"integer","exclusiveMinimum":0,"maximum":1000,"default":20,"example":200,"description":"Number of rows per page (max 1000, `CREDIT_USAGE_DAILY_LIST_MAX_LIMIT`): 90 days of usage in one request"},"required":false,"description":"Number of rows per page (max 1000, `CREDIT_USAGE_DAILY_LIST_MAX_LIMIT`): 90 days of usage in one request","name":"limit","in":"query"},{"schema":{"type":"string","description":"Filter by specific daily credit usage row IDs (comma-separated UUID v7)","example":"018f6b1c-7e2a-7000-9d3e-4a5b6c7d8e8f,018f6b1c-7e2a-7000-9d3e-4a5b6c7d8e8f"},"required":false,"description":"Filter by specific daily credit usage row IDs (comma-separated UUID v7)","name":"ids","in":"query"},{"schema":{"type":"string","format":"uuid","example":"018f6b1c-7e2a-7000-9d3e-000000000011","description":"Filter by specific workspace ID"},"required":false,"description":"Filter by specific workspace ID","name":"workspaceId","in":"query"},{"schema":{"type":"string","example":"phone-details","description":"Filter by service name (exact match)"},"required":false,"description":"Filter by service name (exact match)","name":"service","in":"query"},{"schema":{"type":"string","example":"2026-01-01","description":"Filter records from this date onwards (YYYY-MM-DD format)"},"required":false,"description":"Filter records from this date onwards (YYYY-MM-DD format)","name":"dateFrom","in":"query"},{"schema":{"type":"string","example":"2026-01-31","description":"Filter records up to this date (YYYY-MM-DD format)"},"required":false,"description":"Filter records up to this date (YYYY-MM-DD format)","name":"dateTo","in":"query"},{"schema":{"type":"string","enum":["date","creditsUsed","requestCount"],"default":"date","example":"date","description":"Field to sort by. Rows carry no timestamps, so the newest day first is the default."},"required":false,"description":"Field to sort by. Rows carry no timestamps, so the newest day first is the default.","name":"sortBy","in":"query"},{"schema":{"type":"string","enum":["asc","desc"],"default":"desc","example":"desc","description":"Sort order"},"required":false,"description":"Sort order","name":"sortOrder","in":"query"}],"responses":{"200":{"description":"Credit usage records retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditUsageDailyListResponse"}}}},"400":{"description":"Bad request - Invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestError"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerError"}}}},"503":{"description":"The request could not be checked or served right now. It says nothing about the request; send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableError"}}}}}}},"/credit-usage/breakdown":{"get":{"summary":"Get credit usage breakdown","description":"Credits the request brand's wallet used in a date range, grouped by date, member, API key or service.","security":[{"ApiKeyAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","example":"018f6b1c-7e2a-7000-9d3e-000000000011","description":"Workspace to report usage for (required)."},"required":true,"description":"Workspace to report usage for (required).","name":"workspaceId","in":"query"},{"schema":{"type":"string","description":"From this day (inclusive, YYYY-MM-DD).","example":"2026-07-01"},"required":false,"description":"From this day (inclusive, YYYY-MM-DD).","name":"dateFrom","in":"query"},{"schema":{"type":"string","description":"To this day (inclusive, YYYY-MM-DD).","example":"2026-07-31"},"required":false,"description":"To this day (inclusive, YYYY-MM-DD).","name":"dateTo","in":"query"},{"schema":{"type":"string","default":["service"],"description":"Dimensions to group usage by (comma-separated subset of date / user / api-key / service).","example":"api-key,service"},"required":false,"description":"Dimensions to group usage by (comma-separated subset of date / user / api-key / service).","name":"groupBy","in":"query"}],"responses":{"200":{"description":"Credits used by the request brand wallet, grouped by the requested dimension(s), highest-credit first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditUsageBreakdownResponse"}}}},"400":{"description":"Bad request - Invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestError"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerError"}}}},"503":{"description":"The request could not be checked or served right now. It says nothing about the request; send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableError"}}}}}}},"/email-check/details":{"get":{"summary":"Check an email address","description":"Check `email` for format, disposable and free providers, and on request its MX records, SMTP mailbox, name, domain typo, age and registration; costs 1 credit.","security":[{"ApiKeyAuth":[]}],"parameters":[{"schema":{"type":"string","format":"email","description":"The address to check.","example":"john.smith@gmail.com"},"required":true,"description":"The address to check.","name":"email","in":"query"},{"schema":{"type":"boolean","default":false,"description":"Check that the domain has mail servers (MX records)."},"required":false,"description":"Check that the domain has mail servers (MX records).","name":"verifyMx","in":"query"},{"schema":{"type":"boolean","default":false,"description":"Ask the mail server whether the mailbox exists (slower)."},"required":false,"description":"Ask the mail server whether the mailbox exists (slower).","name":"verifySmtp","in":"query"},{"schema":{"type":"boolean","default":false,"description":"Detect a first and last name in the local part."},"required":false,"description":"Detect a first and last name in the local part.","name":"detectName","in":"query"},{"schema":{"type":"boolean","default":false,"description":"Suggest the intended domain for a likely typo (gmial.com → gmail.com)."},"required":false,"description":"Suggest the intended domain for a likely typo (gmial.com → gmail.com).","name":"suggestDomain","in":"query"},{"schema":{"type":"boolean","default":false,"description":"Report the domain's age from WHOIS."},"required":false,"description":"Report the domain's age from WHOIS.","name":"checkDomainAge","in":"query"},{"schema":{"type":"boolean","default":false,"description":"Report the domain's registration status from WHOIS."},"required":false,"description":"Report the domain's registration status from WHOIS.","name":"checkDomainRegistration","in":"query"},{"schema":{"type":"boolean","default":false,"description":"Return the SMTP check's details (port, response code, reason); never cached."},"required":false,"description":"Return the SMTP check's details (port, response code, reason); never cached.","name":"smtpDebug","in":"query"},{"schema":{"type":"integer","exclusiveMinimum":0,"maximum":10000,"default":2000,"description":"Per-check timeout in milliseconds.","example":2000},"required":false,"description":"Per-check timeout in milliseconds.","name":"timeout","in":"query"}],"responses":{"200":{"description":"The address checked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCheckDetailsResponse"}}}},"400":{"description":"Bad request - Invalid input parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestError"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"402":{"description":"The API key's workspace has no credits left on this brand","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientCreditsError"}}}},"403":{"description":"Access denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerError"}}}},"503":{"description":"The request could not be checked or served right now. It says nothing about the request; send it again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableError"}}}}}}}},"webhooks":{}}