{"openapi":"3.1.0","info":{"title":"Fig API","version":"1.0.0","description":"Email verification. 1 credit per checked address; unknown results are refunded; repeats within 30 days are free. No email is ever sent."},"servers":[{"url":"https://fig.email"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"API key from the API keys page, starts with fig_live_ (older keys: vk_live_)"}},"schemas":{"Result":{"type":"object","properties":{"email":{"type":"string"},"status":{"type":"string","enum":["valid","invalid","risky","unknown"]},"reason":{"type":"string","example":"mailbox exists"},"is_catch_all":{"type":"boolean"},"is_disposable":{"type":"boolean"},"is_role":{"type":"boolean"},"mx_found":{"type":"boolean"},"checked_at":{"type":"string","format":"date-time"}}},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["bad_request","too_many","unauthorized","insufficient_credits","not_found","rate_limited","engine_busy","engine_unavailable","internal"]},"message":{"type":"string"}}}}}}},"security":[{"bearer":[]}],"paths":{"/v1/verify":{"post":{"summary":"Verify one address","operationId":"verifyEmail","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","example":"sarah.mitchell@example.com"}}}}}},"responses":{"200":{"description":"Result","headers":{"x-ratelimit-limit":{"description":"Requests a minute allowed for this key","schema":{"type":"integer"}},"x-ratelimit-remaining":{"description":"Requests left this minute","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Result"},{"type":"object","properties":{"cached":{"type":"boolean"},"credits_charged":{"type":"integer","enum":[0,1]}}}]}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Engine busy or unreachable (see Retry-After); nothing charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/bulk":{"post":{"summary":"Verify up to 1000 addresses as a job","operationId":"createBulkJob","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["emails"],"properties":{"emails":{"type":"array","maxItems":1000,"items":{"type":"string"}}}}}}},"responses":{"202":{"description":"Job queued; credits reserved","content":{"application/json":{"schema":{"type":"object","properties":{"job_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","done"]},"submitted":{"type":"integer","description":"Addresses sent"},"total":{"type":"integer","description":"Unique, well formed addresses"},"to_check":{"type":"integer"},"duplicates":{"type":"integer"},"bad_syntax":{"type":"integer"},"cached":{"type":"integer"},"credits_reserved":{"type":"integer"}}}}}},"400":{"description":"Bad input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/jobs/{id}":{"get":{"summary":"Job status and, when done, results","operationId":"getJob","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Job","content":{"application/json":{"schema":{"type":"object","properties":{"job_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","running","done","failed"]},"source":{"type":"string","enum":["api","upload"]},"submitted":{"type":"integer"},"total":{"type":"integer"},"processed":{"type":"integer"},"duplicates":{"type":"integer"},"bad_syntax":{"type":"integer"},"credits_charged":{"type":"integer"},"credits_refunded":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"finished_at":{"type":["string","null"],"format":"date-time"},"counts":{"type":"object","properties":{"valid":{"type":"integer"},"invalid":{"type":"integer"},"risky":{"type":"integer"},"unknown":{"type":"integer"}}},"results":{"type":"array","items":{"$ref":"#/components/schemas/Result"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/credits":{"get":{"summary":"Credits left","operationId":"getCredits","responses":{"200":{"description":"Balances","content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string"},"monthly":{"type":"integer"},"topup":{"type":"integer"},"total":{"type":"integer"},"renews_at":{"type":["string","null"],"format":"date-time"},"ends_at":{"type":["string","null"],"format":"date-time"}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}