{"openapi":"3.1.0","info":{"title":"Email Verify & Anti-Spam API","version":"1.0.0","description":"Real-time email syntax, RFC compliance, live MX/DNS lookup, 300+ disposable/burner domain detection, role-based filtering, typo suggestion, and batch verification up to 50 emails per call. Built for SaaS signups, CRM hygiene, n8n/Make workflows, and AI agents."},"servers":[{"url":"https://verify.sphere-empire.my"}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"VerifyResult":{"type":"object","properties":{"email":{"type":"string","example":"founder@google.com"},"valid_syntax":{"type":"boolean","example":true},"status":{"type":"string","enum":["valid","risky","invalid"],"example":"valid"},"score":{"type":"integer","minimum":0,"maximum":100,"example":95},"risk_level":{"type":"string","enum":["low","medium","high"],"example":"low"},"reason":{"type":"string","example":"ok"},"did_you_mean":{"type":["string","null"],"example":null},"is_disposable":{"type":"boolean","example":false},"is_role_based":{"type":"boolean","example":false},"is_free_provider":{"type":"boolean","example":false},"domain":{"type":["string","null"],"example":"google.com"},"has_mx":{"type":"boolean","example":true},"has_a_record":{"type":"boolean","example":false},"mail_provider":{"type":["string","null"],"example":"Google"},"mx_records":{"type":"array","items":{"type":"object","properties":{"exchange":{"type":"string"},"priority":{"type":"integer"}}}},"latency_ms":{"type":"integer","example":24}}},"BatchVerifyResult":{"type":"object","properties":{"total":{"type":"integer","example":2},"summary":{"type":"object","properties":{"valid":{"type":"integer"},"risky":{"type":"integer"},"invalid":{"type":"integer"},"disposable":{"type":"integer"}}},"results":{"type":"array","items":{"$ref":"#/components/schemas/VerifyResult"}},"latency_ms":{"type":"integer"}}}}},"paths":{"/health":{"get":{"summary":"Healthcheck","operationId":"getHealth","responses":{"200":{"description":"Service is healthy"}}}},"/api/v1/verify":{"get":{"summary":"Verify a single email address (GET)","operationId":"verifyEmailGet","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","example":"test@gmail.com"}}],"responses":{"200":{"description":"Verification result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyResult"}}}},"400":{"description":"Missing or invalid email parameter"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"429":{"description":"Quota exceeded"}}},"post":{"summary":"Verify a single email address (POST)","operationId":"verifyEmailPost","security":[{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","example":"user@mailinator.com"}}}}}},"responses":{"200":{"description":"Verification result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyResult"}}}},"400":{"description":"Missing email field"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"429":{"description":"Quota exceeded"}}}},"/api/v1/verify-batch":{"post":{"summary":"Verify up to 50 email addresses in one call","operationId":"verifyEmailBatch","security":[{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["emails"],"properties":{"emails":{"type":"array","maxItems":50,"items":{"type":"string"},"example":["ceo@google.com","spam@yopmail.com","info@company.com"]}}}}}},"responses":{"200":{"description":"Batch verification summary and results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchVerifyResult"}}}},"400":{"description":"Invalid emails array"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"429":{"description":"Quota exceeded"}}}}}}