{"openapi":"3.1.1","info":{"title":"Signet Sentry API: Device Intelligence","description":"Visitor IDs, bots, VPNs and tampering, a human check and trusted devices. 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/tag.js":{"get":{"tags":["Device Intelligence: On the device"],"summary":"The browser tag","description":"Run by your customer\u0027s browser, never by your server. Add \u003Cscript async src=\u0022https://signetsentry.com/v1/tag.js\u0022 data-site-key=\u0022pk_live_...\u0022\u003E\u003C/script\u003E to your pages. Your public site key (pk_live_... or pk_test_...) goes in data-site-key on that script tag; fetching the script itself takes no key. The tag reads the device and sends it to POST /v1/collect with that key. Every form marked data-signet gets a hidden signet_session_id field, and Signet.getSessionId() returns the same id. Your server sends that session_id to POST /v1/assess, or to POST /v1/workflows/{id}/sessions; a device check run without it ends as WORKFLOW_DEVICE_NOT_READ. In an app, the mobile SDKs do what the tag does: https://signetsentry.com/guide/mobile (download: https://signetsentry.com/downloads/signet-mobile-sdks.zip).","responses":{"200":{"description":"OK"}},"x-signet-product":"device-intelligence","x-signet-part":"On the device","x-signet-run-by":"device","security":[]}},"/v1/collect":{"post":{"tags":["Device Intelligence: On the device"],"summary":"Send what the device read","description":"Made by the tag or a mobile SDK from your customer\u0027s browser or app, never by your server. Authenticated with the public key (pk_live_... or pk_test_...) in X-Signet-Site-Key, ?k= or site_key in the body. The browser\u0027s Origin must be one the key lists; a mobile app lists app:your.bundle.id on the key and sends X-Signet-App-Id instead, with platform ios, android or react_native. It answers only a session_id: your server then calls POST /v1/assess or GET /v1/sessions/{session_id} with the secret key. Mobile SDKs: https://signetsentry.com/guide/mobile (download: https://signetsentry.com/downloads/signet-mobile-sdks.zip).","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectResponse"}}}},"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"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"device-intelligence","x-signet-part":"On the device","x-signet-run-by":"device","security":[{"publicKey":[]}]}},"/v1/sessions/{sessionId}":{"get":{"tags":["Device Intelligence: Visitor IDs"],"summary":"Get the risk assessment for a session","description":"Secret key required. Optional query parameters: event_type (LOGIN, ACCOUNT_CREATION, PAYMENT, DETAILS_CHANGE, PASSWORD_RESET, PAGEVIEW, OTHER), account_id, profile (name of a scoring profile; default profile otherwise), ip and user_agent (the end user\u0027s IP and User-Agent as your server saw them).","parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"event_type","in":"query","schema":{"type":"string"}},{"name":"account_id","in":"query","schema":{"type":"string"}},{"name":"profile","in":"query","schema":{"type":"string"}},{"name":"ip","in":"query","schema":{"type":"string"}},{"name":"user_agent","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionAssessment"}}}},"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"}}}},"410":{"description":"Gone","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"device-intelligence","x-signet-part":"Visitor IDs"},"post":{"tags":["Device Intelligence: Visitor IDs"],"summary":"Get the risk assessment for a session (with event context)","description":"Same as GET but accepts a JSON body with event_type, account_id, amount, currency, ip and user_agent. Sessions can be queried for 24 hours after creation.","parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/QueryRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionAssessment"}}}},"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"}}}},"410":{"description":"Gone","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"device-intelligence","x-signet-part":"Visitor IDs"}},"/v1/feedback":{"post":{"tags":["Device Intelligence: Visitor IDs"],"summary":"Report the real-world outcome (fraud or legit) for a session or visitor","description":"Body: session_id, visitor_id or workflow_session_id, label (fraud or legit; a completed workflow session also takes chargeback and confirmed_fraud) and an optional note. Labels improve future decisions for that device on your account only, and feed your accuracy report.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/FeedbackRequest"}]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackRecorded"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"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":"device-intelligence","x-signet-part":"Visitor IDs","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/v1/visitors/{visitorId}":{"get":{"tags":["Device Intelligence: Visitor IDs"],"summary":"Read a visitor: when it was seen, how it was identified, and its last 20 sessions","description":"Secret key required. Your account\u0027s own visitors only; any other id, and an erased visitor, answers 404. answer, confidence_level and recognized_by are from the latest session, as visitor.* in /v1/assess. recent lists the last 20 sessions, newest first; changed names what changed since the session before and was recognized anyway: private_window, storage_cleared, network_changed, browser_version. No score and no decision: ask /v1/assess for those. Reading a visitor uses no credits.","parameters":[{"name":"visitorId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisitorProfile"}}}},"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":"device-intelligence","x-signet-part":"Visitor IDs"},"delete":{"tags":["Device Intelligence: Visitor IDs"],"summary":"Erase a visitor and all linked sessions/feedback (data-subject request)","parameters":[{"name":"visitorId","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":"device-intelligence","x-signet-part":"Visitor IDs"}},"/v1/assess":{"post":{"tags":["Device Intelligence: Visitor IDs"],"summary":"One call: session in, decision \u002B plain-English explanation out","description":"Body: {\u0022session_id\u0022:\u0022s_...\u0022,\u0022event\u0022:\u0022checkout\u0022,\u0022amount\u0022:49.9,\u0022currency\u0022:\u0022USD\u0022,\u0022email\u0022:\u0022buyer@example.com\u0022,\u0022profile\u0022:\u0022checkout\u0022}. Returns risk_score, decision (= action), summary and explanation sentences, reason codes, visitor info and signals. event: checkout|login|signup|password_reset|details_change|pageview. email is hashed (salted per account) and never stored in clear.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/AssessRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionAssessment"}}}},"400":{"description":"Bad Request","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"}}}},"410":{"description":"Gone","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"device-intelligence","x-signet-part":"Visitor IDs","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/v1/shield/verify":{"post":{"tags":["Device Intelligence: Shield"],"summary":"Was this form filled in by a person\u0027s browser?","description":"Signet Shield, an invisible alternative to a CAPTCHA. Send the session id the browser tag put in your form (field signet_session_id) as token. The answer is success (false for a bot or an unusable token), verdict (human, suspicious, bot), bot_likelihood and reason_codes. A token works once and for 10 minutes (max_age_seconds, 30 to 3600). Pass ip and user_agent from your form post to check it came from the same browser. Always answers 200 for a well-formed request; read success.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/ShieldRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShieldResult"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"device-intelligence","x-signet-part":"Shield","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/v1/accounts/{accountId}/devices":{"get":{"tags":["Device Intelligence: Trusted Devices"],"summary":"The devices an account trusts (and the ones it revoked)","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustedDeviceList"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"device-intelligence","x-signet-part":"Trusted Devices"},"post":{"tags":["Device Intelligence: Trusted Devices"],"summary":"Trust the browser of a session for an account","description":"Call this after the person has proved who they are on this browser (for example password plus a one-time code). Body: session_id, optional label.","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TrustDeviceRequest"}]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustedDeviceView"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"device-intelligence","x-signet-part":"Trusted Devices"},"delete":{"tags":["Device Intelligence: Trusted Devices"],"summary":"Revoke every trusted device of an account (after a password reset or a suspected takeover)","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicesRevoked"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"device-intelligence","x-signet-part":"Trusted Devices"}},"/v1/accounts/{accountId}/devices/check":{"post":{"tags":["Device Intelligence: Trusted Devices"],"summary":"Is this browser one the account trusts?","description":"Body: session_id. Answers trusted, recommendation (allow, step_up, enroll) and reason (trusted_device, new_device, revoked_device, no_trusted_devices). A trusted answer also carries strength: key (the browser proved its device key), passkey (a device-bound passkey, with the person\u0027s fingerprint, face or PIN), token or visitor. With passkeys on, passkeys says how many the account has and passkey what one of them proved in this session: key or passkey_synced. An account with trusted devices that appears on another one also triggers the account.new_device webhook.","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TrustDeviceRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceCheck"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"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":"device-intelligence","x-signet-part":"Trusted Devices"}},"/v1/accounts/{accountId}/devices/{deviceId}":{"delete":{"tags":["Device Intelligence: Trusted Devices"],"summary":"Revoke one trusted device","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"deviceId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"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":"device-intelligence","x-signet-part":"Trusted Devices"}},"/v1/accounts/{accountId}/passkeys":{"get":{"tags":["Device Intelligence: Trusted Devices"],"summary":"An account\u0027s passkeys (and the ones it revoked)","description":"Most recently used first. binding: key (it cannot leave the device it was made on) or passkey_synced (the platform may copy it to the person\u0027s other devices, so it says who, not which device). Free. Test keys get a fixed answer and store nothing.","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyList"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"device-intelligence","x-signet-part":"Trusted Devices"},"post":{"tags":["Device Intelligence: Trusted Devices"],"summary":"Store a new passkey and trust the browser it was made in","description":"Call this after the person has proved who they are on this browser. Body: session_id, credential (what Signet.passkey.create gave the page), optional label. Answers the passkey; read binding. Refusals are 400 passkey_\u003Creason\u003E: challenge_invalid, challenge_expired, challenge_used, origin_mismatch, cross_origin, rp_id_mismatch, user_not_verified, other_device, unsupported, signature_invalid, malformed. 409 passkey_exists, too_many_passkeys, too_many_devices. Free. Test keys get a fixed answer and store nothing.","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PasskeyResponseRequest"}]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyView"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"410":{"description":"Gone","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"device-intelligence","x-signet-part":"Trusted Devices"},"delete":{"tags":["Device Intelligence: Trusted Devices"],"summary":"Revoke every passkey of an account","description":"Answers revoked, how many there were. Revoking every trusted device of the account does this too. Free. Test keys revoke nothing.","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeysRevoked"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"device-intelligence","x-signet-part":"Trusted Devices"}},"/v1/accounts/{accountId}/passkeys/options":{"post":{"tags":["Device Intelligence: Trusted Devices"],"summary":"What a page needs to show the passkey prompt","description":"Body: session_id, purpose (create or get), user_name (create only: what the prompt calls the person; not stored). Give options to Signet.passkey.create or Signet.passkey.get in the page, unchanged, after a click. Good once, for five minutes, for this session and account. Ask for create only after the person has proved who they are. Errors: 409 passkeys_off, no_passkeys, too_many_passkeys; 404 session_not_found; 410 session_expired. Free. Test keys get a fixed answer and store nothing.","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PasskeyOptionsRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyOptions"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"410":{"description":"Gone","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"device-intelligence","x-signet-part":"Trusted Devices"}},"/v1/accounts/{accountId}/passkeys/check":{"post":{"tags":["Device Intelligence: Trusted Devices"],"summary":"Did the person use a passkey of this account?","description":"Body: session_id, credential (what Signet.passkey.get gave the page). Answers verified and reason: verified, challenge_invalid, challenge_expired, challenge_used, unknown_credential, revoked, origin_mismatch, cross_origin, rp_id_mismatch, user_not_present, user_not_verified, signature_invalid, counter_regression (a copy of the passkey may be in use), backup_changed, other_device, wrong_type or malformed. When verified, binding is key (this device: the session\u0027s binding becomes key and the devices check answers strength passkey) or passkey_synced (the person, not the device: treat it as a second factor, then trust the device). Free. Test keys: test_allow, test_review (synced) and test_deny (counter_regression) as session_id.","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PasskeyResponseRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyCheck"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"410":{"description":"Gone","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"device-intelligence","x-signet-part":"Trusted Devices"}},"/v1/accounts/{accountId}/passkeys/{passkeyId}":{"delete":{"tags":["Device Intelligence: Trusted Devices"],"summary":"Revoke one passkey","description":"It is refused from now on. The person removes the passkey itself in their device or platform account. The device stays trusted by its other means: revoke the device to end that too. Free. Test keys revoke nothing.","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"}},{"name":"passkeyId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"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":"device-intelligence","x-signet-part":"Trusted Devices"}}},"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."},"AssessRequest":{"type":"object","properties":{"session_id":{"type":["null","string"]},"signet_session_id":{"type":["null","string"],"description":"Alias so you can forward the form field as-is."},"profile":{"type":["null","string"]},"event":{"type":["null","string"],"description":"checkout | login | signup | password_reset | details_change | pageview (or any event_type)."},"event_type":{"type":["null","string"]},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?$","type":["null","number","string"],"format":"double"},"currency":{"type":["null","string"]},"email":{"type":["null","string"],"description":"Optional. Never stored in clear: it is turned into a salted hash and used as the account id for velocity rules."},"account_id":{"type":["null","string"]},"payment_hash":{"type":["null","string"]},"transaction_id":{"type":["null","string"],"description":"Optional: your own order or charge reference. Kept with the payment record so Signet Dispute Evidence can find it."},"receipt_id":{"type":["null","string"],"description":"Optional, payments only: the receipt the browser signed for this order (Signet.receipt). Kept as dispute evidence when it matches the session, amount and currency."},"ip":{"type":["null","string"],"description":"Optional: the end user\u0027s IP and User-Agent as your server saw them, to check the session is used by the browser that created it."},"user_agent":{"type":["null","string"]}}},"BotInfo":{"required":["likelihood"],"type":"object","properties":{"likelihood":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?(?:[eE][\u002B-]?\\d\u002B)?$","type":["number","string"],"format":"double"}}},"CallUsage":{"required":["credits"],"type":"object","properties":{"credits":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int64"}}},"CollectResponse":{"required":["session_id","updated"],"type":"object","properties":{"session_id":{"type":"string"},"updated":{"type":"boolean"},"update_token":{"type":["null","string"],"description":"For a new session: send it back with session_id on later behavior updates (the tag does)."},"attestation":{"type":["null","string"],"description":"Mobile only, when the account has attestation on: verified | failed | missing | not_configured. The iOS SDK\n    keeps an App Attest key only once the server has verified it, and starts over with a new key when an assertion is rejected."},"key":{"type":["null","string"],"description":"When an update carried a device key: registered | refused."}}},"DeviceCheck":{"required":["trusted","recommendation","reason","device","trusted_device_count"],"type":"object","properties":{"trusted":{"type":"boolean"},"recommendation":{"type":"string"},"reason":{"type":"string"},"device":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TrustedDeviceView"}]},"trusted_device_count":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"visitor_id":{"type":["null","string"]},"strength":{"type":["null","string"]},"passkey":{"type":["null","string"]},"passkeys":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32","default":0}}},"DevicesRevoked":{"required":["revoked"],"type":"object","properties":{"revoked":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}},"description":"How many trusted devices were revoked."},"FeedbackRecorded":{"type":"object","properties":{"id":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"description":"The feedback entry\u0027s id (session or visitor feedback).","format":"int64"},"visitor_id":{"type":["null","string"],"description":"The visitor the feedback was recorded against (session or visitor feedback)."},"workflow_session_id":{"type":["null","string"],"description":"The workflow session the outcome was recorded on (workflow feedback)."},"session_id":{"type":["null","string"],"description":"The device session the feedback concerns, when there is one."},"label":{"type":["null","string"],"description":"The label recorded: fraud or legit, and for a workflow session also chargeback or confirmed_fraud."},"created_at":{"type":["null","string"],"description":"When the feedback was recorded.","format":"date-time"},"test_mode":{"type":["null","boolean"],"description":"True when a test key sent it; nothing was stored."},"note":{"type":["null","string"],"description":"With a test key: says nothing was stored."}},"description":"The outcome you reported. For a session or visitor you get id, visitor_id, session_id, label and created_at; for a workflow session you\nget workflow_session_id, session_id, label and created_at. A test key stores nothing and answers test_mode, label, session_id and note."},"FeedbackRequest":{"type":"object","properties":{"session_id":{"type":["null","string"]},"visitor_id":{"type":["null","string"]},"workflow_session_id":{"type":["null","string"]},"label":{"type":["null","string"]},"note":{"type":["null","string"]}}},"IdentityInfo":{"required":["id","device_count","new_devices_24h"],"type":"object","properties":{"id":{"type":"string"},"device_count":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"new_devices_24h":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}},"PasskeyCheck":{"required":["verified","reason","binding","passkey"],"type":"object","properties":{"verified":{"type":"boolean"},"reason":{"type":"string"},"binding":{"type":["null","string"]},"passkey":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PasskeyView"}]},"test_mode":{"type":"boolean","default":false}}},"PasskeyCredential":{"type":"object","properties":{"id":{"type":["null","string"]},"type":{"type":["null","string"]},"authenticatorAttachment":{"type":["null","string"]},"response":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PasskeyCredentialResponse"}]}}},"PasskeyCredentialResponse":{"type":"object","properties":{"clientDataJSON":{"type":["null","string"]},"attestationObject":{"type":["null","string"]},"transports":{"type":["null","array"],"items":{"type":"string"}},"authenticatorData":{"type":["null","string"]},"signature":{"type":["null","string"]},"userHandle":{"type":["null","string"]}}},"PasskeyDescriptor":{"required":["type","id","transports"],"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string"},"transports":{"type":["null","array"],"items":{"type":"string"}}}},"PasskeyList":{"required":["data"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PasskeyView"}}}},"PasskeyOptions":{"required":["purpose","expires_in","options"],"type":"object","properties":{"purpose":{"type":"string"},"expires_in":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"options":{"$ref":"#/components/schemas/PasskeyPublicKey"},"test_mode":{"type":"boolean","default":false}}},"PasskeyOptionsRequest":{"type":"object","properties":{"session_id":{"type":["null","string"]},"purpose":{"type":["null","string"]},"user_name":{"type":["null","string"]}}},"PasskeyParameter":{"required":["type","alg"],"type":"object","properties":{"type":{"type":"string"},"alg":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}},"PasskeyPublicKey":{"required":["challenge","timeout"],"type":"object","properties":{"challenge":{"type":"string"},"timeout":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"rp":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PasskeyRp"}]},"user":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PasskeyUser"}]},"pubKeyCredParams":{"type":["null","array"],"items":{"$ref":"#/components/schemas/PasskeyParameter"}},"excludeCredentials":{"type":["null","array"],"items":{"$ref":"#/components/schemas/PasskeyDescriptor"}},"authenticatorSelection":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PasskeySelection"}]},"attestation":{"type":["null","string"]},"rpId":{"type":["null","string"]},"allowCredentials":{"type":["null","array"],"items":{"$ref":"#/components/schemas/PasskeyDescriptor"}},"userVerification":{"type":["null","string"]},"hints":{"type":["null","array"],"items":{"type":"string"}}}},"PasskeyResponseRequest":{"type":"object","properties":{"session_id":{"type":["null","string"]},"credential":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PasskeyCredential"}]},"label":{"type":["null","string"]}}},"PasskeyRp":{"required":["id","name"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"PasskeySelection":{"required":["authenticatorAttachment","residentKey","requireResidentKey","userVerification"],"type":"object","properties":{"authenticatorAttachment":{"type":"string"},"residentKey":{"type":"string"},"requireResidentKey":{"type":"boolean"},"userVerification":{"type":"string"}}},"PasskeyUser":{"required":["id","name","displayName"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"displayName":{"type":"string"}}},"PasskeyView":{"required":["id","account_id","label","binding","rp_id","device_id","created_at","last_used_at","revoked_at"],"type":"object","properties":{"id":{"type":"string"},"account_id":{"type":"string"},"label":{"type":["null","string"]},"binding":{"type":"string"},"rp_id":{"type":"string"},"device_id":{"type":["null","string"]},"created_at":{"type":"string","format":"date-time"},"last_used_at":{"type":"string","format":"date-time"},"revoked_at":{"type":["null","string"],"format":"date-time"},"test_mode":{"type":"boolean","default":false}}},"PasskeysRevoked":{"required":["revoked"],"type":"object","properties":{"revoked":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}},"QueryRequest":{"type":"object","properties":{"event_type":{"type":["null","string"]},"account_id":{"type":["null","string"]},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?$","type":["null","number","string"],"format":"double"},"currency":{"type":["null","string"]},"profile":{"type":["null","string"]},"payment_hash":{"type":["null","string"]},"ip":{"type":["null","string"]},"user_agent":{"type":["null","string"]},"transaction_id":{"type":["null","string"]},"receipt_id":{"type":["null","string"]}}},"ReasonDetail":{"required":["code","description","score","rule_id"],"type":"object","properties":{"code":{"type":"string"},"description":{"type":"string"},"score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"rule_id":{"type":"string"}}},"SessionAssessment":{"required":["session_id","visitor_id","event_type","risk_score","decision","reason_codes","reasons","visitor","signals","session_created_at","evaluated_at"],"type":"object","properties":{"session_id":{"type":"string"},"visitor_id":{"type":"string"},"event_type":{"type":"string"},"risk_score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"decision":{"type":"string"},"reason_codes":{"type":"array","items":{"type":"string"}},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ReasonDetail"}},"visitor":{"$ref":"#/components/schemas/VisitorInfo"},"signals":{"type":"object","additionalProperties":{"type":"object"}},"session_created_at":{"type":"string","format":"date-time"},"evaluated_at":{"type":"string","format":"date-time"},"profile":{"type":"string","default":"default"},"thresholds":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Thresholds"}]},"summary":{"type":["null","string"]},"explanation":{"type":["null","array"],"items":{"type":"string"}},"test_mode":{"type":"boolean","default":false},"bot":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/BotInfo"}]},"identity":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/IdentityInfo"}]},"smart_signals":{"type":["null","object"],"additionalProperties":{"$ref":"#/components/schemas/SmartSignal"}},"assessment_id":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int64"},"usage":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CallUsage"}]}}},"ShieldRequest":{"type":"object","properties":{"token":{"type":["null","string"]},"ip":{"type":["null","string"]},"user_agent":{"type":["null","string"]},"max_age_seconds":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"}}},"ShieldResult":{"required":["success","verdict","bot_likelihood","reason_codes"],"type":"object","properties":{"success":{"type":"boolean"},"verdict":{"type":["null","string"]},"bot_likelihood":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?(?:[eE][\u002B-]?\\d\u002B)?$","type":["number","string"],"format":"double"},"reason_codes":{"type":"array","items":{"type":"string"}},"error":{"type":["null","string"]},"session_id":{"type":["null","string"]},"visitor_id":{"type":["null","string"]},"solved_at":{"type":["null","string"],"format":"date-time"},"origin":{"type":["null","string"]},"test_mode":{"type":"boolean","default":false}}},"SmartSignal":{"required":["result"],"type":"object","properties":{"result":{},"confidence":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?(?:[eE][\u002B-]?\\d\u002B)?$","type":["null","number","string"],"format":"double"},"evidence":{"type":["null","string"]},"name":{"type":["null","string"]}}},"Thresholds":{"type":"object","properties":{"review":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"deny":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}},"TrustDeviceRequest":{"type":"object","properties":{"session_id":{"type":["null","string"]},"label":{"type":["null","string"]}}},"TrustedDeviceList":{"required":["data"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TrustedDeviceView"}}},"description":"The devices an account trusts, and the ones it revoked (revoked_at set)."},"TrustedDeviceView":{"required":["id","account_id","visitor_id","label","binding","created_at","last_seen_at","revoked_at"],"type":"object","properties":{"id":{"type":"string"},"account_id":{"type":"string"},"visitor_id":{"type":"string"},"label":{"type":["null","string"]},"binding":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"last_seen_at":{"type":"string","format":"date-time"},"revoked_at":{"type":["null","string"],"format":"date-time"}}},"VisitorDevice":{"required":["kind","system","browser"],"type":"object","properties":{"kind":{"type":"string"},"system":{"type":["null","string"]},"browser":{"type":["null","string"]}}},"VisitorInfo":{"required":["first_seen","last_seen","seen_count","is_new","match_type","match_confidence"],"type":"object","properties":{"first_seen":{"type":"string","format":"date-time"},"last_seen":{"type":"string","format":"date-time"},"seen_count":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"is_new":{"type":"boolean"},"match_type":{"type":"string"},"match_confidence":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?(?:[eE][\u002B-]?\\d\u002B)?$","type":["number","string"],"format":"double"},"confidence_level":{"type":"string","default":"high"},"linked_visitor_ids":{"type":["null","array"],"items":{"type":"string"}},"binding":{"type":["null","string"]},"answer":{"type":["null","string"]},"corrected":{"type":"boolean","default":false}}},"VisitorProfile":{"required":["visitor_id","first_seen","last_seen","visits","answer","confidence_level","recognized_by","device","recent"],"type":"object","properties":{"visitor_id":{"type":"string"},"first_seen":{"type":"string","format":"date-time"},"last_seen":{"type":"string","format":"date-time"},"visits":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"answer":{"type":["null","string"]},"confidence_level":{"type":["null","string"]},"recognized_by":{"type":["null","string"]},"device":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/VisitorDevice"}]},"recent":{"type":"array","items":{"$ref":"#/components/schemas/VisitorSession"}}}},"VisitorSession":{"required":["session_id","at","match_type","changed"],"type":"object","properties":{"session_id":{"type":"string"},"at":{"type":"string","format":"date-time"},"match_type":{"type":"string"},"changed":{"type":"array","items":{"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":"Device Intelligence","x-displayName":"Overview","description":"Visitor IDs, bots, VPNs and tampering, a human check and trusted devices.\n\n[Device Intelligence spec (OpenAPI 3.1)](/openapi/v1/device-intelligence.json) \u00B7 [Postman collection](/downloads/postman/device-intelligence.postman_collection.json) \u00B7 [About Device Intelligence](/device-intelligence)\n\n#### Example: assess a session\n\n\u0060\u0060\u0060http\nPOST /v1/assess\nAuthorization: Bearer sk_test_...\nContent-Type: application/json\n\n{\n  \u0022session_id\u0022: \u0022test_allow\u0022,\n  \u0022event\u0022: \u0022signup\u0022,\n  \u0022email\u0022: \u0022jordan.rivera@example.com\u0022\n}\n\u0060\u0060\u0060\n\nResponse 200 (shortened)\n\n\u0060\u0060\u0060json\n{\n  \u0022session_id\u0022: \u0022test_allow\u0022,\n  \u0022visitor_id\u0022: \u0022v_testdevice00000a\u0022,\n  \u0022event_type\u0022: \u0022ACCOUNT_CREATION\u0022,\n  \u0022risk_score\u0022: 5,\n  \u0022decision\u0022: \u0022allow\u0022,\n  \u0022reason_codes\u0022: [\u0022RETURNING_DEVICE\u0022],\n  \u0022test_mode\u0022: true\n}\n\u0060\u0060\u0060"},{"name":"Device Intelligence: On the device","x-displayName":"On the device","description":"What the tag and the mobile SDKs call from your customer\u0027s browser or app, with the public key. Your server never makes these calls: it gets a session_id from them."},{"name":"Device Intelligence: Visitor IDs","x-displayName":"Visitor IDs","description":"Lasting visitor IDs, bot, VPN and tamper detection"},{"name":"Device Intelligence: Shield","x-displayName":"Shield","description":"An invisible human check, in place of a CAPTCHA"},{"name":"Device Intelligence: Trusted Devices","x-displayName":"Trusted Devices","description":"Remember known devices, flag new ones"}],"x-tagGroups":[{"name":"Device Intelligence","tags":["Device Intelligence","Device Intelligence: On the device","Device Intelligence: Visitor IDs","Device Intelligence: Shield","Device Intelligence: Trusted Devices"]}],"x-signet-products":[{"slug":"device-intelligence","name":"Device Intelligence","summary":"Visitor IDs, bots, VPNs and tampering, a human check and trusted devices","page":"/device-intelligence","spec":"/openapi/v1/device-intelligence.json","postman":"/downloads/postman/device-intelligence.postman_collection.json","parts":[{"name":"On the device","kind":"device"},{"name":"Visitor IDs","kind":"server"},{"name":"Shield","kind":"server"},{"name":"Trusted Devices","kind":"server"}]}],"x-signet-product":"device-intelligence"}