{"openapi":"3.1.0","info":{"title":"Sortance API","version":"0.1.0","summary":"Email validation API for signup forms: disposable, no-MX, typo and role checks, your own rules, one decision with its reasons.","description":"Check an email address for disposable domains, a missing mail server, typos and role inboxes, apply your own block and allow rules, and get one decision (send, challenge, hold or drop) with its reasons. It does not claim to confirm that a mailbox exists. Every response carries a trace_id and every error the same envelope. Human docs: https://sortance.com/docs/api. Agent reference: https://sortance.com/llms.txt. A remote MCP server is at https://api.sortance.com/mcp.","contact":{"name":"Sortance","url":"https://sortance.com"},"x-logo":{"url":"https://api.sortance.com/brand/icon-512.png"}},"externalDocs":{"description":"API reference","url":"https://sortance.com/docs/api"},"servers":[{"url":"https://api.sortance.com"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Verification","description":"Verify, check and screen single addresses."},{"name":"Identity router","description":"Decide with your policy; enrichment where configured."},{"name":"Feedback","description":"Outcomes and traces."},{"name":"Account","description":"Key identity and usage."},{"name":"Domain rules","description":"Your account's own domain blocklist and allowlist."},{"name":"Address rules","description":"Your account's own single-address blocklist and allowlist."},{"name":"IP rules","description":"Your account's own blocklist and allowlist of the IPs and ranges checks come from."},{"name":"Bulk","description":"Verify a CSV list."}],"paths":{"/v1/verify":{"post":{"summary":"Verify one address","description":"Syntax, your rules, MX, disposable lists, mailbox providers within your budget, an AI check, a 0–100 score and your policy. Returns 200 with degraded: true rather than failing when providers are down. Metered.","security":[{"bearerAuth":[]}],"operationId":"verifyEmail","tags":["Verification"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyResponse"}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"quota_exceeded: the organisation's monthly allowance is spent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/check":{"post":{"summary":"Free checks only","description":"Syntax, MX, disposable lists and your own rules. No provider is called and no bounce probability is claimed. Not counted against the monthly quota.","security":[{"bearerAuth":[]}],"operationId":"checkEmail","tags":["Verification"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"The address to check, up to 320 characters.","maxLength":320,"examples":["mia@acme.com"]}},"required":["email"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckResponse"}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/screen":{"post":{"summary":"Screen a signup","description":"Typos, placeholder addresses, fake or mismatched names and lookalike domains. Metered on its own screening allowance.","security":[{"bearerAuth":[]}],"operationId":"screenSignup","tags":["Verification"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenResponse"}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"screening_quota_exceeded: the monthly screening allowance is spent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/decide":{"post":{"summary":"Decide whether to let an address in","description":"Verify, enrich only if a rule needs it, apply your policy, and return allow, allow_with_flow, review, challenge or deny with the rule that made it. Metered like a verification.","security":[{"bearerAuth":[]}],"operationId":"decide","tags":["Identity router"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecideRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecideResponse"}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"quota_exceeded: the organisation's monthly allowance is spent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/enrich":{"post":{"summary":"Enrich a person and company","description":"Person and company profile from the enrichment providers, with coverage and per-source receipts.","security":[{"bearerAuth":[]}],"operationId":"enrich","tags":["Identity router"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrichRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrichResponse"}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"enrichment_quota_exceeded: the enrichment allowance is spent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/outcome":{"post":{"summary":"Report what happened to a send","description":"Feeds calibration for your account. The account comes from the key, never the body.","security":[{"bearerAuth":[]}],"operationId":"reportOutcome","tags":["Feedback"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeRequest"}}}},"responses":{"202":{"description":"Accepted for processing","content":{"application/json":{"schema":{"type":"object","properties":{"accepted":{"type":"boolean"},"trace_id":{"type":"string"}},"required":["accepted","trace_id"]}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/traces":{"get":{"summary":"List recent decisions","description":"Recent traces across your organisation (or only your key's rows, for manual and service keys below admin).","security":[{"bearerAuth":[]}],"operationId":"listTraces","tags":["Feedback"],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer"}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"bulk_job_id","in":"query","schema":{"type":"string"}},{"name":"key_id","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/traces/{trace_id}":{"get":{"summary":"Replay one decision","description":"Which providers were asked, what each returned, how long it took and what it cost.","security":[{"bearerAuth":[]}],"operationId":"getTrace","tags":["Feedback"],"parameters":[{"name":"trace_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such trace for this key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/me":{"get":{"summary":"Who this key is","description":"The key, its role and its organisation. Nothing secret.","security":[{"bearerAuth":[]}],"operationId":"getMe","tags":["Account"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/usage":{"get":{"summary":"Usage this period","description":"Calls, provider spend, quota remaining, screenings and bulk usage for the key's organisation.","security":[{"bearerAuth":[]}],"operationId":"getUsage","tags":["Account"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/domains/blocklist":{"get":{"summary":"List domain blocklist","description":"Your account's domain blocklist.","security":[{"bearerAuth":[]}],"operationId":"listDomainBlocklist","tags":["Domain rules"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"rule":{"type":"string","enum":["block","allow"]},"domains":{"type":"array","items":{"type":"object","additionalProperties":true}},"count":{"type":"integer"}}}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Add to domain blocklist","description":"Adding to one list takes the entry off the other. Needs a member key.","security":[{"bearerAuth":[]}],"operationId":"addDomainBlocklist","tags":["Domain rules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domains":{"type":"array","items":{"type":"string"}},"note":{"type":"string"}},"required":["domains"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Remove from domain blocklist","description":"Needs a member key.","security":[{"bearerAuth":[]}],"operationId":"removeDomainBlocklist","tags":["Domain rules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domains":{"type":"array","items":{"type":"string"}}},"required":["domains"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/domains/allowlist":{"get":{"summary":"List domain allowlist","description":"Your account's domain allowlist.","security":[{"bearerAuth":[]}],"operationId":"listDomainAllowlist","tags":["Domain rules"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"rule":{"type":"string","enum":["block","allow"]},"domains":{"type":"array","items":{"type":"object","additionalProperties":true}},"count":{"type":"integer"}}}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Add to domain allowlist","description":"Adding to one list takes the entry off the other. Needs a member key.","security":[{"bearerAuth":[]}],"operationId":"addDomainAllowlist","tags":["Domain rules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domains":{"type":"array","items":{"type":"string"}},"note":{"type":"string"}},"required":["domains"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Remove from domain allowlist","description":"Needs a member key.","security":[{"bearerAuth":[]}],"operationId":"removeDomainAllowlist","tags":["Domain rules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domains":{"type":"array","items":{"type":"string"}}},"required":["domains"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/domains/check":{"post":{"summary":"Check one domain against your rules","description":"Which of your rules apply, without running a verification.","security":[{"bearerAuth":[]}],"operationId":"checkDomainRules","tags":["Domain rules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string"}},"required":["domain"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/addresses/blocklist":{"get":{"summary":"List address blocklist","description":"Masked addresses (j•••@acme.com), newest first; never the address.","security":[{"bearerAuth":[]}],"operationId":"listAddressBlocklist","tags":["Address rules"],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer"}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressRuleList"}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Add to address blocklist","description":"Adding to one list takes the entry off the other. Needs a member key.","security":[{"bearerAuth":[]}],"operationId":"addAddressBlocklist","tags":["Address rules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"type":"array","items":{"type":"string"},"description":"Up to 1,000 addresses."},"trace_ids":{"type":"array","items":{"type":"string"},"description":"Or trace ids whose addresses to add."},"note":{"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Remove from address blocklist","description":"Needs a member key.","security":[{"bearerAuth":[]}],"operationId":"removeAddressBlocklist","tags":["Address rules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"type":"array","items":{"type":"string"}},"ids":{"type":"array","items":{"type":"string"},"description":"Entry ids from the listing."},"trace_ids":{"type":"array","items":{"type":"string"}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/addresses/allowlist":{"get":{"summary":"List address allowlist","description":"Masked addresses (j•••@acme.com), newest first; never the address.","security":[{"bearerAuth":[]}],"operationId":"listAddressAllowlist","tags":["Address rules"],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer"}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressRuleList"}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Add to address allowlist","description":"Adding to one list takes the entry off the other. Needs a member key.","security":[{"bearerAuth":[]}],"operationId":"addAddressAllowlist","tags":["Address rules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"type":"array","items":{"type":"string"},"description":"Up to 1,000 addresses."},"trace_ids":{"type":"array","items":{"type":"string"},"description":"Or trace ids whose addresses to add."},"note":{"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Remove from address allowlist","description":"Needs a member key.","security":[{"bearerAuth":[]}],"operationId":"removeAddressAllowlist","tags":["Address rules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"type":"array","items":{"type":"string"}},"ids":{"type":"array","items":{"type":"string"},"description":"Entry ids from the listing."},"trace_ids":{"type":"array","items":{"type":"string"}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/addresses/check":{"post":{"summary":"Check one address against your rules","description":"Which of your rules apply, without running a verification.","security":[{"bearerAuth":[]}],"operationId":"checkAddressRules","tags":["Address rules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"The address to check, up to 320 characters.","maxLength":320,"examples":["mia@acme.com"]}},"required":["email"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/ips/blocklist":{"get":{"summary":"List IP blocklist","description":"Canonical entries: host bits zeroed, a single host as the bare address.","security":[{"bearerAuth":[]}],"operationId":"listIpBlocklist","tags":["IP rules"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"rule":{"type":"string","enum":["block","allow"]},"ips":{"type":"array","items":{"type":"object","additionalProperties":true}},"count":{"type":"integer"}}}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Add to IP blocklist","description":"Adding to one list takes the entry off the other. Needs a member key.","security":[{"bearerAuth":[]}],"operationId":"addIpBlocklist","tags":["IP rules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ips":{"type":"array","items":{"type":"string"},"description":"IPs (203.0.113.7, 2001:db8::1) or CIDR ranges no wider than /16 (IPv6: /32). Up to 1,000."},"note":{"type":"string"}},"required":["ips"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Remove from IP blocklist","description":"Needs a member key.","security":[{"bearerAuth":[]}],"operationId":"removeIpBlocklist","tags":["IP rules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ips":{"type":"array","items":{"type":"string"},"description":"IPs (203.0.113.7, 2001:db8::1) or CIDR ranges no wider than /16 (IPv6: /32). Up to 1,000."}},"required":["ips"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/ips/allowlist":{"get":{"summary":"List IP allowlist","description":"Canonical entries: host bits zeroed, a single host as the bare address.","security":[{"bearerAuth":[]}],"operationId":"listIpAllowlist","tags":["IP rules"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"rule":{"type":"string","enum":["block","allow"]},"ips":{"type":"array","items":{"type":"object","additionalProperties":true}},"count":{"type":"integer"}}}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Add to IP allowlist","description":"Adding to one list takes the entry off the other. Needs a member key.","security":[{"bearerAuth":[]}],"operationId":"addIpAllowlist","tags":["IP rules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ips":{"type":"array","items":{"type":"string"},"description":"IPs (203.0.113.7, 2001:db8::1) or CIDR ranges no wider than /16 (IPv6: /32). Up to 1,000."},"note":{"type":"string"}},"required":["ips"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Remove from IP allowlist","description":"Needs a member key.","security":[{"bearerAuth":[]}],"operationId":"removeIpAllowlist","tags":["IP rules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ips":{"type":"array","items":{"type":"string"},"description":"IPs (203.0.113.7, 2001:db8::1) or CIDR ranges no wider than /16 (IPv6: /32). Up to 1,000."}},"required":["ips"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/ips/check":{"post":{"summary":"Check one IP against your rules","description":"The most specific matching entry and the effective outcome: blocked, allowed or none.","security":[{"bearerAuth":[]}],"operationId":"checkIpRules","tags":["IP rules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ip":{"type":"string","description":"One IP address, not a range."}},"required":["ip"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/bulk/jobs":{"post":{"summary":"Create a bulk job","description":"Creates a job in state uploading. Needs a member key.","security":[{"bearerAuth":[]}],"operationId":"createBulkJob","tags":["Bulk"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"purpose":{"type":"string","enum":["outbound","signup","list_hygiene"]},"policy_slug":{"type":"string"},"has_header":{"type":"boolean"},"email_column":{"type":"string"}}}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"job":{"$ref":"#/components/schemas/BulkJob"}},"required":["job"]}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"summary":"List bulk jobs","description":"Newest first.","security":[{"bearerAuth":[]}],"operationId":"listBulkJobs","tags":["Bulk"],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer"}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"state","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"jobs":{"type":"array","items":{"$ref":"#/components/schemas/BulkJob"}},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/bulk/jobs/{id}":{"get":{"summary":"Get a bulk job","description":"With progress and live verdict counts while it runs.","security":[{"bearerAuth":[]}],"operationId":"getBulkJob","tags":["Bulk"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"bj_-prefixed job id."}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"job":{"$ref":"#/components/schemas/BulkJob"}},"required":["job"]}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Delete a job's files","description":"The job record and its traces stay.","security":[{"bearerAuth":[]}],"operationId":"deleteBulkJobFiles","tags":["Bulk"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"bj_-prefixed job id."}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/bulk/jobs/{id}/upload":{"put":{"summary":"Upload the CSV","description":"The raw CSV as the body, up to 50 MB and 100,000 rows.","security":[{"bearerAuth":[]}],"operationId":"uploadBulkCsv","tags":["Bulk"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"bj_-prefixed job id."}}],"requestBody":{"required":true,"content":{"text/csv":{"schema":{"type":"string"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"job":{"$ref":"#/components/schemas/BulkJob"}},"required":["job"]}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Larger than 50 MB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/bulk/jobs/{id}/estimate":{"get":{"summary":"Estimate cost and quota","description":"Unique rows, cached rows, quota remaining and the maximum cost.","security":[{"bearerAuth":[]}],"operationId":"estimateBulkJob","tags":["Bulk"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"bj_-prefixed job id."}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/bulk/jobs/{id}/start":{"post":{"summary":"Start a bulk job","description":"Runs it, or queues it behind two running jobs.","security":[{"bearerAuth":[]}],"operationId":"startBulkJob","tags":["Bulk"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"bj_-prefixed job id."}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"allow_partial":{"type":"boolean"},"notify":{"type":"boolean"}}}}}},"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"job":{"$ref":"#/components/schemas/BulkJob"}},"required":["job"]}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"quota_exceeded: the organisation's monthly allowance is spent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/bulk/jobs/{id}/results.csv":{"get":{"summary":"Download results","description":"Your columns first, then sortance_* columns.","security":[{"bearerAuth":[]}],"operationId":"downloadBulkResults","tags":["Bulk"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"bj_-prefixed job id."}},{"name":"segment","in":"query","schema":{"type":"string","description":"all, deliverable, undeliverable, review, business; allow, deny, review with a policy."}}],"responses":{"200":{"description":"The CSV","content":{"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"invalid_request: malformed body or value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: missing, malformed or revoked key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden: the key's role is below what the route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The job is not done yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"The files were deleted after 7 days.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: too many requests this minute. See the RateLimit-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error. Carries a trace_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/health":{"get":{"summary":"Liveness","description":"Unauthenticated. 200 when the worker is up.","operationId":"health","security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"version":{"type":"string"}}}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key from https://sortance.com/app: Authorization: Bearer $SORTANCE_KEY."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["invalid_request","unauthorized","quota_exceeded","rate_limited","internal_error","all_providers_failed","policy_invalid","policy_conflict","enrichment_quota_exceeded","compile_failed","not_found","screening_quota_exceeded","forbidden","origin_not_allowed"]},"message":{"type":"string"},"trace_id":{"type":"string"}},"required":["code","message","trace_id"]}},"required":["error"],"description":"Every non-2xx body has this shape."},"VerifyRequest":{"type":"object","properties":{"email":{"type":"string","description":"The address to check, up to 320 characters.","maxLength":320,"examples":["mia@acme.com"]},"context":{"type":"object","properties":{"purpose":{"type":"string","enum":["outbound","signup","list_hygiene"]},"sender_domain":{"type":"string","description":"Your sending domain, for outbound checks."},"max_cost_usd":{"type":"number","description":"Hard ceiling on provider spend for this call."},"max_latency_ms":{"type":"integer","description":"Hard ceiling on wall-clock time; Sortance degrades rather than exceeding it."},"client":{"type":"object","properties":{"ip":{"type":"string","description":"End user's IP address."},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code."},"user_agent":{"type":"string","description":"End user's User-Agent."}},"description":"The END USER's details when your server calls Sortance. Malformed values are dropped, never a 400."},"attributes":{"type":"object","additionalProperties":true,"description":"Caller attributes readable by policy rules as attributes.*."},"ai":{"type":"boolean","description":"false skips the AI check."}}}},"required":["email"]},"CheckStep":{"type":"object","properties":{"id":{"type":"string","enum":["syntax","account_rules","mx","disposable","email_type","role","catch_all","mailbox","ai","score","policy"]},"status":{"type":"string","enum":["pass","fail","warn","info","skip"]},"detail":{"type":"string"}},"required":["id","status","detail"]},"RequestInfo":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"ip_version":{"anyOf":[{"type":"integer"},{"type":"null"}]},"country":{"anyOf":[{"type":"string"},{"type":"null"}]},"region":{"anyOf":[{"type":"string"},{"type":"null"}]},"region_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"continent":{"anyOf":[{"type":"string"},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_eu":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"asn":{"anyOf":[{"type":"integer"},{"type":"null"}]},"as_org":{"anyOf":[{"type":"string"},{"type":"null"}]},"colo":{"anyOf":[{"type":"string"},{"type":"null"}]},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"type":"string","enum":["edge","caller"],"description":"caller when context.client supplied the end user's details."}}},"UsageCounters":{"type":"object","properties":{"key":{"type":"object","properties":{"minute":{"type":"integer"},"hour":{"type":"integer"},"day":{"type":"integer"}}},"ip":{"anyOf":[{"type":"object","properties":{"minute":{"type":"integer"},"hour":{"type":"integer"},"day":{"type":"integer"}}},{"type":"null"}]},"email":{"anyOf":[{"type":"object","properties":{"day":{"type":"integer"}}},{"type":"null"}]},"domain":{"anyOf":[{"type":"object","properties":{"hour":{"type":"integer"}}},{"type":"null"}]},"limits":{"type":"object","properties":{"per_minute":{"type":"integer"},"remaining_minute":{"type":"integer"},"month_quota":{"anyOf":[{"type":"integer"},{"type":"null"}]},"month_used":{"anyOf":[{"type":"integer"},{"type":"null"}]}}}}},"VerifyResponse":{"type":"object","properties":{"email":{"type":"string","description":"The address you sent, echoed back. Never stored."},"verdict":{"type":"string","enum":["valid","likely_valid","risky","likely_invalid","invalid","unknown"],"description":"Compatibility field derived from bounce_probability. Prefer the probability."},"bounce_probability":{"type":"number","description":"Calibrated against observed bounces: 0.31 means roughly 31 in 100."},"confidence_interval":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2},"calibration":{"type":"string","enum":["prior","fitted"]},"recommendation":{"type":"string","enum":["send","hold","challenge","drop"],"description":"A policy suggestion, not a verdict."},"actor_class":{"type":"string","enum":["human_mailbox","agent_mailbox","relay_alias","role_account","shared","unknown"]},"mailbox_type":{"type":"string","enum":["corporate","consumer","role","unknown"]},"esp":{"type":"string","enum":["microsoft365","google_workspace","consumer_esp","self_hosted","unknown"]},"email_type":{"type":"string","enum":["business","free","role","disposable","relay","unknown"],"description":"free is the consumer-provider class (Gmail, Outlook, Yahoo, …)."},"signals":{"type":"object","properties":{"syntax":{"type":"string","enum":["pass","fail"]},"mx":{"type":"string","enum":["pass","fail"]},"disposable":{"type":"boolean"},"role_account":{"type":"boolean"},"catch_all":{"type":"boolean"},"relay_alias":{"type":"boolean"}}},"providers":{"type":"object","additionalProperties":{"type":"object","properties":{"verdict":{"type":"string"},"ms":{"type":"number"},"cost":{"type":"number"}}},"description":"Per-provider receipts. Empty when the local gate or the cache settled it."},"disagreement":{"type":"number","description":"How far apart the providers landed. 0 = agreement."},"cache":{"type":"object","properties":{"hit":{"type":"boolean"},"ttl_s":{"type":"integer"}}},"cost_usd":{"type":"number"},"latency_ms":{"type":"integer"},"trace_id":{"type":"string","description":"vr_-prefixed. Quote it in /v1/outcome."},"reason":{"anyOf":[{"type":"string","enum":["syntax_invalid","ip_blocklisted","address_blocklisted","domain_blocklisted","no_mx","mx_unresolved","disposable_domain","disposable_suspected","domain_allowlisted","address_allowlisted"]},{"type":"null"}]},"reasons":{"type":"array","items":{"type":"string","enum":["syntax_invalid","ip_blocklisted","address_blocklisted","domain_blocklisted","no_mx","mx_unresolved","disposable_domain","disposable_suspected","domain_allowlisted","address_allowlisted"]}},"degraded":{"type":"boolean","description":"Present and true only when a provider failed and nothing else added evidence."},"identity_hash":{"type":"string","description":"Per-account salted dedupe key for relay aliases."},"mailbox_checked":{"type":"boolean","description":"True when a mailbox provider said whether the mailbox exists."},"score":{"type":"integer","description":"0–100: how safe it is to let this address in. Higher is better."},"score_band":{"type":"string","enum":["high","medium","low"]},"checks":{"type":"array","items":{"$ref":"#/components/schemas/CheckStep"},"description":"The checks that ran, in order."},"ai":{"type":"object","properties":{"status":{"type":"string","enum":["ok","skipped","unavailable","failed"]},"model":{"type":"string","enum":["jev"]},"address":{"type":"string","enum":["real","fake","uncertain"]},"domain":{"type":"string","enum":["ok","typo_like","lookalike","placeholder","throwaway_like","uncertain"]},"cached":{"type":"boolean"},"reason":{"type":"string"}}},"decision":{"anyOf":[{"type":"object","properties":{"action":{"type":"string","enum":["allow","allow_with_flow","review","challenge","deny"]},"policy":{"type":"string"},"version":{"type":"integer"},"rule":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}}},{"type":"null"}]},"flow":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"reasons":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"request":{"anyOf":[{"$ref":"#/components/schemas/RequestInfo"},{"type":"null"}]},"usage":{"anyOf":[{"$ref":"#/components/schemas/UsageCounters"},{"type":"null"}]}},"required":["email","verdict","bounce_probability","confidence_interval","calibration","recommendation","actor_class","mailbox_type","esp","email_type","signals","providers","disagreement","cache","cost_usd","latency_ms","trace_id","reason","reasons"]},"CheckResponse":{"type":"object","properties":{"email":{"type":"string"},"domain":{"type":"string"},"passes":{"type":"boolean","description":"Syntax valid, MX present, not disposable, not on your blocklists. Does not claim the mailbox exists."},"disposable":{"type":"boolean"},"suspected":{"type":"boolean"},"reason":{"anyOf":[{"type":"string","enum":["syntax_invalid","ip_blocklisted","address_blocklisted","domain_blocklisted","no_mx","mx_unresolved","disposable_domain","disposable_suspected","domain_allowlisted","address_allowlisted"]},{"type":"null"}]},"reasons":{"type":"array","items":{"type":"string","enum":["syntax_invalid","ip_blocklisted","address_blocklisted","domain_blocklisted","no_mx","mx_unresolved","disposable_domain","disposable_suspected","domain_allowlisted","address_allowlisted"]}},"checks":{"type":"object","properties":{"syntax":{"type":"string","enum":["pass","fail"]},"mx":{"type":"string","enum":["pass","fail","unknown"]},"disposable":{"type":"string","enum":["pass","fail","suspected"]}}},"esp":{"type":"string","enum":["microsoft365","google_workspace","consumer_esp","self_hosted","unknown"]},"email_type":{"type":"string","enum":["business","free","role","disposable","relay","unknown"]},"mx_hosts":{"type":"array","items":{"type":"string"}},"mx_provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"latency_ms":{"type":"integer"},"trace_id":{"type":"string","description":"ck_-prefixed."}},"required":["email","domain","passes","disposable","suspected","reason","reasons","checks","esp","email_type","mx_hosts","mx_provider","latency_ms","trace_id"]},"ScreenRequest":{"type":"object","properties":{"email":{"type":"string","description":"The address to check, up to 320 characters.","maxLength":320,"examples":["mia@acme.com"]},"name":{"type":"string","description":"Optional full name, up to 200 characters.","maxLength":200}},"required":["email"]},"ScreenResponse":{"type":"object","properties":{"email":{"type":"string"},"domain":{"type":"object","properties":{"syntax":{"type":"string","enum":["pass","fail"]},"mx":{"type":"string","enum":["pass","fail","unknown"]},"disposable":{"type":"boolean"}}},"screening":{"type":"object","properties":{"typo_suggestion":{"anyOf":[{"type":"string"},{"type":"null"}]},"typo_source":{"anyOf":[{"type":"string","enum":["name_match","domain"]},{"type":"null"}]},"name_match":{"type":"string","enum":["match","typo","partial","mismatch","not_checked"]},"fake_name":{"type":"string","enum":["likely","unlikely","uncertain","not_checked"]},"domain_check":{"type":"string","enum":["ok","typo_like","lookalike","placeholder","throwaway_like","uncertain","not_checked"]},"placeholder":{"type":"boolean"},"recommendation":{"type":"string","enum":["allow","review"],"description":"Never deny."},"reasons":{"type":"array","items":{"type":"string","enum":["syntax_invalid","ip_blocklisted","address_blocklisted","domain_blocklisted","domain_no_mx","disposable_domain","domain_allowlisted","address_allowlisted","domain_typo","local_part_typo_of_name","name_mismatch","placeholder_address","domain_suspicious","address_fake_likely","fake_name_likely","name_email_inconsistent"]}},"degraded":{"type":"boolean"}}},"cost_usd":{"type":"number"},"latency_ms":{"type":"integer"},"trace_id":{"type":"string","description":"sc_-prefixed."}},"required":["email","domain","screening","cost_usd","latency_ms","trace_id"]},"DecideRequest":{"type":"object","properties":{"email":{"type":"string","description":"The address to check, up to 320 characters.","maxLength":320,"examples":["mia@acme.com"]},"context":{"type":"object","properties":{"purpose":{"type":"string","enum":["outbound","signup","list_hygiene"]},"policy":{"type":"string","description":"Policy slug. Default: default."},"enrich":{"type":"string","enum":["auto","always","never"],"description":"auto (default) enriches only when a rule needs it."},"max_cost_usd":{"type":"number","description":"Ceiling across verification and enrichment together."},"max_latency_ms":{"type":"integer"},"attributes":{"type":"object","additionalProperties":{"type":"string"}},"signals":{"type":"object","properties":{"signature_agent_header":{"type":"string"},"signup_ip":{"type":"string"},"otp_delivered_at":{"type":"integer"},"otp_submitted_at":{"type":"integer"}}},"sender_domain":{"type":"string"}}}},"required":["email"]},"EnrichmentProfile":{"type":"object","properties":{"person":{"anyOf":[{"type":"object","properties":{"full_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"seniority":{"anyOf":[{"type":"string","enum":["c_suite","vp","director","manager","senior","entry","unknown"]},{"type":"null"}]},"department":{"anyOf":[{"type":"string","enum":["engineering","product","design","marketing","growth","sales","customer_success","finance","legal","hr","operations","executive","other","unknown"]},{"type":"null"}]},"linkedin_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"object","properties":{"country":{"anyOf":[{"type":"string"},{"type":"null"}]},"region":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},{"type":"null"}]},"company":{"anyOf":[{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"industry":{"anyOf":[{"type":"string","enum":["fintech","banking","insurance","investment_management","venture_capital","accounting","crypto_web3","real_estate","saas","software","developer_tools","artificial_intelligence","data_analytics","cybersecurity","it_services","internet","ecommerce","marketplaces","gaming","edtech","health_tech","hr_tech","martech","proptech","legal_tech","hardware","semiconductors","telecommunications","manufacturing","industrial_automation","automotive","aerospace_defense","construction","chemicals","mining_metals","energy","clean_energy","utilities","agriculture","logistics","transportation","travel","hospitality","retail","consumer_goods","food_beverage","sports_fitness","healthcare","pharmaceuticals","biotech","medical_devices","consulting","legal","marketing_advertising","staffing_recruiting","media","entertainment","publishing","education","government","nonprofit","other"]},{"type":"null"}]},"industry_raw":{"anyOf":[{"type":"string"},{"type":"null"}]},"employees":{"anyOf":[{"type":"integer"},{"type":"null"}]},"employees_range":{"anyOf":[{"type":"string"},{"type":"null"}]},"revenue_range":{"anyOf":[{"type":"string"},{"type":"null"}]},"founded":{"anyOf":[{"type":"integer"},{"type":"null"}]},"country":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"anyOf":[{"type":"string","enum":["public","private","nonprofit","government","education","unknown"]},{"type":"null"}]},"tech":{"type":"array","items":{"type":"string"}},"linkedin_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"funding":{"anyOf":[{"type":"object","properties":{"total_usd":{"anyOf":[{"type":"number"},{"type":"null"}]},"last_round":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},{"type":"null"}]},"coverage":{"type":"object","properties":{"person":{"type":"number"},"company":{"type":"number"}},"description":"Fraction (0..1) of the asked-for fields that came back."},"freshness":{"type":"object","properties":{"person":{"anyOf":[{"type":"string"},{"type":"null"}]},"company":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"sources":{"type":"object","additionalProperties":{"type":"object","properties":{"status":{"type":"string","enum":["match","no_match","error","timeout","skipped"]},"ms":{"type":"number"},"cost":{"type":"number"},"fields":{"type":"integer"}}}},"disagreement":{"type":"object","additionalProperties":{"type":"object","additionalProperties":true}},"cache":{"type":"object","properties":{"hit":{"type":"boolean"},"ttl_s":{"type":"integer"}}},"visitor":{"anyOf":[{"type":"object","properties":{"identified":{"type":"boolean"},"first_seen":{"anyOf":[{"type":"string"},{"type":"null"}]},"pages":{"anyOf":[{"type":"integer"},{"type":"null"}]},"source":{"type":"string"}}},{"type":"null"}]}}},"DecideResponse":{"type":"object","properties":{"decision":{"type":"string","enum":["allow","allow_with_flow","review","challenge","deny"],"description":"Always set, even when every upstream failed."},"flow":{"anyOf":[{"type":"string"},{"type":"null"}]},"rule_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string"}},"policy":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"version":{"type":"integer"}}},{"type":"null"}]},"experiment":{"type":"object","properties":{"slug":{"type":"string"},"variant":{"type":"string"},"mode":{"type":"string","enum":["enforce","shadow"]},"shadow_decision":{"type":"string","enum":["allow","allow_with_flow","review","challenge","deny"]}}},"reasons":{"type":"array","items":{"type":"string"}},"verification":{"$ref":"#/components/schemas/VerifyResponse"},"enrichment":{"anyOf":[{"$ref":"#/components/schemas/EnrichmentProfile"},{"type":"null"}]},"icp":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer"},"fit":{"type":"string","enum":["strong","fit","weak","no_fit"]},"coverage":{"type":"number"},"version":{"type":"integer"},"criteria":{"type":"array","items":{"type":"object"}}}},{"type":"null"}]},"lists":{"type":"object","properties":{"matched":{"type":"array","items":{"type":"string"}}}},"cost_usd":{"type":"number"},"latency_ms":{"type":"integer"},"trace_id":{"type":"string","description":"dc_-prefixed."},"request":{"anyOf":[{"$ref":"#/components/schemas/RequestInfo"},{"type":"null"}]},"usage":{"anyOf":[{"$ref":"#/components/schemas/UsageCounters"},{"type":"null"}]}},"required":["decision","flow","rule_id","tags","policy","reasons","verification","enrichment","icp","lists","cost_usd","latency_ms","trace_id"]},"EnrichRequest":{"type":"object","properties":{"email":{"type":"string","description":"The address to check, up to 320 characters.","maxLength":320,"examples":["mia@acme.com"]},"context":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"string","enum":["person","company"]}},"max_cost_usd":{"type":"number"},"max_latency_ms":{"type":"integer"},"strategy":{"type":"string","enum":["waterfall","fanout"],"description":"waterfall (default) or fanout."}}}},"required":["email"]},"EnrichResponse":{"allOf":[{"$ref":"#/components/schemas/EnrichmentProfile"},{"type":"object","properties":{"cost_usd":{"type":"number"},"latency_ms":{"type":"integer"},"trace_id":{"type":"string","description":"en_-prefixed."},"request":{"anyOf":[{"$ref":"#/components/schemas/RequestInfo"},{"type":"null"}]},"usage":{"anyOf":[{"$ref":"#/components/schemas/UsageCounters"},{"type":"null"}]}},"required":["cost_usd","latency_ms","trace_id"]}]},"OutcomeRequest":{"type":"object","properties":{"trace_id":{"type":"string","description":"The vr_ trace id of the verification."},"outcome":{"type":"string","enum":["delivered","hard_bounce","soft_bounce","complaint","unknown"]},"smtp_code":{"type":"string","description":"Optional. The bounce message; reduced to its basic and enhanced codes."}},"required":["trace_id","outcome"]},"Me":{"type":"object","properties":{"account_id":{"type":"string"},"org":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"key":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string","enum":["viewer","member","admin"]},"origin":{"type":"string","enum":["auto","manual","service","oauth"]}}},"operator":{"type":"boolean"}}},"AddressRuleList":{"type":"object","properties":{"rule":{"type":"string","enum":["block","allow"]},"entries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"type":"integer"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"count":{"type":"integer"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"BulkJob":{"type":"object","additionalProperties":true,"description":"A bulk job: id (bj_…), state, counts and progress. See /docs/api#bulk."}}}}