{"openapi":"3.1.1","info":{"title":"Signet Sentry API: Account Risk","description":"Email addresses, phone numbers, links and promotions. The Signet Sentry server API. Every call is made from your server with your secret key (sk_live_... or sk_test_... for the sandbox) as a Bearer token. Browser and app sessions come from the Signet tag or the mobile SDKs, which handle their own traffic: you only send the session_id they give you. Each answer carries a decision (allow, review or deny), a 0-100 risk score and reason codes. Guides, sandbox values and sample apps: https://signetsentry.com/guide. For fraud prevention only.","version":"v1"},"servers":[{"url":"https://signetsentry.com/"}],"paths":{"/v1/phone/check":{"post":{"tags":["Account Risk: Phone Risk"],"summary":"Is this a real, personal phone number?","description":"Signet Phone Risk. Body: phone (E.164 such as \u002B14155550123, or a national number with country), optional country (two letters, used to read a number typed without a country code), session_id (the Signet session of the browser or app that entered it) and account_id (your id for the customer). Returns check_id, decision (allow, review, deny), risk_score 0-100, reason_codes and reasons, phone (valid, e164, country, line_type: mobile, fixed_line, fixed_line_or_mobile, voip, toll_free, premium_rate, shared_cost, personal, pager, uan, voicemail, unknown; carrier: the network the number was originally assigned to, or null when not known; voip: yes, likely or unknown) and linked_accounts. The number is never stored: only a keyed fingerprint. One call counts as one assessment. Test keys: \u002B15005550001, \u002B15005550002 and \u002B15005550003 give allow, review and deny; any other number gets the offline checks only.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PhoneCheckRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneCheckResult"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"account-risk","x-signet-part":"Phone Risk","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/v1/email/check":{"post":{"tags":["Account Risk: Email Risk"],"summary":"Is this email address a real person\u0027s inbox?","description":"Signet Email Risk. Body: email, optional session_id (the Signet session of the browser that typed it), check_dns (default true) and remember (default true). Returns valid, risk_score 0-100, recommendation (allow, review, block), a plain-English summary, reason_codes (EMAIL_RESERVED_DOMAIN, EMAIL_DISPOSABLE, EMAIL_ALIAS_FARMING, EMAIL_DOMAIN_NOT_FOUND, EMAIL_NO_MAIL_SERVER, EMAIL_TYPO_DOMAIN, EMAIL_LOOKALIKE_DOMAIN, EMAIL_THROWAWAY_MAIL_SERVER, EMAIL_NEW_DOMAIN, EMAIL_GIBBERISH, EMAIL_MANY_PER_DEVICE, EMAIL_ROLE_ACCOUNT, EMAIL_PLUS_TAG, EMAIL_PRIVACY_RELAY, EMAIL_INVALID), the domain facts and how often this inbox was seen under other spellings. The address is never stored: only tenant-salted hashes are. One valid check counts as one assessment. EMAIL_RESERVED_DOMAIN (score 100, block) marks a domain that can never receive mail: example.com, .net and .org, the .test, .example, .invalid, .localhost, .local, .onion and .internal names and home.arpa. Test keys: any address is analyzed offline and a reserved domain is not flagged, so example.com addresses work in tests; test_review@ and test_block@ give fixed answers.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/EmailCheckRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCheckResult"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"account-risk","x-signet-part":"Email Risk","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/v1/email/check/batch":{"post":{"tags":["Account Risk: Email Risk"],"summary":"Check up to 100 email addresses in one call","description":"Body: emails (1 to 100 addresses), optional check_dns and remember (as on /v1/email/check). Returns count, assessments_used, flagged and results: one {email, result} per address, where result is the same object /v1/email/check returns. Each valid address is one assessment; the call is refused (429) when the list is longer than the assessments left this month.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/EmailBatchRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCheckBatch"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"account-risk","x-signet-part":"Email Risk","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/v1/promo/check":{"post":{"tags":["Account Risk: Promo Guard"],"summary":"Has this person already used this promotion?","description":"Signet Promo Guard. Body: campaign (your name for the coupon, bonus, referral reward or trial) and at least one of session_id, account_id, email, payment_hash; optional code (the code the person typed, compared with your decoys), limit (uses per person, default 1), redeem (true records this use; default false only looks) and value (what the promotion is worth, for the savings report). Returns eligible, recommendation (allow, review, block), a summary, reason_codes (PROMO_DEVICE_REUSED, PROMO_LINKED_DEVICE_REUSED, PROMO_MAILBOX_REUSED, PROMO_CARD_REUSED, PROMO_ACCOUNT_REUSED, PROMO_NETWORK_BURST, PROMO_DISPOSABLE_EMAIL, PROMO_EMAIL_INVALID, PROMO_DEVICE_NOT_DISTINGUISHABLE, PROMO_DECOY_CODE), prior_redemptions, matches (by device, linked_device, mailbox, card, account) and redemption_id when recorded. One call is one assessment. Test keys: a campaign containing block or review, or a code containing decoy, gives that answer.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PromoCheckRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoCheckResult"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"account-risk","x-signet-part":"Promo Guard","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/v1/promo/redemptions/{id}":{"delete":{"tags":["Account Risk: Promo Guard"],"summary":"Undo a redemption (the order was canceled or refunded)","parameters":[{"name":"id","in":"path","required":true,"schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":"integer","format":"int64"}}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"account-risk","x-signet-part":"Promo Guard"}},"/v1/decoys":{"get":{"tags":["Account Risk: Promo Guard"],"summary":"Your decoys and how often each was touched","description":"Signet Decoys. Returns data (id, kind, label, hits, last_hit_at, created_at), cap and auto_deny_days. Values are never returned. Free on every plan. Test keys get one sample decoy.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecoyList"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"account-risk","x-signet-part":"Promo Guard"},"post":{"tags":["Account Risk: Promo Guard"],"summary":"Create a decoy code or a decoy account","description":"Body: kind (promo_code or account), value (your own code or username; leave it out for a promo_code and one is generated), like (one of your codes, to copy its shape) and label. The value is returned once. A decoy code sent to /v1/promo/check as code answers block with PROMO_DECOY_CODE; an assessment whose account_id is a decoy account carries ACCOUNT_DECOY_USED and is denied. Each hit sends the decoy.hit webhook. Up to 200 active decoys. Free on every plan. Test keys store nothing.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CreateDecoyRequest"}]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecoyCreated"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"account-risk","x-signet-part":"Promo Guard","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/v1/decoys/{id}":{"delete":{"tags":["Account Risk: Promo Guard"],"summary":"Turn a decoy off","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"account-risk","x-signet-part":"Promo Guard"}},"/v1/url/check":{"post":{"tags":["Account Risk: Link Risk"],"summary":"Is this link safe to show, send or pay out to?","description":"Signet Link Risk. Body: url (the link as the person submitted it, up to 2048 characters; a missing scheme is read as http://) and optional session_id (the Signet session of the browser or app that submitted it). Returns check_id, decision (allow, review, deny), risk_score 0-100, reason_codes and reasons, and link: valid, url (one standard form), scheme, host, unicode_host, registrable_domain, https, known_malicious (on a list of known phishing or malware links), lookalike_of (the official domain of a brand it imitates), punycode, homograph, ip_host, private_address, shortener, free_hosting, suspicious_tld, credentials_in_url, redirects_to, executable_download, obfuscated, domain_age_days (days since the site\u0027s domain was registered, null when not known), newly_registered and network_reported (other businesses in the fraud network reported the link or its site; only for accounts in the network). Reason codes: LINK_KNOWN_MALICIOUS, LINK_NETWORK_REPORTED, LINK_HOMOGRAPH, LINK_LOOKALIKE_DOMAIN, LINK_BRAND_IMPERSONATION, LINK_BRAND_IN_PATH, LINK_MIXED_SCRIPT, LINK_CREDENTIALS_IN_URL, LINK_UNSAFE_SCHEME, LINK_IP_HOST, LINK_PRIVATE_ADDRESS, LINK_EXECUTABLE_DOWNLOAD, LINK_EMBEDDED_REDIRECT, LINK_SHORTENER, LINK_OBFUSCATED, LINK_NEW_DOMAIN, LINK_SUSPICIOUS_TLD, LINK_FREE_HOSTING, LINK_DEEP_SUBDOMAINS, LINK_NONSTANDARD_PORT, LINK_DEVICE_HIGH_RISK, LINK_DEVICE_ELEVATED_RISK, LINK_INVALID. Nothing about the link is stored. One valid link counts as one assessment. Test keys: https://link-test.example/allow, /review and /deny give allow, review and deny; any other link is checked as it would be live.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/LinkCheckRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkCheckResult"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"account-risk","x-signet-part":"Link Risk","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/v1/url/check/batch":{"post":{"tags":["Account Risk: Link Risk"],"summary":"Check up to 100 links in one call","description":"Body: urls (1 to 100 links) and optional session_id, as on /v1/url/check. Returns count, assessments_used, flagged and results: one {url, result} per link, where result is the same object /v1/url/check returns. Each valid link is one assessment; the call is refused (429) when the list has more valid links than the assessments left this month.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/LinkBatchRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkCheckBatch"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"account-risk","x-signet-part":"Link Risk","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/v1/url/report":{"post":{"tags":["Account Risk: Link Risk"],"summary":"Report a link you found to be malicious","description":"Shares your finding with the other businesses in Signet\u0027s fraud network (Growth and Scale plans, consortium_enabled on /v1/privacy). Body: url, optional malicious (true by default; false withdraws your earlier report) and scope (site, the default: the whole site is malicious; link: only this exact link). Signet keeps only a one-way keyed hash of the site or link, never the link itself, and a report counts for 90 days. A reported link or site can come back with network_reported true and LINK_NETWORK_REPORTED for other accounts in the network. Big shared platforms (well-known sites, shorteners, free hosting) can only be reported link by link. Free: reports use no assessments. 403 network_not_enabled when your account is not in the network.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/LinkReportRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkReported"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"account-risk","x-signet-part":"Link Risk","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}}},"components":{"schemas":{"ApiError":{"required":["error","message"],"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"param":{"type":["null","string"],"description":"The request field the error is about, such as \u0060amount\u0060 or \u0060items[0].qty\u0060. Left out when no one field is to blame."},"request_id":{"type":["null","string"],"description":"The id of the request, the same as its \u0060X-Request-Id\u0060 header."}},"description":"The body of every API error: a stable \u0060error\u0060 code, a \u0060message\u0060 for the developer, the field it is about (\u0060param\u0060,\nwhen there is one) and the \u0060request_id\u0060 also sent as \u0060X-Request-Id\u0060, to quote to support."},"CreateDecoyRequest":{"type":"object","properties":{"kind":{"type":["null","string"]},"value":{"type":["null","string"]},"like":{"type":["null","string"]},"label":{"type":["null","string"]}}},"DecoyCreated":{"required":["id","kind","value","label","created_at"],"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"value":{"type":"string"},"label":{"type":["null","string"]},"created_at":{"type":"string","format":"date-time"},"test_mode":{"type":"boolean","default":false}}},"DecoyList":{"required":["data","cap","auto_deny_days","auto_deny_available"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DecoyView"}},"cap":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"How many active decoys an account can have.","format":"int32"},"auto_deny_days":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"Days a device stays on the deny list after touching a decoy; 0 is off.","format":"int32"},"auto_deny_available":{"type":"boolean","description":"Your plan includes allow and deny lists, which the automatic deny needs."}},"description":"Your decoys and how often each was touched. Values are never returned."},"DecoyView":{"required":["id","kind","label","hits","last_hit_at","created_at","active"],"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"label":{"type":["null","string"]},"hits":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"last_hit_at":{"type":["null","string"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"active":{"type":"boolean"}}},"EmailAddressInfo":{"required":["role_account","plus_tag","dots_ignored","alias_domain","is_variant","gibberish_score"],"type":"object","properties":{"role_account":{"type":"boolean"},"plus_tag":{"type":"boolean"},"dots_ignored":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"alias_domain":{"type":"boolean"},"is_variant":{"type":"boolean"},"gibberish_score":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?(?:[eE][\u002B-]?\\d\u002B)?$","type":["number","string"],"format":"double"}}},"EmailBatchRequest":{"type":"object","properties":{"emails":{"type":["null","array"],"items":{"type":"string"}},"check_dns":{"type":["null","boolean"]},"remember":{"type":["null","boolean"]}}},"EmailCheckBatch":{"required":["count","results"],"type":"object","properties":{"count":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"How many addresses were checked (fewer than sent when the allowance ran out part way).","format":"int32"},"results":{"type":"array","items":{"$ref":"#/components/schemas/EmailCheckBatchItem"}},"assessments_used":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"description":"Assessments used: one per valid address.","format":"int32"},"flagged":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"description":"Addresses whose recommendation was not allow.","format":"int32"},"test_mode":{"type":["null","boolean"],"description":"True with a test key."}},"description":"The result of an email batch: one entry per address, in the order sent. A test key answers count, results and test_mode only."},"EmailCheckBatchItem":{"required":["email","result"],"type":"object","properties":{"email":{"type":"string"},"result":{"$ref":"#/components/schemas/EmailCheckResult"}},"description":"One address of an email batch and the same result /v1/email/check returns for it."},"EmailCheckRequest":{"type":"object","properties":{"email":{"type":["null","string"]},"session_id":{"type":["null","string"]},"check_dns":{"type":["null","boolean"]},"remember":{"type":["null","boolean"]}}},"EmailCheckResult":{"required":["valid","risk_score","recommendation","summary","reason_codes","reasons","email_hash","mailbox_hash","domain","address","history"],"type":"object","properties":{"valid":{"type":"boolean"},"risk_score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"recommendation":{"type":"string"},"summary":{"type":"string"},"reason_codes":{"type":"array","items":{"type":"string"}},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/EmailReason"}},"email_hash":{"type":["null","string"]},"mailbox_hash":{"type":["null","string"]},"domain":{"$ref":"#/components/schemas/EmailDomainInfo"},"address":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/EmailAddressInfo"}]},"history":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/EmailHistory"}]},"visitor_id":{"type":["null","string"]},"test_mode":{"type":"boolean","default":false}}},"EmailDomainInfo":{"required":["name","disposable","free_provider","privacy_relay","has_mx","exists","dns","did_you_mean"],"type":"object","properties":{"name":{"type":["null","string"]},"disposable":{"type":"boolean"},"free_provider":{"type":"boolean"},"privacy_relay":{"type":"boolean"},"has_mx":{"type":["null","boolean"]},"exists":{"type":["null","boolean"]},"dns":{"type":"string"},"did_you_mean":{"type":["null","string"]},"age_days":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"}}},"EmailHistory":{"required":["first_seen","times_seen","variants_seen","emails_on_device_7d"],"type":"object","properties":{"first_seen":{"type":["null","string"],"format":"date-time"},"times_seen":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"variants_seen":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"emails_on_device_7d":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"}}},"EmailReason":{"required":["code","description","score"],"type":"object","properties":{"code":{"type":"string"},"description":{"type":"string"},"score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}},"LinkBatchRequest":{"type":"object","properties":{"urls":{"type":["null","array"],"items":{"type":"string"}},"session_id":{"type":["null","string"]}}},"LinkCheckBatch":{"required":["count","results"],"type":"object","properties":{"count":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"How many links were checked (fewer than sent when the allowance ran out part way).","format":"int32"},"results":{"type":"array","items":{"$ref":"#/components/schemas/LinkCheckBatchItem"}},"assessments_used":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"description":"Assessments used: one per valid link.","format":"int32"},"flagged":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"description":"Links whose decision was not allow.","format":"int32"},"test":{"type":["null","boolean"],"description":"True with a test key."}},"description":"The result of a link batch: one entry per link, in the order sent. A test key answers count, results and test only."},"LinkCheckBatchItem":{"required":["url","result"],"type":"object","properties":{"url":{"type":"string"},"result":{"$ref":"#/components/schemas/LinkCheckResult"}},"description":"One link of a link batch and the same result /v1/url/check returns for it."},"LinkCheckRequest":{"type":"object","properties":{"url":{"type":["null","string"]},"session_id":{"type":["null","string"]}}},"LinkCheckResult":{"required":["check_id","decision","risk_score","reason_codes","reasons","link"],"type":"object","properties":{"check_id":{"type":"string"},"decision":{"type":"string"},"risk_score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"reason_codes":{"type":"array","items":{"type":"string"}},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/RiskReasonOut"}},"link":{"$ref":"#/components/schemas/LinkInfo"},"test":{"type":"boolean","default":false}}},"LinkInfo":{"required":["valid","url","scheme","host","unicode_host","registrable_domain","https","known_malicious","lookalike_of","punycode","homograph","ip_host","private_address","shortener","free_hosting","suspicious_tld","credentials_in_url","redirects_to","executable_download","obfuscated"],"type":"object","properties":{"valid":{"type":"boolean"},"url":{"type":["null","string"]},"scheme":{"type":["null","string"]},"host":{"type":["null","string"]},"unicode_host":{"type":["null","string"]},"registrable_domain":{"type":["null","string"]},"https":{"type":"boolean"},"known_malicious":{"type":"boolean"},"lookalike_of":{"type":["null","string"]},"punycode":{"type":"boolean"},"homograph":{"type":"boolean"},"ip_host":{"type":"boolean"},"private_address":{"type":"boolean"},"shortener":{"type":"boolean"},"free_hosting":{"type":"boolean"},"suspicious_tld":{"type":"boolean"},"credentials_in_url":{"type":"boolean"},"redirects_to":{"type":["null","string"]},"executable_download":{"type":"boolean"},"obfuscated":{"type":"boolean"},"domain_age_days":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"newly_registered":{"type":"boolean","default":false},"network_reported":{"type":"boolean","default":false}}},"LinkReportRequest":{"type":"object","properties":{"url":{"type":["null","string"]},"malicious":{"type":["null","boolean"]},"scope":{"type":["null","string"]}}},"LinkReported":{"required":["reported","withdrawn","scope","host"],"type":"object","properties":{"reported":{"type":"boolean"},"withdrawn":{"type":"boolean"},"scope":{"type":"string","description":"site (the whole site) or link (only this exact link)."},"host":{"type":["null","string"],"description":"The site the report is about. Not sent with a test key."},"test":{"type":["null","boolean"],"description":"True with a test key; nothing was shared."}},"description":"Your link report as recorded: reported, or withdrawn when you sent malicious false."},"PhoneCheckRequest":{"type":"object","properties":{"phone":{"type":["null","string"]},"country":{"type":["null","string"]},"session_id":{"type":["null","string"]},"account_id":{"type":["null","string"]}}},"PhoneCheckResult":{"required":["check_id","decision","risk_score","reason_codes","reasons","phone","linked_accounts"],"type":"object","properties":{"check_id":{"type":"string"},"decision":{"type":"string"},"risk_score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"reason_codes":{"type":"array","items":{"type":"string"}},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/RiskReasonOut"}},"phone":{"$ref":"#/components/schemas/PhoneInfo"},"linked_accounts":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"test":{"type":"boolean","default":false}}},"PhoneInfo":{"required":["valid","e164","country","line_type"],"type":"object","properties":{"valid":{"type":"boolean"},"e164":{"type":["null","string"]},"country":{"type":["null","string"]},"line_type":{"type":"string"},"carrier":{"type":["null","string"]},"voip":{"type":"string","default":"unknown"}}},"PromoCheckRequest":{"type":"object","properties":{"campaign":{"type":["null","string"]},"code":{"type":["null","string"]},"session_id":{"type":["null","string"]},"account_id":{"type":["null","string"]},"email":{"type":["null","string"]},"payment_hash":{"type":["null","string"]},"limit":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"redeem":{"type":["null","boolean"]},"value":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?(?:[eE][\u002B-]?\\d\u002B)?$","type":["null","number","string"],"format":"double"}}},"PromoCheckResult":{"required":["campaign","eligible","recommendation","summary","reason_codes","prior_redemptions","limit","matches","recorded","redemption_id","visitor_id"],"type":"object","properties":{"campaign":{"type":"string"},"eligible":{"type":"boolean"},"recommendation":{"type":"string"},"summary":{"type":"string"},"reason_codes":{"type":"array","items":{"type":"string"}},"prior_redemptions":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"limit":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"matches":{"type":"array","items":{"$ref":"#/components/schemas/PromoMatch"}},"recorded":{"type":"boolean"},"redemption_id":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int64"},"visitor_id":{"type":["null","string"]},"test_mode":{"type":"boolean","default":false}}},"PromoMatch":{"required":["by","redemptions","last_at"],"type":"object","properties":{"by":{"type":"string"},"redemptions":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"last_at":{"type":"string","format":"date-time"}}},"RiskReasonOut":{"required":["code","description"],"type":"object","properties":{"code":{"type":"string"},"description":{"type":"string"}}}},"securitySchemes":{"secretKey":{"type":"http","description":"Secret API key (sk_live_...). Server-side only.","scheme":"bearer"},"publicKey":{"type":"apiKey","in":"header","name":"X-Signet-Site-Key","description":"Public site key (pk_live_... or pk_test_...). Safe in a page or an app: it can only send what a device read. Used by the tag and the mobile SDKs."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. 1 to 255 visible ASCII characters, no spaces; a UUID works. A retry with the same key and the same body within 24 hours gets the first answer again, with Idempotent-Replayed: true, and is not run or charged again. The same key with a different request answers 409 idempotency_key_reused; while the first request runs, 409 idempotency_in_progress. Server errors and 401, 402, 403, 408 and 429 answers are not stored, so their retry runs. Live and test keys never share a key.","schema":{"type":"string","maxLength":255}}}},"tags":[{"name":"Account Risk","x-displayName":"Overview","description":"Email addresses, phone numbers, links and promotions.\n\n[Account Risk spec (OpenAPI 3.1)](/openapi/v1/account-risk.json) \u00B7 [Postman collection](/downloads/postman/account-risk.postman_collection.json) \u00B7 [About Account Risk](/account-risk)\n\n#### Example: check an email address\n\n\u0060\u0060\u0060http\nPOST /v1/email/check\nAuthorization: Bearer sk_test_...\nContent-Type: application/json\n\n{\n  \u0022email\u0022: \u0022jordan.rivera@example.com\u0022\n}\n\u0060\u0060\u0060\n\nResponse 200 (shortened)\n\n\u0060\u0060\u0060json\n{\n  \u0022valid\u0022: true,\n  \u0022risk_score\u0022: 0,\n  \u0022recommendation\u0022: \u0022allow\u0022,\n  \u0022summary\u0022: \u0022Allow: an ordinary address with no risk signals.\u0022,\n  \u0022reason_codes\u0022: [],\n  \u0022test_mode\u0022: true\n}\n\u0060\u0060\u0060"},{"name":"Account Risk: Email Risk","x-displayName":"Email Risk","description":"Throwaway inboxes, alias farming and typos"},{"name":"Account Risk: Phone Risk","x-displayName":"Phone Risk","description":"Fake, VoIP and reused phone numbers"},{"name":"Account Risk: Link Risk","x-displayName":"Link Risk","description":"Phishing and malicious links"},{"name":"Account Risk: Promo Guard","x-displayName":"Promo Guard","description":"One coupon, bonus or trial per person"}],"x-tagGroups":[{"name":"Account Risk","tags":["Account Risk","Account Risk: Email Risk","Account Risk: Phone Risk","Account Risk: Link Risk","Account Risk: Promo Guard"]}],"x-signet-products":[{"slug":"account-risk","name":"Account Risk","summary":"Email addresses, phone numbers, links and promotions","page":"/account-risk","spec":"/openapi/v1/account-risk.json","postman":"/downloads/postman/account-risk.postman_collection.json","parts":[{"name":"Email Risk","kind":"server"},{"name":"Phone Risk","kind":"server"},{"name":"Link Risk","kind":"server"},{"name":"Promo Guard","kind":"server"}]}],"x-signet-product":"account-risk"}