{"openapi":"3.1.0","info":{"title":"Resolvary API","version":"1.0.0","description":"Find and verify business email addresses, one person per call.\n\nAuthenticate with your API key in `x-api-key` or `Authorization: Bearer <key>`. Create the key on your Account page.\n\nRate limit: 10 requests a second per API key. Over it the call gets 429 with `Retry-After`; every answer carries `X-RateLimit-Limit` and `X-RateLimit-Remaining`.\n\nCredits (1000 = $1): a find costs 30 only when the address is verified; a verify costs 4 (20 on a domain that accepts all mail) and nothing when the answer is unclear."},"servers":[{"url":"https://api.resolvary.com"}],"security":[{"apiKey":[]},{"bearer":[]}],"paths":{"/v1/account":{"get":{"operationId":"getAccount","summary":"Check the API key: account, credit balance, prices and limits","responses":{"200":{"description":"The key works","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"description":"Missing or wrong API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is not active yet","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/find-email":{"post":{"operationId":"findEmail","summary":"Find a person's business email","description":"Waits up to `wait` seconds (default 30, max 90) and answers with the result.\n\nMost lookups finish within seconds. One that needs longer answers 202 with `status: pending`; read it later at `result_url`, call again with the same person (no new charge), or pass `webhook_url` to get it POSTed when ready.\n\nAsking again for the same person with the same key within 7 days returns that lookup (`reused: true`) and costs nothing more. `fresh: true` searches again.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindEmailRequest"}}}},"responses":{"200":{"description":"Finished: verified, not_found or couldnt_verify","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindEmailResult"}}}},"202":{"description":"Still searching (`status: pending`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindEmailResult"}}}},"400":{"description":"Missing name or company domain, or a bad field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or wrong API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits (`required`, `balance`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The account is not active yet","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit: wait `Retry-After` seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/find-email/{id}":{"get":{"operationId":"getFindEmail","summary":"Read a lookup started by POST /v1/find-email","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"wait","in":"query","required":false,"description":"Seconds to wait if it is still pending (max 90)","schema":{"type":"integer","minimum":0,"maximum":90,"default":0}}],"responses":{"200":{"description":"Finished","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindEmailResult"}}}},"202":{"description":"Still searching","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindEmailResult"}}}},"404":{"description":"No such lookup for this key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/verify-email":{"post":{"operationId":"verifyEmail","summary":"Check whether an address can receive mail","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email"}}}}}},"responses":{"200":{"description":"The answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailResult"}}}},"400":{"description":"Not an email address","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"The check needs longer; try again later","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key"},"bearer":{"type":"http","scheme":"bearer"}},"schemas":{"FindEmailRequest":{"type":"object","description":"A person and their company. Send first_name + last_name, or full_name.","properties":{"first_name":{"type":"string","example":"Jane"},"last_name":{"type":"string","example":"Doe"},"full_name":{"type":"string","description":"Used when first_name / last_name are missing","example":"Jane Doe"},"domain":{"type":"string","description":"The company's domain. A website URL or an email address at the company works too.","example":"acme.com"},"company":{"type":"string","description":"Company name, stored with the lookup (does not replace domain)"},"title":{"type":"string"},"linkedin_url":{"type":"string","description":"Stored with the lookup"},"wait":{"type":"integer","minimum":0,"maximum":90,"default":30},"fresh":{"type":"boolean","default":false,"description":"Search again even if this person was looked up lately"},"webhook_url":{"type":"string","format":"uri","description":"Public https URL that gets the result POSTed when ready (for example a Clay table webhook)"},"webhook_headers":{"type":"object","additionalProperties":{"type":"string"},"description":"Up to 5 headers sent with the webhook, e.g. {\"x-clay-webhook-auth\": \"<token>\"}"},"metadata":{"type":"object","description":"Your own fields (a row id), returned in the answer and the webhook"}},"required":["domain"]},"FindEmailResult":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["verified","not_found","couldnt_verify","pending"]},"email":{"type":["string","null"],"description":"Only when status is verified"},"first_name":{"type":"string"},"last_name":{"type":"string"},"domain":{"type":"string"},"credits_charged":{"type":["integer","null"],"description":"null while pending"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"result_url":{"type":"string","format":"uri"},"reused":{"type":"boolean","description":"This person was looked up by this key lately; no new charge"},"metadata":{"type":"object"}},"required":["id","status","email","domain","credits_charged","result_url"]},"VerifyEmailResult":{"type":"object","properties":{"email":{"type":"string"},"status":{"type":"string","enum":["valid","invalid","cant_confirm"]},"credits_charged":{"type":"integer"}},"required":["email","status","credits_charged"]},"Account":{"type":"object","properties":{"account":{"type":["object","null"],"properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"company":{"type":["string","null"]}}},"credits":{"type":["object","null"],"properties":{"balance":{"type":"integer"},"held":{"type":"integer"}}},"pricing":{"type":"object","additionalProperties":{"type":"integer"}},"rate_limit":{"type":"object","properties":{"requests_per_second":{"type":"integer"},"requests_per_hour":{"type":"integer"}}}}},"Error":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"request_id":{"type":"string"}},"required":["error","code"]}}}}