{"openapi":"3.1.0","info":{"title":"Nexiel Screen API","description":"Sanctions, PEP, and AML screening for the Nexiel platform (Nexiel Screen).\n\n## Test and live keys\n\nOne API serves both modes, and your API key picks the mode of every\nrequest. A **test key** (client id `nx-test-...`) is available before your\nKYB review is finished: it screens only synthetic `sandbox` list data, is\nnever billed, and its decisions are announced to your sandbox webhook\nendpoints. A **live key** (`nx-live-...`) needs an approved KYB review and\nscreens the live lists by default; asking a live key for `\"mode\":\n\"sandbox\"` is refused with `400 live_key_sandbox_mode` (use a test key).\nA key never reads a decision or a webhook endpoint of the other mode.\n\n## Sandbox mode (default)\n\nThis service starts in **sandbox mode** unless `SCREEN_API_MODE=production`\nis explicitly set. `GET /health` always reports which mode the running\ninstance is in (`\"mode\": \"sandbox\" | \"production\"`).\n\nWhile the service is in sandbox mode:\n\n- Every `POST /v1/screen` request is screened **only** against\n  `source = 'sandbox'` synthetic data. It never sees real sanctions/PEP\n  list data, regardless of what the caller requests.\n- If a caller asks for `\"mode\": \"live\"` anyway, the response's\n  `meta.sandboxOverride` is `true`, so a caller can tell a downgraded\n  sandbox result apart from an actual live one. A sandbox `CLEAR` never\n  looks identical to a live `CLEAR`.\n- No API key is required.\n\nSandbox mode is the default so no caller can reach real screening data\nbefore completing production authorization. That authorization requires a\nfull KYB check: legal entity verification, company registration check,\nUBO/ownership mapping, and screening of the entity and relevant persons.\n\n## Authentication\n\nProduction mode requires a Keycloak-issued OAuth2 client-credentials access\ntoken, presented as a standard `Authorization: Bearer <token>` header. See\nthe `keycloakBearer` security scheme below for details. Sandbox mode (the\ndefault) requires no authentication at all.\n\n## Wallet risk scoring (preview)\n\n`POST /v1/wallet-risk/score` is a preview. It is not a billed, generally\navailable product, and there is no pricing tier for it yet, so use it to\nevaluate wallet risk rather than as a production dependency. It scores\naddresses using GraphSense TagPacks attribution data. See that route's\ndescription for its full scope: no exposure or clustering analysis, no\nChainalysis, TRM, or Elliptic-equivalent coverage, and an untagged result\nmeans \"no evidence found,\" never \"safe.\" Sandbox mode uses a small, clearly\nfake synthetic fixture set that runs through the real scoring formula and\nthresholds without touching real ingested data.","version":"0.1.0"},"components":{"securitySchemes":{"keycloakBearer":{"type":"oauth2","description":"Real Keycloak-backed authentication, enforced only while the service runs\nwith `SCREEN_API_MODE=production` (a no-op in sandbox mode). Each API key\nis its own Keycloak client-credentials client. The resulting access token is\nvalidated per request via RFC 7662 introspection against Keycloak, not\nlocal JWT/JWKS verification, so revoking a key takes effect immediately,\neven for a still-time-valid token. Tokens must carry the `screen-api`\naudience and the `screen-api-client` realm role.","flows":{"clientCredentials":{"tokenUrl":"https://auth.nexiel.io/realms/nexiel/protocol/openid-connect/token","scopes":{}}}}},"schemas":{"Error":{"type":"object","description":"The error envelope every Nexiel API returns. Every error Nexiel sends carries `type`, `docUrl` and `requestId`; they are not marked required so that a client never fails to parse an error relayed by an intermediary that lacks them. Every code is documented at https://nexiel.eu/docs/errors.","required":["error","message"],"properties":{"error":{"type":"string","description":"Stable, machine-readable error code."},"message":{"type":"string","description":"Human-readable explanation. May change; never parse it."},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","idempotency_error","configuration_error","wallet_error","api_error"],"description":"The class of error; branch on this first, then on `error`."},"param":{"type":"string","description":"The request field the error is about, as a dotted path, when one can be named."},"docUrl":{"type":"string","format":"uri","description":"Documentation for this error code."},"requestId":{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"The id of this request, also in the Request-Id header."},"retryAfterSeconds":{"type":"number","description":"Present on retryable errors; the same number as the Retry-After header."}},"additionalProperties":true},"RateLimitError":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","required":["retryAfterSeconds"]}]},"Page":{"type":"object","description":"The envelope of every list. Items are newest first. Pass `nextCursor` as `starting_after` to fetch the next page; it is null on the last page.","required":["data","hasMore","nextCursor"],"properties":{"data":{"type":"array","items":{},"description":"The items of this page."},"hasMore":{"type":"boolean","description":"Whether another page follows this one."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass as `starting_after` to fetch the next page. Null on the last page."}}},"ScreeningDecision":{"title":"ScreeningDecision","description":"One of your own screening decisions as recorded at decision time, with your own review status. It never contains the name, date of birth or nationality you screened.","type":"object","required":["decisionId","createdAt","classification","candidates","wallet","meta","customerReviews","evidencePackStatus"],"properties":{"decisionId":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"classification":{"anyOf":[{"type":"string","enum":["CLEAR"]},{"type":"string","enum":["POSSIBLE_MATCH"]},{"type":"string","enum":["CONFIRMED_MATCH"]}]},"candidates":{"type":"array","items":{"type":"object","required":["entityId","source","listRef","entityType","isPep","pepCategory","pepFunctionalCategory","pepStatus","pepJurisdiction","linkedPeps","matchedVia","score","classification","programs","listedDate","matchedField"],"properties":{"entityId":{"type":"string"},"source":{"type":"string"},"listRef":{"type":"string"},"entityType":{"type":"string"},"isPep":{"type":"boolean"},"pepCategory":{"anyOf":[{"anyOf":[{"type":"string","enum":["PEP"]},{"type":"string","enum":["RCA"]},{"type":"string","enum":["INTERNATIONAL_ORG_PEP"]}]},{"type":"null"}]},"pepFunctionalCategory":{"anyOf":[{"anyOf":[{"type":"string","enum":["HEAD_OF_STATE_OR_GOVERNMENT"]},{"type":"string","enum":["MINISTER_OR_DEPUTY_MINISTER"]},{"type":"string","enum":["PARLIAMENT_MEMBER"]},{"type":"string","enum":["POLITICAL_PARTY_GOVERNING_BODY_MEMBER"]},{"type":"string","enum":["SUPREME_OR_CONSTITUTIONAL_COURT_MEMBER"]},{"type":"string","enum":["COURT_OF_AUDITORS_OR_CENTRAL_BANK_BOARD_MEMBER"]},{"type":"string","enum":["AMBASSADOR_OR_HIGH_RANKING_MILITARY_OFFICER"]},{"type":"string","enum":["STATE_OWNED_ENTERPRISE_BOARD_MEMBER"]},{"type":"string","enum":["INTERNATIONAL_ORG_BOARD_MEMBER"]}]},{"type":"null"}]},"pepStatus":{"anyOf":[{"anyOf":[{"type":"string","enum":["ACTIVE"]},{"type":"string","enum":["FORMER_WITHIN_LOOKBACK"]},{"type":"string","enum":["FORMER_DECAYED"]}]},{"type":"null"}]},"pepJurisdiction":{"anyOf":[{"anyOf":[{"type":"string","enum":["DOMESTIC"]},{"type":"string","enum":["FOREIGN"]},{"type":"string","enum":["INTERNATIONAL"]},{"type":"string","enum":["UNKNOWN"]}]},{"type":"null"}]},"linkedPeps":{"type":"array","items":{"type":"object","required":["entityId","primaryName","pepCategory","relationshipSchema","relationshipLabel"],"properties":{"entityId":{"type":"string"},"primaryName":{"type":"string"},"pepCategory":{"anyOf":[{"type":"string","enum":["PEP"]},{"type":"string","enum":["RCA"]},{"type":"string","enum":["INTERNATIONAL_ORG_PEP"]}]},"relationshipSchema":{"anyOf":[{"type":"string","enum":["Family"]},{"type":"string","enum":["Associate"]},{"type":"string","enum":["UnknownLink"]}]},"relationshipLabel":{"description":"Raw, verbatim source text (for example \"spouse\" or \"father\", in whatever language the source dataset used), never normalized or translated. Null for an UnknownLink relationship, which carries no label.","anyOf":[{"type":"string"},{"type":"null"}]}}}},"matchedVia":{"type":"array","items":{"type":"string"}},"score":{"type":"number"},"classification":{"anyOf":[{"type":"string","enum":["CLEAR"]},{"type":"string","enum":["POSSIBLE_MATCH"]},{"type":"string","enum":["CONFIRMED_MATCH"]}]},"programs":{"type":"array","items":{"type":"string"}},"listedDate":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchedField":{"anyOf":[{"anyOf":[{"type":"string","enum":["primary_name"]},{"type":"string","enum":["alias"]},{"type":"string","enum":["weak_alias"]}]},{"type":"null"}]}}}},"wallet":{"type":"object","required":["classification","checkedAddressCount","matches"],"properties":{"classification":{"anyOf":[{"type":"string","enum":["CLEAR"]},{"type":"string","enum":["CONFIRMED_MATCH"]}]},"checkedAddressCount":{"type":"number"},"matches":{"type":"array","items":{"type":"object","required":["walletRowId","source","listRef","entityName","entityType","ticker","programs"],"properties":{"walletRowId":{"type":"string"},"source":{"type":"string"},"listRef":{"type":"string"},"entityName":{"type":"string"},"entityType":{"type":"string"},"ticker":{"type":"string"},"programs":{"type":"array","items":{"type":"string"}}}}}}},"meta":{"type":"object","required":["mode","sandboxOverride","humanReviewRequired","engineVersion","gatesHash","ensembleWeightsHash","listSnapshotIds","listCoverage","coreListCoverage"],"properties":{"mode":{"anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["live"]},{"type":"null"}]},"sandboxOverride":{"type":"boolean"},"humanReviewRequired":{"type":"boolean"},"engineVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"gatesHash":{"anyOf":[{"type":"string"},{"type":"null"}]},"ensembleWeightsHash":{"anyOf":[{"type":"string"},{"type":"null"}]},"listSnapshotIds":{"type":"array","items":{"type":"string"}},"listCoverage":{"type":"array","items":{"type":"object","required":["listSnapshotId","source","rejectedRecordCount"],"properties":{"listSnapshotId":{"description":"One of meta.listSnapshotIds.","type":"string"},"source":{"description":"The list that data-refresh run loaded, e.g. \"un-consolidated\".","type":"string"},"rejectedRecordCount":{"minimum":0,"description":"Records in that source file that could not be read and were therefore not loaded by that run (at most 1% of the list, and a run above that is not used at all). Records already loaded from an earlier run stay screenable. 0 when every record was loaded.","type":"integer"}}}},"coreListCoverage":{"anyOf":[{"description":"The core sanctions and PEP lists this decision depended on, and whether each was loaded and up to date at decision time. Screening wallet addresses adds the sanctioned wallet address list. `lists` is empty in sandbox mode, where synthetic data is used.","type":"object","required":["complete","checkedAt","lists"],"properties":{"complete":{"description":"True when every list in `lists` was OK.","type":"boolean"},"checkedAt":{"format":"date-time","type":"string"},"lists":{"type":"array","items":{"type":"object","required":["source","kind","status","listSnapshotId","lastSuccessAt","maxHoursSinceSuccess"],"properties":{"source":{"description":"The list, e.g. \"un-consolidated\", \"opensanctions-pep\", \"ofac-sdn-crypto\".","type":"string"},"kind":{"anyOf":[{"type":"string","enum":["sanctions"]},{"type":"string","enum":["pep"]}]},"status":{"description":"`OK`: loaded and refreshed within its freshness window. `MISSING`: never loaded, or no current entries. `STALE`: not refreshed within its window.","anyOf":[{"type":"string","enum":["OK"]},{"type":"string","enum":["MISSING"]},{"type":"string","enum":["STALE"]}]},"listSnapshotId":{"description":"The data-refresh run of this list that was in force, or null when none.","anyOf":[{"type":"string"},{"type":"null"}]},"lastSuccessAt":{"description":"When that run completed.","anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"maxHoursSinceSuccess":{"minimum":1,"description":"This list's freshness window in hours.","type":"integer"}}}}}},{"type":"null"}]}}},"customerReviews":{"type":"array","items":{"type":"object","required":["decision","notes","notesSha256","notesLength","reviewer","reviewedAt"],"properties":{"decision":{"anyOf":[{"type":"string","enum":["confirmed_match"]},{"type":"string","enum":["false_positive"]},{"type":"string","enum":["escalated"]}]},"notes":{"description":"Always null for reviews recorded from 19 November 2026: Nexiel no longer stores notes text. Present only on older reviews.","anyOf":[{"type":"string"},{"type":"null"}]},"notesSha256":{"description":"SHA-256 (hex) of the UTF-8 notes submitted with the review, line endings normalised to LF; null when none were.","anyOf":[{"type":"string"},{"type":"null"}]},"notesLength":{"description":"Length of those notes in Unicode code points; null when none were.","anyOf":[{"type":"integer"},{"type":"null"}]},"reviewer":{"additionalProperties":false,"type":"object","required":["type","userId","reviewerId"],"properties":{"type":{"description":"`dashboard_user`: a signed-in member of your organization in the dashboard. `api_key`: a call with your API key.","anyOf":[{"type":"string","enum":["dashboard_user"]},{"type":"string","enum":["api_key"]}]},"userId":{"description":"The dashboard user's account id (dashboard reviews only).","anyOf":[{"type":"string"},{"type":"null"}]},"reviewerId":{"description":"The `reviewerId` you sent with an API review, if any.","anyOf":[{"type":"string"},{"type":"null"}]}}},"reviewedAt":{"format":"date-time","type":"string"}}}},"evidencePackStatus":{"description":"`no_key_registered`: no evidence-pack key was registered when the decision was made, so no pack exists. `available`: held for you; claim it once with `POST /v1/screen/{decisionId}/evidence-pack/claim` (pull delivery, or push with fallback to pull after every push attempt failed). `pushing`: being posted to your evidence-pack webhook endpoint. `delivered`: you claimed it, or your endpoint acknowledged the push; nothing else counts as delivered. `expired`: Nexiel no longer holds it and has no record of a claim or an acknowledgement (its 7-day lifetime ended, a push under `push` failed, it was erased, or the decision was made before packs were held for a claim).","anyOf":[{"type":"string","enum":["no_key_registered"]},{"type":"string","enum":["available"]},{"type":"string","enum":["pushing"]},{"type":"string","enum":["delivered"]},{"type":"string","enum":["expired"]}]}}},"WebhookEvent":{"title":"WebhookEvent","description":"A platform event: the body of a webhook delivery, and an item of the Events API.","type":"object","required":["id","type","apiVersion","livemode","createdAt","data"],"properties":{"id":{"format":"uuid","description":"Stable, immutable event id: the same id every delivery of this event carries.","type":"string"},"type":{"description":"The event type, from the event catalogue.","type":"string","example":"verify.session.completed"},"apiVersion":{"description":"The API version the event is rendered in.","type":"string","example":"2026-11-19"},"livemode":{"description":"True for a live-mode event, false for test mode.","type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"data":{"additionalProperties":true,"description":"Identifiers, outcomes and hashes only; never personal data.","type":"object","properties":{}}}}},"parameters":{"NexielVersion":{"name":"Nexiel-Version","in":"header","required":false,"description":"The API version this request is written against. Omit it to use the latest (2026-11-19); an unknown version is refused with 400 `invalid_api_version`. Every response states the version it was served in, in the same header.","schema":{"type":"string","enum":["2026-11-19"],"default":"2026-11-19"}},"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"A unique key (8 to 255 characters, a UUID is ideal) that makes a retry safe: a request repeated with the same key returns the first result instead of acting twice. Reusing a key with a different request is refused with 409 `idempotency_key_conflict`.","schema":{"type":"string","minLength":8,"maxLength":255},"example":"4b9e6e2a-df1a-4c3a-9d2a-6a6a6f9e7e10"},"IdempotencyKeyRequired":{"name":"Idempotency-Key","in":"header","required":false,"description":"Required on this operation (8 to 255 characters, a UUID is ideal); a request without it is refused with 400 `idempotency_key_required`. Retrying with the same key returns the same result instead of repeating the action.","schema":{"type":"string","minLength":8,"maxLength":255},"example":"4b9e6e2a-df1a-4c3a-9d2a-6a6a6f9e7e10"}}},"paths":{"/health":{"get":{"operationId":"getHealth","summary":"Liveness / service-mode check","tags":["Health"],"description":"Reports the service-level mode (sandbox by default). This is distinct from a screening request's own mode (see POST /v1/screen). Returns 503 with status \"draining\" during the brief shutdown window between receiving SIGTERM and the process actually exiting, so a load balancer can stop routing new requests to this instance before it stops listening.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["status","mode"],"properties":{"status":{"anyOf":[{"type":"string","enum":["ok"]},{"type":"string","enum":["draining"]}]},"mode":{"anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["production"]}]}}},"example":{"status":"ok","mode":"sandbox"}}}},"503":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["status","mode"],"properties":{"status":{"anyOf":[{"type":"string","enum":["ok"]},{"type":"string","enum":["draining"]}]},"mode":{"anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["production"]}]}}}}}}},"parameters":[{"$ref":"#/components/parameters/NexielVersion"}]}},"/v1/screen/health":{"get":{"operationId":"getScreenHealth","summary":"Liveness / service-mode check under the API prefix","tags":["Health"],"description":"The same check as `GET /health`, served under `/v1/screen`. Reports the service-level mode (sandbox by default). This is distinct from a screening request's own mode (see POST /v1/screen). Returns 503 with status \"draining\" during the brief shutdown window between receiving SIGTERM and the process actually exiting, so a load balancer can stop routing new requests to this instance before it stops listening.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["status","mode"],"properties":{"status":{"anyOf":[{"type":"string","enum":["ok"]},{"type":"string","enum":["draining"]}]},"mode":{"anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["production"]}]}}},"example":{"status":"ok","mode":"sandbox"}}}},"503":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["status","mode"],"properties":{"status":{"anyOf":[{"type":"string","enum":["ok"]},{"type":"string","enum":["draining"]}]},"mode":{"anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["production"]}]}}}}}}},"parameters":[{"$ref":"#/components/parameters/NexielVersion"}]}},"/v1/screen":{"post":{"operationId":"screenName","summary":"Screen a name and/or cryptocurrency wallet addresses against sanctions/PEP data","tags":["Screening"],"description":"Runs the 4-layer hybrid matching engine (exact, full-text, Levenshtein, and phonetic) against `name`, `dob`, and `nationality`. A fifth, AI/vector layer runs in shadow mode only and is not yet used for live decisions. Independently, if `walletAddresses` is supplied, it runs an exact-match lookup against sanctioned cryptocurrency addresses (currently OFAC SDN only, exact list matching only, with no exposure or clustering analysis and no entity attribution beyond what the source list states). The two checks are independent: a request may supply either, both, or neither. The top-level `classification` is the more severe of the two, and `wallet` always reports exactly which addresses were checked and which matched, even when none were supplied. In sandbox mode (the default, see the top-level API description) neither check ever touches real list data.\n\n`meta.humanReviewRequired` is the EU AI Act human-in-the-loop flag for POSSIBLE_MATCH results. Wallet screening never produces POSSIBLE_MATCH: an address match is always CONFIRMED_MATCH, never an ambiguous score.\n\n`Idempotency-Key` is enforced server-side (see the header description). Repeating a key with exactly the same request returns the original response without screening again, and the same key with a different request (including a different set of `walletAddresses`) returns a 409.\n\nIf you have registered an evidence-pack public key and it cannot be used for encryption, the request returns a `422` (`evidence_pack_key_unusable`) and no screening is recorded. Replace the key in the dashboard and retry.\n\nIf too many screening requests for your account arrive at the same moment, a request can return `503` (`screening_busy_retry`) with a `Retry-After` header. Nothing is recorded or billed for that request, so it is safe to retry, with the same `Idempotency-Key` if you sent one.\n\nA live screen depends on the core sanctions lists (OFAC SDN, UN, EU, UK) and the PEP data set being loaded and refreshed within their window (one day for the sanctions lists, two for the PEP data set), and, when `walletAddresses` is supplied, on the sanctioned wallet address list too. If any of them is missing or out of date, the request returns `503` (`screening_list_coverage_incomplete`) with a `Retry-After` header instead of a result: nothing is recorded or billed, and it is safe to retry with the same `Idempotency-Key`. Every result records the lists it depended on and their state in `meta.coreListCoverage`.\n\nAuthenticated (production-mode) requests are rate limited per client with a token bucket. Exceeding the limit returns a `429` with a `Retry-After` header. Every authenticated request is also checked by a per-client anomaly signal, measured against that client's own history, covering three dimensions: request volume (this hour's count against the client's trailing 24-hour baseline), geography (a country never seen before for the client, once at least one other country is on record), and behavior shift (this hour's mix of check kinds against the client's trailing 24-hour mix, measured as total variation distance). Volume is the one signal with an automatic action today: a genuine spike temporarily lowers that client's rate limit for a bounded cooldown, recorded as a `CLIENT_AUTO_THROTTLED` audit event. The cooldown expires on its own and is never a permanent block. Geography and behavior shift are logged for operator review only and, by design, never throttle or block a request, in line with the EU AI Act's human-in-the-loop requirement.\n\nIf your organization has turned on source restrictions, a request returns `403 client_access_restricted`, even with a valid credential, unless its source IP is in one of your allowed IP ranges or its `Origin` header matches one of your allowed domains. IP ranges match IPv4 addresses only. Source restrictions are off by default. Manage them under Organization, Source restrictions in your dashboard (by default, organization Admins and Owners can do this, and saving changes requires an approved KYB application).","requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["name"],"properties":{"name":{"minLength":1,"maxLength":500,"type":"string"},"dob":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"nationality":{"pattern":"^[A-Z]{2}$","type":"string"},"walletAddresses":{"maxItems":20,"description":"Cryptocurrency wallet addresses to screen against sanctioned-address lists (currently OFAC SDN only), exact-match only, in any raw form (mixed-case EIP-55 checksummed hex, bech32, legacy Base58Check, and so on), normalized server-side before comparison. Independent of name, dob, and nationality: a request may supply either, both, or neither.","type":"array","items":{"minLength":1,"maxLength":128,"type":"string"}},"mode":{"description":"Optional. A test key always screens synthetic sandbox data (asking for \"live\" is reported as `meta.sandboxOverride: true`). A live key screens the live lists; asking a live key for \"sandbox\" is refused with `400 live_key_sandbox_mode`, use a test key instead.","anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["live"]}]}}},"examples":{"clearCandidate":{"summary":"A name with no relation to any seeded entity","value":{"name":"Zzqxw Unrelated Nobody"}},"exactMatch":{"summary":"Exact name + DOB + nationality match against a sandbox entity","value":{"name":"Anatoly Sandboxovich Testperson","dob":"1960-01-01","nationality":"RU"}},"possibleMatch":{"summary":"Close name match with a contradicting DOB (fuzzy layers surface it, human review required)","value":{"name":"Anatoly Sandboxovich Testperson","dob":"1999-09-09"}}}}}},"parameters":[{"$ref":"#/components/parameters/NexielVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["classification","candidates","wallet","meta"],"properties":{"classification":{"anyOf":[{"type":"string","enum":["CLEAR"]},{"type":"string","enum":["POSSIBLE_MATCH"]},{"type":"string","enum":["CONFIRMED_MATCH"]}]},"candidates":{"type":"array","items":{"type":"object","required":["entityId","source","listRef","entityType","isPep","pepCategory","pepFunctionalCategory","pepStatus","pepJurisdiction","linkedPeps","matchedVia","classifyResult"],"properties":{"entityId":{"type":"string"},"source":{"type":"string"},"listRef":{"type":"string"},"entityType":{"type":"string"},"isPep":{"type":"boolean"},"pepCategory":{"description":"AMLR Arts 42-46 PEP category (null for a non-PEP/sanctions-only candidate). RCA and INTERNATIONAL_ORG_PEP values are only produced by some data sources today.","anyOf":[{"anyOf":[{"type":"string","enum":["PEP"]},{"type":"string","enum":["RCA"]},{"type":"string","enum":["INTERNATIONAL_ORG_PEP"]}]},{"type":"null"}]},"pepFunctionalCategory":{"description":"AMLR Art. 43 functional PEP category (head of state or government, minister, parliament member, and so on), a finer axis than pepCategory, derived from real source position or title text where available. Purely informational context for enhanced due diligence: it never affects `classification`, the same guarantee as pepStatus and pepJurisdiction. Null whenever the source gave no position or title signal, or the classifier could not confidently place it, an honest \"unclassified\" outcome, never a guess.","anyOf":[{"anyOf":[{"type":"string","enum":["HEAD_OF_STATE_OR_GOVERNMENT"]},{"type":"string","enum":["MINISTER_OR_DEPUTY_MINISTER"]},{"type":"string","enum":["PARLIAMENT_MEMBER"]},{"type":"string","enum":["POLITICAL_PARTY_GOVERNING_BODY_MEMBER"]},{"type":"string","enum":["SUPREME_OR_CONSTITUTIONAL_COURT_MEMBER"]},{"type":"string","enum":["COURT_OF_AUDITORS_OR_CENTRAL_BANK_BOARD_MEMBER"]},{"type":"string","enum":["AMBASSADOR_OR_HIGH_RANKING_MILITARY_OFFICER"]},{"type":"string","enum":["STATE_OWNED_ENTERPRISE_BOARD_MEMBER"]},{"type":"string","enum":["INTERNATIONAL_ORG_BOARD_MEMBER"]}]},{"type":"null"}]},"pepStatus":{"description":"AMLR Art. 45(1)/FATF R.12 informational post-office decay status (FORMER_DECAYED once this PEP record was last seen current 12 or more months ago). Purely informational: it never affects `classification` and never auto-clears or auto-downgrades a match. A human reviewer sees it as risk context alongside the score, exactly like isPep and pepCategory. Null when pepCategory is null.","anyOf":[{"anyOf":[{"type":"string","enum":["ACTIVE"]},{"type":"string","enum":["FORMER_WITHIN_LOOKBACK"]},{"type":"string","enum":["FORMER_DECAYED"]}]},{"type":"null"}]},"pepJurisdiction":{"description":"AMLR Art. 42(3) domestic-vs-foreign-vs-international split, computed relative to the CALLING client's own registered jurisdiction (never a fixed fact about the PEP record itself). INTERNATIONAL for a Union-institution/international-organisation PEP. UNKNOWN when there is a PEP but not enough real information to place it (no client jurisdiction on file, or the record itself carries no nationality). Null only when pepCategory is null (not a PEP record at all).","anyOf":[{"anyOf":[{"type":"string","enum":["DOMESTIC"]},{"type":"string","enum":["FOREIGN"]},{"type":"string","enum":["INTERNATIONAL"]},{"type":"string","enum":["UNKNOWN"]}]},{"type":"null"}]},"linkedPeps":{"description":"Which PEP or PEPs this candidate is a relative or close associate of, with the raw relationship label, taken from the relationship data published in the source lists. Populated only when pepCategory is 'RCA'. Always [] otherwise, or when no relationship to a current PEP was found. Purely informational context for enhanced due diligence, with the same guarantee as every other pep* field here: it never affects `classification`.","type":"array","items":{"type":"object","required":["entityId","primaryName","pepCategory","relationshipSchema","relationshipLabel"],"properties":{"entityId":{"type":"string"},"primaryName":{"type":"string"},"pepCategory":{"anyOf":[{"type":"string","enum":["PEP"]},{"type":"string","enum":["RCA"]},{"type":"string","enum":["INTERNATIONAL_ORG_PEP"]}]},"relationshipSchema":{"anyOf":[{"type":"string","enum":["Family"]},{"type":"string","enum":["Associate"]},{"type":"string","enum":["UnknownLink"]}]},"relationshipLabel":{"description":"Raw, verbatim source text (for example \"spouse\" or \"father\", in whatever language the source dataset used), never normalized or translated. Null for an UnknownLink relationship, which carries no label.","anyOf":[{"type":"string"},{"type":"null"}]}}}},"matchedVia":{"type":"array","items":{"type":"string"}},"programs":{"description":"The sanctions programmes or regimes the list entry is designated under, as the list names them (for example an OFAC programme code, a UN sanctions committee, an EU programme code or a UK regime). Empty for politically exposed person lists.","type":"array","items":{"type":"string"}},"listedDate":{"description":"The date the list first designated the entry, when the list publishes one.","anyOf":[{"format":"date","type":"string"},{"type":"null"}]},"match":{"description":"Why this candidate matched. `matchedField` is `primary_name`, `alias`, or `weak_alias` (an alias the list itself rates low quality). `dobComparison` and `nationalityComparison` say whether the date of birth and nationality you sent agree with the list entry (`match`), disagree (`contradict`), or could not be compared because either side has none (`unknown`). Only the outcome is returned, never the date of birth or nationality the list holds.","type":"object","required":["matchedName","matchedField","dobComparison","nationalityComparison"],"properties":{"matchedName":{"description":"The list entry's own name or alias, exactly as the list publishes it, that your query matched most closely.","type":"string"},"matchedField":{"anyOf":[{"type":"string","enum":["primary_name"]},{"type":"string","enum":["alias"]},{"type":"string","enum":["weak_alias"]}]},"dobComparison":{"anyOf":[{"type":"string","enum":["match"]},{"type":"string","enum":["contradict"]},{"type":"string","enum":["unknown"]}]},"nationalityComparison":{"anyOf":[{"type":"string","enum":["match"]},{"type":"string","enum":["contradict"]},{"type":"string","enum":["unknown"]}]}}},"classifyResult":{"type":"object","required":["score","classification","floored","exactMatchShortCircuit","explain","engineVersion"],"properties":{"score":{"type":"number"},"classification":{"anyOf":[{"type":"string","enum":["CLEAR"]},{"type":"string","enum":["POSSIBLE_MATCH"]},{"type":"string","enum":["CONFIRMED_MATCH"]}]},"floored":{"type":"boolean"},"exactMatchShortCircuit":{"description":"True when the name matched the primary name or a strong alias exactly, the date of birth corroborated it and nothing contradicted it, so the candidate scored 100.","type":"boolean"},"confirmationBlockers":{"description":"Why this POSSIBLE_MATCH candidate was not confirmed automatically: WEAK_ALIAS_ONLY (the name matched only an alias the list itself rates low quality), DOB_NOT_CORROBORATED (no date of birth to compare, on the request or on the list entry), DOB_YEAR_ONLY (the list gives only a birth year, which agrees), DOB_CONTRADICTED, NATIONALITY_CONTRADICTED. Each is judged against this one list entry. A name match alone is never confirmed automatically. Empty for CLEAR and CONFIRMED_MATCH candidates, and for a POSSIBLE_MATCH whose name is simply not close enough to confirm.","type":"array","items":{"anyOf":[{"type":"string","enum":["WEAK_ALIAS_ONLY"]},{"type":"string","enum":["DOB_NOT_CORROBORATED"]},{"type":"string","enum":["DOB_YEAR_ONLY"]},{"type":"string","enum":["DOB_CONTRADICTED"]},{"type":"string","enum":["NATIONALITY_CONTRADICTED"]}]}},"explain":{"type":"object","required":["levenshtein","phonetic","dobNat","vector","weightSet"],"properties":{"levenshtein":{"type":"number"},"phonetic":{"type":"number"},"dobNat":{"type":"object","required":["dob","nationality","combined"],"properties":{"dob":{"type":"number"},"nationality":{"type":"number"},"combined":{"type":"number"}}},"vector":{"anyOf":[{"type":"number"},{"type":"null"}]},"weightSet":{"anyOf":[{"type":"string","enum":["launch"]},{"type":"string","enum":["target"]}]}}},"engineVersion":{"type":"string"}}}}}},"wallet":{"type":"object","required":["classification","matches","checkedAddresses"],"properties":{"classification":{"anyOf":[{"type":"string","enum":["CLEAR"]},{"type":"string","enum":["CONFIRMED_MATCH"]}]},"matches":{"type":"array","items":{"type":"object","required":["queryAddress","walletRowId","source","listRef","entityName","entityType","ticker","address","programs","listedDate"],"properties":{"queryAddress":{"type":"string"},"walletRowId":{"type":"string"},"source":{"type":"string"},"listRef":{"type":"string"},"entityName":{"type":"string"},"entityType":{"type":"string"},"ticker":{"type":"string"},"address":{"type":"string"},"programs":{"type":"array","items":{"type":"string"}},"listedDate":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"checkedAddresses":{"type":"array","items":{"type":"string"}}}},"meta":{"type":"object","required":["mode","sandboxOverride","humanReviewRequired","decisionId","engineVersion","gatesHash","ensembleWeightsHash","listSnapshotIds"],"properties":{"mode":{"anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["live"]}]},"sandboxOverride":{"type":"boolean"},"humanReviewRequired":{"type":"boolean"},"decisionId":{"description":"This decision's sequential position in your audit log, as a decimal string. Use it to look up (`GET /v1/screen/{decisionId}`) or record your own review of (`POST /v1/screen/{decisionId}/review`) this exact decision later.","type":"string"},"engineVersion":{"type":"string"},"gatesHash":{"description":"SHA-256 hex digest of the full matching-engine gates configuration (including classification thresholds and ensemble weights) in force for this decision.","type":"string"},"ensembleWeightsHash":{"description":"SHA-256 hex digest of just the active ensemble weight vector in force for this decision. A narrower value than gatesHash, covering only the weight vector rather than the whole gates configuration.","type":"string"},"listSnapshotIds":{"description":"ID of the latest completed data-refresh run for each distinct live source that could have contributed a candidate to this decision. Empty in sandbox mode, because synthetic data comes from no list refresh.","type":"array","items":{"type":"string"}},"listCoverage":{"description":"For each listSnapshotIds entry, how many source records that run could not load. Empty in sandbox mode.","type":"array","items":{"type":"object","required":["listSnapshotId","source","rejectedRecordCount"],"properties":{"listSnapshotId":{"description":"One of meta.listSnapshotIds.","type":"string"},"source":{"description":"The list that data-refresh run loaded, e.g. \"un-consolidated\".","type":"string"},"rejectedRecordCount":{"minimum":0,"description":"Records in that source file that could not be read and were therefore not loaded by that run (at most 1% of the list, and a run above that is not used at all). Records already loaded from an earlier run stay screenable. 0 when every record was loaded.","type":"integer"}}}},"coreListCoverage":{"description":"The core sanctions and PEP lists this decision depended on, and whether each was loaded and up to date at decision time. Screening wallet addresses adds the sanctioned wallet address list. `lists` is empty in sandbox mode, where synthetic data is used.","type":"object","required":["complete","checkedAt","lists"],"properties":{"complete":{"description":"True when every list in `lists` was OK.","type":"boolean"},"checkedAt":{"format":"date-time","type":"string"},"lists":{"type":"array","items":{"type":"object","required":["source","kind","status","listSnapshotId","lastSuccessAt","maxHoursSinceSuccess"],"properties":{"source":{"description":"The list, e.g. \"un-consolidated\", \"opensanctions-pep\", \"ofac-sdn-crypto\".","type":"string"},"kind":{"anyOf":[{"type":"string","enum":["sanctions"]},{"type":"string","enum":["pep"]}]},"status":{"description":"`OK`: loaded and refreshed within its freshness window. `MISSING`: never loaded, or no current entries. `STALE`: not refreshed within its window.","anyOf":[{"type":"string","enum":["OK"]},{"type":"string","enum":["MISSING"]},{"type":"string","enum":["STALE"]}]},"listSnapshotId":{"description":"The data-refresh run of this list that was in force, or null when none.","anyOf":[{"type":"string"},{"type":"null"}]},"lastSuccessAt":{"description":"When that run completed.","anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"maxHoursSinceSuccess":{"minimum":1,"description":"This list's freshness window in hours.","type":"integer"}}}}}}}},"evidencePackStatus":{"description":"Where this decision's encrypted evidence pack stands when the decision is made. The pack itself is never in this response. `available`: Nexiel holds it, encrypted to your registered evidence-pack public key, until you claim it once with `POST /v1/screen/{decisionId}/evidence-pack/claim` (an `Idempotency-Key` retry within an hour returns the same pack), or for 7 days if you never do. `pushing`: you chose push delivery, and the pack is being posted to your evidence-pack webhook endpoint (see `evidencePackDelivery`). `no_key_registered`: no evidence pack exists for this decision, because no evidence-pack key was registered or the request was made without an API key. A replay with the same `Idempotency-Key` returns the status from decision time; `GET /v1/screen/{decisionId}` reports the current one.","anyOf":[{"type":"string","enum":["no_key_registered"]},{"type":"string","enum":["available"]},{"type":"string","enum":["pushing"]}],"example":"available"},"evidencePackDelivery":{"description":"Present when your evidence-pack delivery mode for this environment is a push mode: the pack is posted to the webhook endpoint you chose for evidence packs and deleted as soon as that endpoint acknowledges it. With push_then_pull_fallback, if every push attempt fails, claim it once with `POST /v1/screen/{decisionId}/evidence-pack/claim` while it is held (7 days after the decision).","type":"object","required":["mode","webhookEventId"],"properties":{"mode":{"anyOf":[{"type":"string","enum":["push"]},{"type":"string","enum":["push_then_pull_fallback"]}]},"webhookEventId":{"format":"uuid","description":"The id of the `screening.evidence_pack.ready` event that carries the pack. Deduplicate on it.","type":"string"}}}}},"examples":{"clear":{"summary":"CLEAR: no candidates above threshold","value":{"classification":"CLEAR","candidates":[],"wallet":{"classification":"CLEAR","matches":[],"checkedAddresses":[]},"meta":{"mode":"sandbox","sandboxOverride":false,"humanReviewRequired":false,"decisionId":"41","engineVersion":"0.3.0+src.024c0eba57c8","gatesHash":"77891dec4b1ff667af1be0181d9bd7d7c9a2529ba1611ed31a3f3cb25236aa43","ensembleWeightsHash":"4a2723f74864b3371c860bbb93c3d6fbfde7dcc21e99e1242ddad3ff366cf69d","listSnapshotIds":[],"listCoverage":[]}}},"confirmedMatch":{"summary":"CONFIRMED_MATCH: exact name, corroborated by the date of birth","value":{"classification":"CONFIRMED_MATCH","candidates":[{"entityId":"a33e0af1-d984-451b-b0b5-7c6c3759b977","source":"sandbox","listRef":"SANDBOX-1","entityType":"INDIVIDUAL","isPep":false,"pepCategory":null,"pepFunctionalCategory":null,"pepStatus":null,"pepJurisdiction":null,"linkedPeps":[],"matchedVia":["exact","fts","phonetic","trigram"],"programs":[],"listedDate":null,"match":{"matchedName":"Anatoly Sandboxovich Testperson","matchedField":"primary_name","dobComparison":"match","nationalityComparison":"match"},"classifyResult":{"score":100,"classification":"CONFIRMED_MATCH","floored":false,"exactMatchShortCircuit":true,"confirmationBlockers":[],"explain":{"levenshtein":1,"phonetic":1,"dobNat":{"dob":1,"nationality":1,"combined":1},"vector":null,"weightSet":"launch"},"engineVersion":"0.3.0+src.024c0eba57c8"}}],"wallet":{"classification":"CLEAR","matches":[],"checkedAddresses":[]},"meta":{"mode":"sandbox","sandboxOverride":false,"humanReviewRequired":false,"decisionId":"42","engineVersion":"0.3.0+src.024c0eba57c8","gatesHash":"77891dec4b1ff667af1be0181d9bd7d7c9a2529ba1611ed31a3f3cb25236aa43","ensembleWeightsHash":"4a2723f74864b3371c860bbb93c3d6fbfde7dcc21e99e1242ddad3ff366cf69d","listSnapshotIds":[],"listCoverage":[]}}},"possibleMatch":{"summary":"POSSIBLE_MATCH: humanReviewRequired is true (EU AI Act human-in-the-loop gate)","value":{"classification":"POSSIBLE_MATCH","candidates":[{"entityId":"a33e0af1-d984-451b-b0b5-7c6c3759b977","source":"sandbox","listRef":"SANDBOX-1","entityType":"INDIVIDUAL","isPep":false,"pepCategory":null,"pepFunctionalCategory":null,"pepStatus":null,"pepJurisdiction":null,"linkedPeps":[],"matchedVia":["exact","fts","phonetic","trigram"],"programs":[],"listedDate":null,"match":{"matchedName":"Anatoly Sandboxovich Testperson","matchedField":"primary_name","dobComparison":"contradict","nationalityComparison":"unknown"},"classifyResult":{"score":87,"classification":"POSSIBLE_MATCH","floored":false,"exactMatchShortCircuit":false,"confirmationBlockers":["DOB_CONTRADICTED"],"explain":{"levenshtein":1,"phonetic":1,"dobNat":{"dob":0.1,"nationality":0.5,"combined":0.3},"vector":null,"weightSet":"launch"},"engineVersion":"0.3.0+src.024c0eba57c8"}}],"wallet":{"classification":"CLEAR","matches":[],"checkedAddresses":[]},"meta":{"mode":"sandbox","sandboxOverride":false,"humanReviewRequired":true,"decisionId":"43","engineVersion":"0.3.0+src.024c0eba57c8","gatesHash":"77891dec4b1ff667af1be0181d9bd7d7c9a2529ba1611ed31a3f3cb25236aa43","ensembleWeightsHash":"4a2723f74864b3371c860bbb93c3d6fbfde7dcc21e99e1242ddad3ff366cf69d","listSnapshotIds":[],"listCoverage":[]}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missingName":{"summary":"Required `name` field missing (schema validation failure)","value":{"error":"bad_request","message":"body must have required property 'name'"}}}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missingAuthorizationHeader":{"summary":"No Authorization header sent while the service runs in production mode","value":{"error":"unauthorized","message":"missing or malformed Authorization header (expected \"Bearer <token>\")"}},"revokedOrExpiredToken":{"summary":"Token is expired, or its Keycloak client was revoked (introspection active=false)","value":{"error":"unauthorized","message":"token is expired, revoked, or otherwise not active"}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"idempotencyKeyConflict":{"summary":"The same Idempotency-Key was already used for a different request","value":{"error":"idempotency_key_conflict","message":"Idempotency-Key was already used with a different request body/params. Use a new, unique key for a genuinely different request, or resend the exact original request to get back its cached result."}},"idempotencyRequestInProgress":{"summary":"A request with the same Idempotency-Key is still running","value":{"error":"idempotency_request_in_progress","message":"A request with this Idempotency-Key is still being processed. Retry the same request shortly to receive its result; do not send it with a new key."}}}}}},"422":{"description":"Unprocessable request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"evidencePackKeyUnusable":{"summary":"Your registered evidence-pack public key cannot be used for encryption","value":{"error":"evidence_pack_key_unusable","message":"Your registered evidence-pack public key cannot be used for encryption, so no screening result was saved for this request. Revoke it and register a new key in the dashboard (Evidence keys), then retry."}}}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"},"examples":{"rateLimitExceeded":{"summary":"Client's per-client rate limit (token bucket) was exhausted","value":{"error":"rate_limit_exceeded","message":"Rate limit exceeded for this client. Retry after 2s. This is a per-client request-rate limit, not an error in your request. Resend after the given delay.","retryAfterSeconds":2}}}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"},"examples":{"screeningBusyRetry":{"summary":"Too many simultaneous screenings for this account; nothing was recorded, retry after the delay","value":{"error":"screening_busy_retry","message":"Too many screening requests for this account are being processed at the same moment. Nothing was recorded for this request. Retry after the given delay.","retryAfterSeconds":1}}}}}}}}},"/v1/screen/{decisionId}":{"get":{"operationId":"getScreeningDecision","summary":"Fetch one of your own past screening decisions, including your own review status","tags":["Screening"],"description":"Read-only. `decisionId` is `meta.decisionId` from an earlier `POST /v1/screen` response. Scoped to your organization: a decision made with another of your Screen keys in the same mode (for example one you have since rotated) is read by naming that key in `madeWithKey`. A decisionId that exists but belongs to another client returns 404, exactly like one that does not exist. `meta.humanReviewRequired` reflects whether your own review is still outstanding (true only while classification is POSSIBLE_MATCH and `customerReviews` is empty), not the value recorded at decision time. `evidencePackStatus` says where the decision's encrypted evidence pack stands; reading never hands it over. A pack that is `available` is claimed once with `POST /v1/screen/{decisionId}/evidence-pack/claim`. If your organization has turned on source restrictions, a request returns `403 client_access_restricted`, even with a valid credential, unless its source IP is in one of your allowed IP ranges or its `Origin` header matches one of your allowed domains. IP ranges match IPv4 addresses only. Source restrictions are off by default. Manage them under Organization, Source restrictions in your dashboard (by default, organization Admins and Owners can do this, and saving changes requires an approved KYB application).","parameters":[{"schema":{"deprecated":true,"anyOf":[{"type":"string","enum":["claim"]},{"type":"string","enum":["peek"]}]},"in":"query","name":"evidencePackDelivery","required":false,"description":"Accepted for compatibility and ignored: reading a decision never hands over its evidence pack. Claim it with `POST /v1/screen/{decisionId}/evidence-pack/claim`."},{"schema":{"minLength":1,"maxLength":255,"pattern":"^[A-Za-z0-9._:-]+$","type":"string"},"in":"query","name":"madeWithKey","required":false,"description":"The client id of the API key that made this decision, when it is not the key making this request: for example a key you have since rotated. It must be a Screen key of your organization in the same mode (test or live) as the key you call with; anything else answers 404, like an unknown decision. Omit it for a decision made with the calling key."},{"schema":{"pattern":"^[1-9][0-9]*$","type":"string"},"in":"path","name":"decisionId","required":true,"description":"The `meta.decisionId` of one of your own screening decisions (see `POST /v1/screen`)."},{"$ref":"#/components/parameters/NexielVersion"}],"security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"One of your own screening decisions as recorded at decision time, with your own review status. It never contains the name, date of birth or nationality you screened.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreeningDecision"},"examples":{"awaitingReview":{"summary":"A POSSIBLE_MATCH you have not reviewed yet","value":{"decisionId":"43","createdAt":"2026-11-18T09:14:07.512Z","classification":"POSSIBLE_MATCH","candidates":[{"entityId":"a33e0af1-d984-451b-b0b5-7c6c3759b977","source":"sandbox","listRef":"SANDBOX-1","entityType":"INDIVIDUAL","isPep":false,"pepCategory":null,"pepFunctionalCategory":null,"pepStatus":null,"pepJurisdiction":null,"linkedPeps":[],"matchedVia":["exact","fts","phonetic","trigram"],"score":87,"classification":"POSSIBLE_MATCH","programs":[],"listedDate":null,"matchedField":"primary_name"}],"wallet":{"classification":"CLEAR","checkedAddressCount":0,"matches":[]},"meta":{"mode":"sandbox","sandboxOverride":false,"engineVersion":"0.3.0+src.024c0eba57c8","gatesHash":"77891dec4b1ff667af1be0181d9bd7d7c9a2529ba1611ed31a3f3cb25236aa43","ensembleWeightsHash":"4a2723f74864b3371c860bbb93c3d6fbfde7dcc21e99e1242ddad3ff366cf69d","listSnapshotIds":[],"listCoverage":[],"coreListCoverage":{"complete":true,"checkedAt":"2026-11-19T09:41:00.000Z","lists":[]},"humanReviewRequired":true},"customerReviews":[],"evidencePackStatus":"delivered"}},"reviewed":{"summary":"A POSSIBLE_MATCH after your review","value":{"decisionId":"43","createdAt":"2026-11-18T09:14:07.512Z","classification":"POSSIBLE_MATCH","candidates":[{"entityId":"a33e0af1-d984-451b-b0b5-7c6c3759b977","source":"sandbox","listRef":"SANDBOX-1","entityType":"INDIVIDUAL","isPep":false,"pepCategory":null,"pepFunctionalCategory":null,"pepStatus":null,"pepJurisdiction":null,"linkedPeps":[],"matchedVia":["exact","fts","phonetic","trigram"],"score":87,"classification":"POSSIBLE_MATCH","programs":[],"listedDate":null,"matchedField":"primary_name"}],"wallet":{"classification":"CLEAR","checkedAddressCount":0,"matches":[]},"meta":{"mode":"sandbox","sandboxOverride":false,"engineVersion":"0.3.0+src.024c0eba57c8","gatesHash":"77891dec4b1ff667af1be0181d9bd7d7c9a2529ba1611ed31a3f3cb25236aa43","ensembleWeightsHash":"4a2723f74864b3371c860bbb93c3d6fbfde7dcc21e99e1242ddad3ff366cf69d","listSnapshotIds":[],"listCoverage":[],"coreListCoverage":{"complete":true,"checkedAt":"2026-11-19T09:41:00.000Z","lists":[]},"humanReviewRequired":false},"customerReviews":[{"decision":"false_positive","notes":null,"notesSha256":"3c6efe8fcd1fb163cedde0217e610a599106c82375b5f6ea8b00b283db278f15","notesLength":68,"reviewer":{"type":"api_key","userId":null,"reviewerId":"analyst-0193"},"reviewedAt":"2026-11-18T10:02:41.090Z"}],"evidencePackStatus":"delivered"}},"clear":{"summary":"A CLEAR decision","value":{"decisionId":"41","createdAt":"2026-11-18T09:12:31.874Z","classification":"CLEAR","candidates":[],"wallet":{"classification":"CLEAR","checkedAddressCount":0,"matches":[]},"meta":{"mode":"sandbox","sandboxOverride":false,"engineVersion":"0.3.0+src.024c0eba57c8","gatesHash":"77891dec4b1ff667af1be0181d9bd7d7c9a2529ba1611ed31a3f3cb25236aa43","ensembleWeightsHash":"4a2723f74864b3371c860bbb93c3d6fbfde7dcc21e99e1242ddad3ff366cf69d","listSnapshotIds":[],"listCoverage":[],"coreListCoverage":{"complete":true,"checkedAt":"2026-11-19T09:41:00.000Z","lists":[]},"humanReviewRequired":false},"customerReviews":[],"evidencePackStatus":"no_key_registered"}}}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/screen/{decisionId}/review":{"post":{"operationId":"reviewScreeningDecision","summary":"Record your own review of one of your own POSSIBLE_MATCH or CONFIRMED_MATCH screening decisions","tags":["Screening"],"description":"Under the EU AI Act, a POSSIBLE_MATCH result always requires human review before any action is taken on it, and it is never auto-cleared. That human is you, the regulated client. Nexiel never reviews or resolves your matches on your behalf (see https://nexiel.eu/legal: you retain full and final responsibility for your own compliance decisions). `decisionId` is `meta.decisionId` from an earlier `POST /v1/screen` response.\n\nA decision made with another of your Screen keys in the same mode, for example one you have since rotated, is reviewed by naming that key in the `madeWithKey` query parameter. Accepted only for a decision that (a) belongs to your organization (404 otherwise, the same as a decisionId that does not exist, never a 403 that would confirm another client's data exists) and (b) is classified POSSIBLE_MATCH or CONFIRMED_MATCH (409 `screening_decision_not_reviewable` for a CLEAR decision, which matched nothing). Reviewing a CONFIRMED_MATCH lets you override an automatic confirmation, for example as a false positive; the review records the classification it overrode. The original decision's `classification` is never changed and stays exactly as computed, as part of the frozen decision artifact. Your review is recorded as its own separate, immutable audit event, with the reviewer (the `reviewerId` you send, your own opaque reference for the person) and a SHA-256 fingerprint and length of `notes`. The notes text itself is never stored, so keep it in your own case records. Each recorded review sends a `screening.review.completed` webhook event carrying the decision id, the outcome, the reviewer type and the time. You can review again: each submission records a new review, and nothing is overwritten. Every past review for this decision is returned in `customerReviews`, most recent first. `Idempotency-Key` is enforced server-side exactly as for `POST /v1/screen`. If your organization has turned on source restrictions, a request returns `403 client_access_restricted`, even with a valid credential, unless its source IP is in one of your allowed IP ranges or its `Origin` header matches one of your allowed domains. IP ranges match IPv4 addresses only. Source restrictions are off by default. Manage them under Organization, Source restrictions in your dashboard (by default, organization Admins and Owners can do this, and saving changes requires an approved KYB application).","requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["decision"],"properties":{"decision":{"anyOf":[{"type":"string","enum":["confirmed_match"]},{"type":"string","enum":["false_positive"]},{"type":"string","enum":["escalated"]}]},"notes":{"maxLength":4000,"description":"Your reviewer's rationale. Nexiel does not store this text: it records only its SHA-256 (of the UTF-8 bytes, with line endings normalised to LF and nothing else changed) and its length, returned as `notesSha256` and `notesLength`, so you can later show that the rationale in your own case records is the one submitted with this review. Keep the text itself in your own records.","type":"string"},"reviewerId":{"pattern":"^[A-Za-z0-9._:-]{1,128}$","maxLength":128,"description":"Your own identifier for the person who made this review, such as a staff number or your case system's user id, recorded with the review. Letters, digits and `. _ : -` only: use an opaque id, not a name or an email address.","type":"string","example":"analyst-042"}}}}}},"parameters":[{"schema":{"minLength":1,"maxLength":255,"pattern":"^[A-Za-z0-9._:-]+$","type":"string"},"in":"query","name":"madeWithKey","required":false,"description":"The client id of the API key that made this decision, when it is not the key making this request: for example a key you have since rotated. It must be a Screen key of your organization in the same mode (test or live) as the key you call with; anything else answers 404, like an unknown decision. Omit it for a decision made with the calling key."},{"schema":{"pattern":"^[1-9][0-9]*$","type":"string"},"in":"path","name":"decisionId","required":true,"description":"The `meta.decisionId` of one of your own screening decisions (see `POST /v1/screen`)."},{"$ref":"#/components/parameters/NexielVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"One of your own screening decisions as recorded at decision time, with your own review status. It never contains the name, date of birth or nationality you screened.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreeningDecision"},"examples":{"reviewed":{"summary":"The decision with the review just recorded","value":{"decisionId":"43","createdAt":"2026-11-18T09:14:07.512Z","classification":"POSSIBLE_MATCH","candidates":[{"entityId":"a33e0af1-d984-451b-b0b5-7c6c3759b977","source":"sandbox","listRef":"SANDBOX-1","entityType":"INDIVIDUAL","isPep":false,"pepCategory":null,"pepFunctionalCategory":null,"pepStatus":null,"pepJurisdiction":null,"linkedPeps":[],"matchedVia":["exact","fts","phonetic","trigram"],"score":87,"classification":"POSSIBLE_MATCH","programs":[],"listedDate":null,"matchedField":"primary_name"}],"wallet":{"classification":"CLEAR","checkedAddressCount":0,"matches":[]},"meta":{"mode":"sandbox","sandboxOverride":false,"engineVersion":"0.3.0+src.024c0eba57c8","gatesHash":"77891dec4b1ff667af1be0181d9bd7d7c9a2529ba1611ed31a3f3cb25236aa43","ensembleWeightsHash":"4a2723f74864b3371c860bbb93c3d6fbfde7dcc21e99e1242ddad3ff366cf69d","listSnapshotIds":[],"listCoverage":[],"coreListCoverage":{"complete":true,"checkedAt":"2026-11-19T09:41:00.000Z","lists":[]},"humanReviewRequired":false},"customerReviews":[{"decision":"false_positive","notes":null,"notesSha256":"3c6efe8fcd1fb163cedde0217e610a599106c82375b5f6ea8b00b283db278f15","notesLength":68,"reviewer":{"type":"api_key","userId":null,"reviewerId":"analyst-0193"},"reviewedAt":"2026-11-18T10:02:41.090Z"}],"evidencePackStatus":"delivered"}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/screen/decisions":{"get":{"operationId":"listScreeningDecisions","summary":"List your own screening decisions","tags":["Screening"],"description":"The calling API key's own screening decisions, newest first, each in the same shape `GET /v1/screen/{decisionId}` returns. A test key lists its sandbox decisions and a live key its live ones. Filter by `classification`, by `humanReviewRequired` (`true` lists the POSSIBLE_MATCH decisions still waiting for your review) and by creation time. Paginated: pass `nextCursor` as `starting_after` for the next page, or pass a `decisionId` to list the decisions made before it. A `decisionId` that is not one of yours in this mode is refused with 400 `invalid_cursor`. If your organization has turned on source restrictions, a request returns `403 client_access_restricted`, even with a valid credential, unless its source IP is in one of your allowed IP ranges or its `Origin` header matches one of your allowed domains. IP ranges match IPv4 addresses only. Source restrictions are off by default. Manage them under Organization, Source restrictions in your dashboard (by default, organization Admins and Owners can do this, and saving changes requires an approved KYB application).","parameters":[{"schema":{"minimum":1,"maximum":100,"default":20,"type":"integer"},"in":"query","name":"limit","required":false,"description":"How many items to return, 1 to 100. Defaults to 20."},{"schema":{"minLength":1,"maxLength":200,"type":"string"},"in":"query","name":"starting_after","required":false,"description":"Return the decisions after this one: the `nextCursor` of the previous page, or a `decisionId` from this list."},{"schema":{"minLength":1,"maxLength":200,"deprecated":true,"type":"string"},"in":"query","name":"cursor","required":false,"description":"Deprecated alias of `starting_after`; send `starting_after` instead."},{"schema":{"maxLength":40,"type":"string"},"example":"2026-11-01T00:00:00Z","in":"query","name":"created[gt]","required":false,"description":"Only items created after this time. An ISO 8601 date-time (UTC if no offset is given) or Unix seconds."},{"schema":{"maxLength":40,"type":"string"},"example":"2026-11-01T00:00:00Z","in":"query","name":"created[gte]","required":false,"description":"Only items created at or after this time. An ISO 8601 date-time (UTC if no offset is given) or Unix seconds."},{"schema":{"maxLength":40,"type":"string"},"example":"2026-11-01T00:00:00Z","in":"query","name":"created[lt]","required":false,"description":"Only items created before this time. An ISO 8601 date-time (UTC if no offset is given) or Unix seconds."},{"schema":{"maxLength":40,"type":"string"},"example":"2026-11-01T00:00:00Z","in":"query","name":"created[lte]","required":false,"description":"Only items created at or before this time. An ISO 8601 date-time (UTC if no offset is given) or Unix seconds."},{"schema":{"pattern":"^(CLEAR|POSSIBLE_MATCH|CONFIRMED_MATCH)(,(CLEAR|POSSIBLE_MATCH|CONFIRMED_MATCH))*$","maxLength":64,"type":"string"},"examples":{"POSSIBLE_MATCH":{"value":"POSSIBLE_MATCH"},"CLEAR,CONFIRMED_MATCH":{"value":"CLEAR,CONFIRMED_MATCH"}},"in":"query","name":"classification","required":false,"description":"Only decisions with this classification. Separate several with commas to match any of them."},{"schema":{"type":"boolean"},"in":"query","name":"humanReviewRequired","required":false,"description":"`true`: only POSSIBLE_MATCH decisions you have not reviewed yet (the same rule as `meta.humanReviewRequired`). `false`: every other decision."},{"$ref":"#/components/parameters/NexielVersion"}],"security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Page"},{"type":"object","required":["data"],"properties":{"data":{"description":"The items of this page, newest first.","type":"array","items":{"$ref":"#/components/schemas/ScreeningDecision"}}}}]},"examples":{"firstPage":{"summary":"The first page with limit=2: more decisions follow","value":{"data":[{"decisionId":"43","createdAt":"2026-11-18T09:14:07.512Z","classification":"POSSIBLE_MATCH","candidates":[{"entityId":"a33e0af1-d984-451b-b0b5-7c6c3759b977","source":"sandbox","listRef":"SANDBOX-1","entityType":"INDIVIDUAL","isPep":false,"pepCategory":null,"pepFunctionalCategory":null,"pepStatus":null,"pepJurisdiction":null,"linkedPeps":[],"matchedVia":["exact","fts","phonetic","trigram"],"score":87,"classification":"POSSIBLE_MATCH","programs":[],"listedDate":null,"matchedField":"primary_name"}],"wallet":{"classification":"CLEAR","checkedAddressCount":0,"matches":[]},"meta":{"mode":"sandbox","sandboxOverride":false,"engineVersion":"0.3.0+src.024c0eba57c8","gatesHash":"77891dec4b1ff667af1be0181d9bd7d7c9a2529ba1611ed31a3f3cb25236aa43","ensembleWeightsHash":"4a2723f74864b3371c860bbb93c3d6fbfde7dcc21e99e1242ddad3ff366cf69d","listSnapshotIds":[],"listCoverage":[],"coreListCoverage":{"complete":true,"checkedAt":"2026-11-19T09:41:00.000Z","lists":[]},"humanReviewRequired":true},"customerReviews":[],"evidencePackStatus":"delivered"},{"decisionId":"42","createdAt":"2026-11-18T09:12:55.301Z","classification":"CONFIRMED_MATCH","candidates":[{"entityId":"a33e0af1-d984-451b-b0b5-7c6c3759b977","source":"sandbox","listRef":"SANDBOX-1","entityType":"INDIVIDUAL","isPep":false,"pepCategory":null,"pepFunctionalCategory":null,"pepStatus":null,"pepJurisdiction":null,"linkedPeps":[],"matchedVia":["exact","fts","phonetic","trigram"],"score":100,"classification":"CONFIRMED_MATCH","programs":[],"listedDate":null,"matchedField":"primary_name"}],"wallet":{"classification":"CLEAR","checkedAddressCount":0,"matches":[]},"meta":{"mode":"sandbox","sandboxOverride":false,"engineVersion":"0.3.0+src.024c0eba57c8","gatesHash":"77891dec4b1ff667af1be0181d9bd7d7c9a2529ba1611ed31a3f3cb25236aa43","ensembleWeightsHash":"4a2723f74864b3371c860bbb93c3d6fbfde7dcc21e99e1242ddad3ff366cf69d","listSnapshotIds":[],"listCoverage":[],"coreListCoverage":{"complete":true,"checkedAt":"2026-11-19T09:41:00.000Z","lists":[]},"humanReviewRequired":false},"customerReviews":[],"evidencePackStatus":"no_key_registered"}],"hasMore":true,"nextCursor":"MjAyNi0xMS0xOFQwOToxMjo1NS4zMDE0MjhafDQy"}},"awaitingReview":{"summary":"humanReviewRequired=true: the possible matches still waiting for your review","value":{"data":[{"decisionId":"43","createdAt":"2026-11-18T09:14:07.512Z","classification":"POSSIBLE_MATCH","candidates":[{"entityId":"a33e0af1-d984-451b-b0b5-7c6c3759b977","source":"sandbox","listRef":"SANDBOX-1","entityType":"INDIVIDUAL","isPep":false,"pepCategory":null,"pepFunctionalCategory":null,"pepStatus":null,"pepJurisdiction":null,"linkedPeps":[],"matchedVia":["exact","fts","phonetic","trigram"],"score":87,"classification":"POSSIBLE_MATCH","programs":[],"listedDate":null,"matchedField":"primary_name"}],"wallet":{"classification":"CLEAR","checkedAddressCount":0,"matches":[]},"meta":{"mode":"sandbox","sandboxOverride":false,"engineVersion":"0.3.0+src.024c0eba57c8","gatesHash":"77891dec4b1ff667af1be0181d9bd7d7c9a2529ba1611ed31a3f3cb25236aa43","ensembleWeightsHash":"4a2723f74864b3371c860bbb93c3d6fbfde7dcc21e99e1242ddad3ff366cf69d","listSnapshotIds":[],"listCoverage":[],"coreListCoverage":{"complete":true,"checkedAt":"2026-11-19T09:41:00.000Z","lists":[]},"humanReviewRequired":true},"customerReviews":[],"evidencePackStatus":"delivered"}],"hasMore":false,"nextCursor":null}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/screen/{decisionId}/evidence-pack/claim":{"post":{"operationId":"claimScreeningEvidencePack","summary":"Claim a screening decision's encrypted evidence pack (once; retry-safe with the same Idempotency-Key)","tags":["Evidence packs"],"description":"The one way an evidence pack is handed over by pull. `POST /v1/screen` never returns the pack: it reports `evidencePackStatus: available`, and Nexiel holds the pack, encrypted to your registered evidence-pack public key, until you claim it here, or for 7 days after the decision if you never do. With push with fallback to pull, a pack becomes claimable once every push attempt failed. Reading the decision (`GET /v1/screen/{decisionId}`) never hands it over. Requires an `Idempotency-Key`: a retry with the same key within 60 minutes returns the same pack, so a dropped response never loses it; after that Nexiel keeps only the hash. Another key after the claim returns `409 evidence_pack_already_claimed`; a pack still being pushed returns `409 evidence_pack_push_in_progress`; one never claimed within its 7-day lifetime returns `410 evidence_pack_expired`. The pack belongs to your organization, not to one API key: after a key rotation, claim a pack made with the old key with the new one by naming the old key in `madeWithKey`. If your organization has turned on source restrictions, a request returns `403 client_access_restricted`, even with a valid credential, unless its source IP is in one of your allowed IP ranges or its `Origin` header matches one of your allowed domains. IP ranges match IPv4 addresses only. Source restrictions are off by default. Manage them under Organization, Source restrictions in your dashboard (by default, organization Admins and Owners can do this, and saving changes requires an approved KYB application).","parameters":[{"schema":{"minLength":1,"maxLength":255,"pattern":"^[A-Za-z0-9._:-]+$","type":"string"},"in":"query","name":"madeWithKey","required":false,"description":"The client id of the API key that made this decision, when it is not the key making this request: for example a key you have since rotated. It must be a Screen key of your organization in the same mode (test or live) as the key you call with; anything else answers 404, like an unknown decision. Omit it for a decision made with the calling key."},{"schema":{"pattern":"^[1-9][0-9]*$","type":"string"},"in":"path","name":"decisionId","required":true,"description":"The `meta.decisionId` of one of your own screening decisions (see `POST /v1/screen`)."},{"$ref":"#/components/parameters/NexielVersion"},{"$ref":"#/components/parameters/IdempotencyKeyRequired"}],"security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["decisionId","evidencePackCiphertext","evidencePackHash","evidencePackFormat","claimedAt","replayableUntil"],"properties":{"decisionId":{"type":"string"},"evidencePackCiphertext":{"description":"The evidence pack: a JWE in compact serialization (ECDH-ES, A256GCM, P-256) encrypted to your registered evidence-pack public key.","type":"string"},"evidencePackHash":{"description":"SHA-256 (hex) of `evidencePackCiphertext`; Nexiel keeps this hash as proof of handoff.","type":"string"},"evidencePackFormat":{"type":"string","enum":["jwe_compact"]},"claimedAt":{"format":"date-time","type":"string"},"replayableUntil":{"format":"date-time","description":"Until when a retry with the same Idempotency-Key returns this same pack.","type":"string"}}},"examples":{"claimed":{"summary":"The encrypted pack, handed over once","value":{"decisionId":"43","evidencePackCiphertext":"eyJhbGciOiJFQ0RILUVTIiwiZW5jIjoiQTI1NkdDTSIsImtpZCI6IlFUMXlxVFIwRHJhUGJ5eUM3dnhHLVBzbWc3elVyQm1rd1ZZOUNoZkRsSFEiLCJlcGsiOnsieCI6IlRWckpISF84bExzY1RFTFlBUGFnb0ViMkNmTmtBVERQT3ZGUWdNWGNXRU0iLCJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieSI6Ik5ZVHlkMEJEMDF0REItdE5UTmJ1Y2VLVHc1cXFkZkV6QkEtRWhROG1YZ0EifX0..OM2zrzLeiaCmd0gu.V4m7wS1WeaReH1Bi2rMUnQ.eZErrj7HOKP2BuggLyyAHg","evidencePackHash":"7ecbbf93367fee06bc44ccfc26e4c42796a322344acd42de430a4040112da2c2","evidencePackFormat":"jwe_compact","claimedAt":"2026-11-18T09:15:02.204Z","replayableUntil":"2026-11-18T10:15:02.204Z"}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Gone","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/v1/wallet-risk/score":{"post":{"operationId":"scoreWalletRisk","summary":"[PREVIEW] Score a cryptocurrency wallet address using GraphSense TagPacks attribution data","tags":["Wallet Risk"],"description":"Preview. Not a billed, generally available product, and there is no pricing tier for this endpoint yet, so use it to evaluate wallet risk rather than as a production dependency. Looks up the given network and address in the ingested GraphSense TagPacks corpus (a live key) or in a small, clearly fake synthetic fixture set (a test key, or the sandbox, see the top-level API description), and returns a 0-100 risk score with the exact evidence tags behind it.\n\nScope: this detects only an address that appears directly in the ingested corpus. There is no transaction-hop exposure analysis (no transaction-graph data is ingested at all), so an address that received funds from a tagged address is invisible to this engine unless it carries its own direct tag. `sameActorAddresses` is not exposure analysis either. It only lists other addresses the corpus already tags under the same declared actor. A null `score` with `classification: \"UNTAGGED\"` means \"no evidence found in this corpus,\" an absence of evidence, never proof the address is safe. This is not Chainalysis, TRM, or Elliptic-equivalent coverage.\n\n`frozenDecisionArtifact` pins exactly which engine version, risk-weights configuration, and TagPacks ingestion run produced this score. `tagpackEtlRunId` is always null in sandbox mode, because synthetic data comes from no ingestion run. `Idempotency-Key` is enforced server-side exactly as for `POST /v1/screen`. Authenticated (production-mode) requests share that route's per-client rate limit and anomaly tracking. If your organization has turned on source restrictions, a request returns `403 client_access_restricted`, even with a valid credential, unless its source IP is in one of your allowed IP ranges or its `Origin` header matches one of your allowed domains. IP ranges match IPv4 addresses only. Source restrictions are off by default. Manage them under Organization, Source restrictions in your dashboard (by default, organization Admins and Owners can do this, and saving changes requires an approved KYB application).","requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["network","address"],"properties":{"network":{"minLength":1,"maxLength":20,"description":"Chain/network code (e.g. \"BTC\", \"ETH\"). Free text, normalized (trimmed and upper-cased) server-side before lookup.","type":"string","example":"BTC"},"address":{"minLength":1,"maxLength":128,"description":"The wallet address to score, in any raw form. Normalized server-side in a network-aware way: case-insensitive hex networks like ETH/BSC are lowercased, and Base58Check chains are compared byte-exact and case-sensitive, since their checksum depends on case.","type":"string"},"mode":{"anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["live"]}]}}},"examples":{"sandboxLow":{"summary":"Sandbox synthetic LOW-risk fixture (a fake \"exchange\"-tagged address)","value":{"network":"BTC","address":"1SandboxLowRiskExchangeFAKE00001"}},"sandboxHigh":{"summary":"Sandbox synthetic HIGH-risk fixture (a fake terrorism-financing-tagged address)","value":{"network":"BTC","address":"1SandboxHighRiskTerrorismFAKE003"}}}}}},"parameters":[{"$ref":"#/components/parameters/NexielVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["network","address","addressLookup","score","classification","matchedTags","excludedTags","sameActorAddresses","frozenDecisionArtifact","meta"],"properties":{"network":{"type":"string"},"address":{"type":"string"},"addressLookup":{"description":"The normalized form actually used for the lookup.","type":"string"},"score":{"description":"Null means \"no matching tag was found,\" an absence of evidence, never proof the address is safe. See `classification: \"UNTAGGED\"`.","anyOf":[{"type":"number"},{"type":"null"}]},"classification":{"anyOf":[{"type":"string","enum":["UNTAGGED"]},{"type":"string","enum":["LOW"]},{"type":"string","enum":["ELEVATED"]},{"type":"string","enum":["HIGH"]}]},"matchedTags":{"type":"array","items":{"type":"object","required":["network","address","label","category","abuse","concepts","actorId","confidence","confidenceLevel","categoryWeight","contributionScore","isSanctionsConcept","source","packFile","packTitle","lastmod","isClusterDefiner"],"properties":{"network":{"type":"string"},"address":{"type":"string"},"label":{"type":"string"},"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"abuse":{"anyOf":[{"type":"string"},{"type":"null"}]},"concepts":{"type":"array","items":{"type":"string"}},"actorId":{"anyOf":[{"type":"string"},{"type":"null"}]},"confidence":{"anyOf":[{"type":"string"},{"type":"null"}]},"confidenceLevel":{"anyOf":[{"type":"number"},{"type":"null"}]},"categoryWeight":{"anyOf":[{"type":"number"},{"type":"null"}]},"contributionScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"isSanctionsConcept":{"type":"boolean"},"source":{"anyOf":[{"type":"string"},{"type":"null"}]},"packFile":{"type":"string"},"packTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastmod":{"anyOf":[{"type":"string"},{"type":"null"}]},"isClusterDefiner":{"type":"boolean"}}}},"excludedTags":{"description":"Tags that matched this address but are deliberately excluded from scoring. Currently that is the \"sanction\" concept: direct sanctions-address matching is a separate system's job (see POST /v1/screen's walletAddresses field). Still surfaced as evidence, never silently dropped.","type":"array","items":{"type":"object","required":["network","address","label","category","abuse","concepts","actorId","confidence","confidenceLevel","categoryWeight","contributionScore","isSanctionsConcept","source","packFile","packTitle","lastmod","isClusterDefiner"],"properties":{"network":{"type":"string"},"address":{"type":"string"},"label":{"type":"string"},"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"abuse":{"anyOf":[{"type":"string"},{"type":"null"}]},"concepts":{"type":"array","items":{"type":"string"}},"actorId":{"anyOf":[{"type":"string"},{"type":"null"}]},"confidence":{"anyOf":[{"type":"string"},{"type":"null"}]},"confidenceLevel":{"anyOf":[{"type":"number"},{"type":"null"}]},"categoryWeight":{"anyOf":[{"type":"number"},{"type":"null"}]},"contributionScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"isSanctionsConcept":{"type":"boolean"},"source":{"anyOf":[{"type":"string"},{"type":"null"}]},"packFile":{"type":"string"},"packTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastmod":{"anyOf":[{"type":"string"},{"type":"null"}]},"isClusterDefiner":{"type":"boolean"}}}},"sameActorAddresses":{"description":"Other addresses the corpus tags under the same declared actor as a matched tag on this address. Not blockchain-transaction exposure propagation: this engine ingests no transaction-graph data at all. Never counted toward `score`.","type":"array","items":{"type":"object","required":["network","address","label","packFile"],"properties":{"network":{"type":"string"},"address":{"type":"string"},"label":{"type":"string"},"packFile":{"type":"string"}}}},"frozenDecisionArtifact":{"type":"object","required":["engineVersion","riskWeightsHash","tagpackEtlRunId"],"properties":{"engineVersion":{"type":"string"},"riskWeightsHash":{"description":"SHA-256 hex digest of the full risk-weights configuration in force for this score.","type":"string"},"tagpackEtlRunId":{"description":"ID of the latest completed GraphSense TagPacks ingestion run this score was computed against. Always null in sandbox mode (synthetic fixture data comes from no ingestion run), and null in live mode only if no ingestion run has ever completed successfully.","anyOf":[{"type":"string"},{"type":"null"}]}}},"meta":{"type":"object","required":["mode","sandboxOverride"],"properties":{"mode":{"anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["live"]}]},"sandboxOverride":{"type":"boolean"}}}}},"examples":{"sandboxLow":{"summary":"LOW: a single, low-severity synthetic tag (sandbox mode)","value":{"network":"BTC","address":"1SandboxLowRiskExchangeFAKE00001","addressLookup":"1SandboxLowRiskExchangeFAKE00001","score":6,"classification":"LOW","matchedTags":[{"network":"BTC","address":"1SandboxLowRiskExchangeFAKE00001","label":"Sandbox Synthetic Exchange (fake, for API testing only, not a real entity)","category":"exchange","abuse":null,"concepts":[],"actorId":null,"confidence":"service_data","confidenceLevel":50,"categoryWeight":12,"contributionScore":6,"isSanctionsConcept":false,"source":null,"packFile":"sandbox/synthetic-fixtures","packTitle":"Nexiel Sandbox Synthetic Fixtures (fake data, never from GraphSense TagPacks)","lastmod":null,"isClusterDefiner":false}],"excludedTags":[],"sameActorAddresses":[],"frozenDecisionArtifact":{"engineVersion":"0.1.0","riskWeightsHash":"be3b2339f08e725fa510d37c5fdc0b4364a1143601dcd209cf355b946146f298","tagpackEtlRunId":null},"meta":{"mode":"sandbox","sandboxOverride":false}}},"sandboxHigh":{"summary":"HIGH: a maximum-severity synthetic tag (sandbox mode)","value":{"network":"BTC","address":"1SandboxHighRiskTerrorismFAKE003","addressLookup":"1SandboxHighRiskTerrorismFAKE003","score":100,"classification":"HIGH","matchedTags":[{"network":"BTC","address":"1SandboxHighRiskTerrorismFAKE003","label":"Sandbox Synthetic Terrorism-Financing Wallet (fake, for API testing only, not a real entity)","category":null,"abuse":"terrorism_financing","concepts":[],"actorId":null,"confidence":"ledger_immanent","confidenceLevel":100,"categoryWeight":100,"contributionScore":100,"isSanctionsConcept":false,"source":null,"packFile":"sandbox/synthetic-fixtures","packTitle":"Nexiel Sandbox Synthetic Fixtures (fake data, never from GraphSense TagPacks)","lastmod":null,"isClusterDefiner":false}],"excludedTags":[],"sameActorAddresses":[],"frozenDecisionArtifact":{"engineVersion":"0.1.0","riskWeightsHash":"be3b2339f08e725fa510d37c5fdc0b4364a1143601dcd209cf355b946146f298","tagpackEtlRunId":null},"meta":{"mode":"sandbox","sandboxOverride":false}}},"untagged":{"summary":"UNTAGGED: no evidence found (absence of evidence, never proof of safety)","value":{"network":"BTC","address":"1SandboxNoDataAtAllFAKE0000000007","addressLookup":"1SandboxNoDataAtAllFAKE0000000007","score":null,"classification":"UNTAGGED","matchedTags":[],"excludedTags":[],"sameActorAddresses":[],"frozenDecisionArtifact":{"engineVersion":"0.1.0","riskWeightsHash":"be3b2339f08e725fa510d37c5fdc0b4364a1143601dcd209cf355b946146f298","tagpackEtlRunId":null},"meta":{"mode":"sandbox","sandboxOverride":false}}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/onboarding/status":{"get":{"operationId":"getOnboardingStatus","summary":"Whether self-serve KYB onboarding is currently open","tags":["Agents"],"description":"Public and unauthenticated. `selfServeKybOpen` is true when `POST /v1/onboarding/kyb-applications` is accepting applications, and false while onboarding is invitation-only (that endpoint then returns `403 onboarding_closed`). The response may be cached for up to 30 seconds.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["selfServeKybOpen"],"properties":{"selfServeKybOpen":{"type":"boolean"}}},"example":{"selfServeKybOpen":false}}}}},"parameters":[{"$ref":"#/components/parameters/NexielVersion"}]}},"/v1/onboarding/kyb-applications":{"post":{"operationId":"draftKybOnboardingRecommendation","summary":"[Onboarding Agent] Draft a KYB onboarding recommendation from signup input (never a decision)","tags":["Agents"],"description":"Normalizes free-text signup input, using an AI model in production (the AI provider is listed as a sub-processor at https://nexiel.eu/privacy) and a deterministic rule-based normalizer in sandbox mode. It then runs the same registry verification, UBO and director plausibility check, and entity and person sanctions/PEP screening a real KYB application would, and saves exactly one onboarding draft. It never creates a client or a KYB application.\n\n`recommendation` is advisory only (SUBMIT_RECOMMENDED, NEEDS_INFO_RECOMMENDED, or DO_NOT_SUBMIT_RECOMMENDED), and its values are named differently from every KYB application status so one can never be mistaken for the other. A human reviewer must explicitly act on this draft before any KYB application exists for it, and that application always starts in NEEDS_REVIEW however clean this draft looked. Only a second, independent human decision can approve or reject it. `advisoryFlags` are informational normalization notes, never a gate.\n\n`Idempotency-Key` is enforced server-side, scoped to this applicant (registryCountry and registryNumber), because no client identity exists yet at this point. For the same reason, abuse protection here is a rate limit keyed on source IP, with a deliberately low burst and hourly budget, instead of the per-client limit every authenticated route uses. Exceeding it returns a `429` with a `Retry-After` header, the same contract as `POST /v1/screen`'s rate limit. If the AI normalization step is briefly unavailable, the submission is still drafted by the rule-based normalizer and marked as such for the reviewer, with `draftedBy` naming both. Only if that also fails does this return a `503` with error code `onboarding_temporarily_unavailable` and a `Retry-After` header. Nothing is saved in that case and the `Idempotency-Key` stays unused, so retrying the same request is safe. While self-serve onboarding is closed (see `GET /v1/onboarding/status`), this endpoint returns `403 onboarding_closed` before doing any work.","requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["legalName","registryCountry","registryNumber","persons"],"properties":{"legalName":{"minLength":1,"maxLength":500,"type":"string"},"registryCountry":{"minLength":2,"maxLength":2,"type":"string"},"registryNumber":{"minLength":1,"maxLength":100,"type":"string"},"persons":{"maxItems":50,"type":"array","items":{"additionalProperties":false,"type":"object","required":["role","fullName"],"properties":{"role":{"minLength":1,"maxLength":100,"type":"string"},"fullName":{"minLength":1,"maxLength":500,"type":"string"},"dob":{"maxLength":100,"type":"string"},"nationality":{"maxLength":100,"type":"string"},"ownershipPercentage":{"anyOf":[{"type":"number"},{"maxLength":20,"type":"string"}]},"controlBasis":{"maxLength":500,"type":"string"}}}},"contactEmail":{"format":"email","maxLength":254,"type":"string"}}}}}},"parameters":[{"$ref":"#/components/parameters/NexielVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["draftId","recommendation","registryResult","plausibilityPassed","screeningHit","advisoryFlags","draftedBy","idempotencyReplay"],"properties":{"draftId":{"description":"ID of the new onboarding draft. This is not a KYB application ID: no application exists yet.","type":"string"},"recommendation":{"anyOf":[{"type":"string","enum":["SUBMIT_RECOMMENDED"]},{"type":"string","enum":["NEEDS_INFO_RECOMMENDED"]},{"type":"string","enum":["DO_NOT_SUBMIT_RECOMMENDED"]}]},"registryResult":{"anyOf":[{"type":"string","enum":["VERIFIED"]},{"type":"string","enum":["NOT_FOUND"]},{"type":"string","enum":["INACTIVE"]},{"type":"string","enum":["UNSUPPORTED_JURISDICTION"]},{"type":"string","enum":["LOOKUP_FAILED"]}]},"plausibilityPassed":{"type":"boolean"},"screeningHit":{"type":"boolean"},"advisoryFlags":{"type":"array","items":{"type":"string"}},"draftedBy":{"description":"Which normalizer produced this draft's normalized fields. When the AI normalizer was unavailable and the rule-based normalizer stood in, this names both.","type":"string"},"idempotencyReplay":{"description":"True when this result was served from a prior identical submission, not a fresh one.","type":"boolean"}}},"example":{"draftId":"ac803923-a621-43ae-a2c3-688cd36d95f1","recommendation":"SUBMIT_RECOMMENDED","registryResult":"VERIFIED","plausibilityPassed":false,"screeningHit":false,"advisoryFlags":["advisoryFlag"],"draftedBy":"draftedBy","idempotencyReplay":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/onboarding/waitlist":{"post":{"operationId":"joinWaitlist","summary":"Join the Nexiel waiting list","tags":["Onboarding"],"description":"Adds a work email address (and, optionally, a name and company) to the Nexiel waiting list. The response is always `201` with `{ \"received\": true }` for a well-formed request: it does not say whether the address was already on the list. Sending the same address again is safe and simply refreshes the existing entry, so no `Idempotency-Key` is needed. This endpoint needs no API key and is rate limited per source IP address. Exceeding the limit returns a `429` with a `Retry-After` header. How Nexiel uses and keeps these details is described at https://nexiel.eu/privacy.","requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["email"],"properties":{"email":{"minLength":3,"maxLength":320,"description":"Work email address.","type":"string","example":"ada@example.eu"},"name":{"maxLength":200,"description":"Your name (optional).","type":"string","example":"Ada Lovelace"},"company":{"maxLength":200,"description":"Your company (optional).","type":"string","example":"Example Ltd"}}}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["received"],"properties":{"received":{"type":"boolean","enum":[true]}}},"example":{"received":true}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"$ref":"#/components/parameters/NexielVersion"}]}},"/v1/screen/gdpr/export":{"get":{"operationId":"exportGdprData","summary":"GDPR Article 15 (right of access): export everything Nexiel Screen holds about the calling API key","tags":["GDPR"],"description":"Scoped strictly to the authenticated bearer token's own client, never another client's data. Includes this key's own audit log entries and, if this key is linked to a KYB/CDD record, your organization's client, KYB application, UBO and director, and KYB check records in full. This is self-declared UBO and director data your organization submitted. Article 15 access to it is never legally restricted, only Article 17 erasure is. `kyb.linked: false` means no such record is on file for this specific API key (for example, a key created before this link existed), and is always reported explicitly. If your organization has turned on source restrictions, a request returns `403 client_access_restricted`, even with a valid credential, unless its source IP is in one of your allowed IP ranges or its `Origin` header matches one of your allowed domains. IP ranges match IPv4 addresses only. Source restrictions are off by default. Manage them under Organization, Source restrictions in your dashboard (by default, organization Admins and Owners can do this, and saving changes requires an approved KYB application).","security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["identity","kyb","auditLog"],"properties":{"identity":{"type":"object","required":["keycloakClientId"],"properties":{"keycloakClientId":{"type":"string"}}},"kyb":{"anyOf":[{"type":"object","required":["linked"],"properties":{"linked":{"type":"boolean","enum":[false]}}},{"type":"object","required":["linked","client","applications","ubos","checks"],"properties":{"linked":{"type":"boolean","enum":[true]},"client":{"type":"object","required":["id","legalName","registryCountry","registryNumber","kybStatus","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"legalName":{"type":"string"},"registryCountry":{"type":"string"},"registryNumber":{"type":"string"},"kybStatus":{"anyOf":[{"type":"string","enum":["PENDING"]},{"type":"string","enum":["NEEDS_REVIEW"]},{"type":"string","enum":["APPROVED"]},{"type":"string","enum":["REJECTED"]},{"type":"string","enum":["NOT_STARTED"]}]},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}}},"applications":{"type":"array","items":{"type":"object","required":["id","status","reviewedBy","reviewedAt","reviewNotes","submittedAt","decidedAt"],"properties":{"id":{"type":"string"},"status":{"anyOf":[{"type":"string","enum":["PENDING"]},{"type":"string","enum":["NEEDS_REVIEW"]},{"type":"string","enum":["APPROVED"]},{"type":"string","enum":["REJECTED"]},{"type":"string","enum":["NOT_STARTED"]}]},"reviewedBy":{"description":"`nexiel-compliance` when the Nexiel compliance team reviewed and decided this application, or `null` when it was decided automatically or has not been decided yet.","anyOf":[{"type":"string","enum":["nexiel-compliance"]},{"type":"null"}]},"reviewedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reviewNotes":{"anyOf":[{"type":"string"},{"type":"null"}]},"submittedAt":{"format":"date-time","type":"string"},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"ubos":{"type":"array","items":{"type":"object","required":["id","applicationId","role","fullName","dob","nationality","ownershipPercentage","controlBasis","screeningClassification","createdAt"],"properties":{"id":{"type":"string"},"applicationId":{"type":"string"},"role":{"type":"string"},"fullName":{"type":"string"},"dob":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownershipPercentage":{"anyOf":[{"type":"number"},{"type":"null"}]},"controlBasis":{"anyOf":[{"type":"string"},{"type":"null"}]},"screeningClassification":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"format":"date-time","type":"string"}}}},"checks":{"type":"array","items":{"type":"object","required":["id","applicationId","checkType","subjectRef","result","createdAt"],"properties":{"id":{"type":"string"},"applicationId":{"type":"string"},"checkType":{"type":"string"},"subjectRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"type":"string"},"createdAt":{"format":"date-time","type":"string"}}}}}}]},"auditLog":{"type":"array","items":{"type":"object","required":["clientSeq","eventType","payload","createdAt"],"properties":{"clientSeq":{"description":"Sequential audit log position for this client, returned as a decimal string because the underlying value can exceed safe JSON number precision.","type":"string"},"eventType":{"type":"string"},"payload":{},"createdAt":{"format":"date-time","type":"string"}}}}}},"example":{"identity":{"keycloakClientId":"80be66fc-771c-433a-a3eb-fb1d9c99282d"},"kyb":{"linked":false},"auditLog":[{"clientSeq":"clientSeq","eventType":"eventType","payload":{},"createdAt":"2026-11-19T10:00:00.000Z"}]}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"$ref":"#/components/parameters/NexielVersion"}]}},"/v1/screen/gdpr/erasure-requests":{"post":{"operationId":"createGdprErasureRequest","summary":"GDPR Article 17 (right to erasure), scoped to what is legally safe to erase today","tags":["GDPR"],"description":"Deletes only the stored idempotency records for this caller (cached responses that hold no PII). Never touches your KYB application, UBO and director, or KYB check records: EU AML Directives require self-declared UBO and director CDD records to be retained for the life of the business relationship plus a statutory period. Erasing them requires a documented legal determination, made by Nexiel outside this endpoint, that the retention period has lapsed. Also never touches the audit log, an append-only hash chain. `requiresLegalReview` is non-null exactly when this caller has a linked KYB/CDD record, and reports counts only, never the underlying data. If your organization has turned on source restrictions, a request returns `403 client_access_restricted`, even with a valid credential, unless its source IP is in one of your allowed IP ranges or its `Origin` header matches one of your allowed domains. IP ranges match IPv4 addresses only. Source restrictions are off by default. Manage them under Organization, Source restrictions in your dashboard (by default, organization Admins and Owners can do this, and saving changes requires an approved KYB application).","security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["erased","requiresLegalReview","retainedImmutably"],"properties":{"erased":{"type":"object","required":["idempotencyKeys","evidencePacks"],"properties":{"idempotencyKeys":{"description":"Stored idempotency records deleted for this caller. They hold no PII, so they are safe to delete on request.","type":"number"},"evidencePacks":{"description":"Encrypted evidence packs Nexiel was still holding for this caller (pushed and not yet acknowledged, or awaiting their one pull after a failed push), deleted together with their webhook events. The hash of each stays.","type":"number"}}},"requiresLegalReview":{"description":"Non-null when this caller has a linked KYB/CDD record. Those records are never deleted by this endpoint, and only counts are reported, so this response can never become a second PII disclosure. Erasing them requires a documented legal determination, made by Nexiel, that the statutory AML retention period has lapsed for this specific client.","anyOf":[{"type":"null"},{"type":"object","required":["kybApplications","kybUbos","kybChecks","reason"],"properties":{"kybApplications":{"type":"number"},"kybUbos":{"type":"number"},"kybChecks":{"type":"number"},"reason":{"type":"string"}}}]},"retainedImmutably":{"type":"object","required":["auditLogRows"],"properties":{"auditLogRows":{"description":"Audit log rows for this caller. Never deletable, by design: the audit log is an append-only hash chain.","type":"number"}}}}},"example":{"erased":{"idempotencyKeys":1,"evidencePacks":1},"requiresLegalReview":{"kybApplications":1,"kybUbos":1,"kybChecks":1,"reason":"reason"},"retainedImmutably":{"auditLogRows":1}}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"$ref":"#/components/parameters/NexielVersion"}]}},"/v1/screen/usage":{"get":{"operationId":"getUsage","summary":"Per-client API usage: request volume by day/month, and screening decisions by classification","tags":["Usage"],"description":"Scoped strictly to the authenticated bearer token's own client, never another client's usage. `requestVolume` is counted from the same per-client, hourly request tracking that anomaly detection uses. `decisions` is counted from the screening decisions in your audit log. Defaults to a trailing 90-day window ending now when `from` and `to` are omitted. The widest single request this endpoint accepts is 366 days. If your organization has turned on source restrictions, a request returns `403 client_access_restricted`, even with a valid credential, unless its source IP is in one of your allowed IP ranges or its `Origin` header matches one of your allowed domains. IP ranges match IPv4 addresses only. Source restrictions are off by default. Manage them under Organization, Source restrictions in your dashboard (by default, organization Admins and Owners can do this, and saving changes requires an approved KYB application).","parameters":[{"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"example":"2026-06-01","in":"query","name":"from","required":false,"description":"Start of the reporting window (inclusive), UTC calendar date. Defaults to 90 days before `to`."},{"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"example":"2026-07-01","in":"query","name":"to","required":false,"description":"End of the reporting window (exclusive), UTC calendar date. Defaults to today."},{"$ref":"#/components/parameters/NexielVersion"}],"security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["clientId","service","window","requestVolume","decisions"],"properties":{"clientId":{"type":"string"},"service":{"type":"string","enum":["screen"]},"window":{"type":"object","required":["from","to"],"properties":{"from":{"format":"date-time","type":"string"},"to":{"format":"date-time","type":"string"}}},"requestVolume":{"type":"object","required":["total","daily","monthly"],"properties":{"total":{"description":"Total requests this client made against Nexiel Screen in the window. Counted from the same per-client, per-service, hourly request-volume tracking used for anomaly detection (authenticated production requests only). Sandbox-mode traffic has no per-client identity to attribute this to, so it is never counted here.","type":"number"},"daily":{"type":"array","items":{"type":"object","required":["date","count"],"properties":{"date":{"description":"UTC calendar date, YYYY-MM-DD.","type":"string"},"count":{"type":"number"}}}},"monthly":{"type":"array","items":{"type":"object","required":["month","count"],"properties":{"month":{"description":"UTC calendar month, YYYY-MM.","type":"string"},"count":{"type":"number"}}}}}},"decisions":{"type":"object","required":["total","byClassification"],"properties":{"total":{"description":"Total completed screening decisions for this client in the window.","type":"number"},"byClassification":{"type":"object","required":["CLEAR","POSSIBLE_MATCH","CONFIRMED_MATCH"],"properties":{"CLEAR":{"type":"number"},"POSSIBLE_MATCH":{"type":"number"},"CONFIRMED_MATCH":{"type":"number"}}}}}}},"example":{"clientId":"ee914811-4225-4132-a632-cba8ae04e3b9","service":"screen","window":{"from":"2026-11-19T10:00:00.000Z","to":"2026-11-19T10:00:00.000Z"},"requestVolume":{"total":1,"daily":[{"date":"2026-11-19T10:00:00.000Z","count":1}],"monthly":[{"month":"month","count":1}]},"decisions":{"total":1,"byClassification":{"CLEAR":1,"POSSIBLE_MATCH":1,"CONFIRMED_MATCH":1}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/screen/evidence-pack-delivery":{"get":{"operationId":"getEvidencePackDeliverySettings","summary":"Get how evidence packs are delivered","tags":["Evidence packs"],"description":"The evidence-pack delivery mode for this product in your API key's environment (sandbox for a test key, production for a live key). With no choice made, delivery is `pull`.","security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["settings"],"properties":{"settings":{"type":"array","items":{"type":"object","required":["environment","mode","webhookEndpointId","updatedAt"],"properties":{"environment":{"anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["production"]}]},"mode":{"description":"`pull`: you fetch the pack yourself (the default). `push`: Nexiel posts the pack to the webhook endpoint you choose and deletes it as soon as that endpoint acknowledges it with a 2xx; if every attempt fails, the pack is deleted undelivered. `push_then_pull_fallback`: the same push, but if every attempt fails you can still fetch the pack once by pull until it expires, 7 days after the decision.","anyOf":[{"type":"string","enum":["pull"]},{"type":"string","enum":["push"]},{"type":"string","enum":["push_then_pull_fallback"]}]},"webhookEndpointId":{"description":"The one endpoint pushed packs go to. Null for pull.","anyOf":[{"format":"uuid","type":"string"},{"type":"null"}]},"updatedAt":{"description":"Null while the default (pull) has never been changed.","anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]}}}}}},"example":{"settings":[{"environment":"sandbox","mode":"pull","webhookEndpointId":"a7dd814c-1139-4540-a5a4-85ddd99cd84d","updatedAt":"2026-11-19T10:00:00.000Z"}]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"$ref":"#/components/parameters/NexielVersion"}]}},"/v1/screen/evidence-pack-delivery/{environment}":{"put":{"operationId":"setEvidencePackDeliverySetting","summary":"Choose how evidence packs are delivered","tags":["Evidence packs"],"description":"Sets the delivery mode for one environment, which must be your API key's own (sandbox for a test key, production for a live key). Push modes name the one webhook endpoint the packs go to: it must be enabled and of the same environment, and no other endpoint ever receives a pack. The change applies to packs made after it; a pack already made keeps the mode it was made under. While an endpoint receives evidence packs it cannot be disabled or deleted. Send an `Idempotency-Key` header to make a retry safe.","requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["mode"],"properties":{"mode":{"description":"`pull`: you fetch the pack yourself (the default). `push`: Nexiel posts the pack to the webhook endpoint you choose and deletes it as soon as that endpoint acknowledges it with a 2xx; if every attempt fails, the pack is deleted undelivered. `push_then_pull_fallback`: the same push, but if every attempt fails you can still fetch the pack once by pull until it expires, 7 days after the decision.","anyOf":[{"type":"string","enum":["pull"]},{"type":"string","enum":["push"]},{"type":"string","enum":["push_then_pull_fallback"]}]},"webhookEndpointId":{"description":"Required for `push` and `push_then_pull_fallback`: an enabled endpoint of the same environment. Omit, or send null, for `pull`.","anyOf":[{"format":"uuid","type":"string"},{"type":"null"}]}}}}}},"parameters":[{"schema":{"anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["production"]}]},"in":"path","name":"environment","required":true},{"$ref":"#/components/parameters/NexielVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["environment","mode","webhookEndpointId","updatedAt"],"properties":{"environment":{"anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["production"]}]},"mode":{"description":"`pull`: you fetch the pack yourself (the default). `push`: Nexiel posts the pack to the webhook endpoint you choose and deletes it as soon as that endpoint acknowledges it with a 2xx; if every attempt fails, the pack is deleted undelivered. `push_then_pull_fallback`: the same push, but if every attempt fails you can still fetch the pack once by pull until it expires, 7 days after the decision.","anyOf":[{"type":"string","enum":["pull"]},{"type":"string","enum":["push"]},{"type":"string","enum":["push_then_pull_fallback"]}]},"webhookEndpointId":{"description":"The one endpoint pushed packs go to. Null for pull.","anyOf":[{"format":"uuid","type":"string"},{"type":"null"}]},"updatedAt":{"description":"Null while the default (pull) has never been changed.","anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]}}},"example":{"environment":"sandbox","mode":"pull","webhookEndpointId":"a7dd814c-1139-4540-a5a4-85ddd99cd84d","updatedAt":"2026-11-19T10:00:00.000Z"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/screen/webhook-event-types":{"get":{"operationId":"listWebhookEventTypes","summary":"List the webhook event types","tags":["Webhooks"],"description":"The catalogue of event types you can subscribe an endpoint to.","security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["eventTypes"],"properties":{"eventTypes":{"type":"array","items":{"type":"object","required":["type","product","description"],"properties":{"type":{"type":"string"},"product":{"anyOf":[{"type":"string","enum":["screen"]},{"type":"string","enum":["verify"]},{"type":"string","enum":["credentials"]},{"type":"string","enum":["platform"]}]},"description":{"type":"string"}}}}}},"example":{"eventTypes":[{"type":"type","product":"screen","description":"description"}]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"$ref":"#/components/parameters/NexielVersion"}]}},"/v1/screen/webhook-endpoints":{"get":{"operationId":"listWebhookEndpoints","summary":"List webhook endpoints","tags":["Webhooks"],"description":"Every webhook endpoint of your organization in your API key's environment (sandbox for a test key, production for a live key), newest first. Secrets are never listed. Paginated: pass `nextCursor` as `starting_after` for the next page. `endpoints` is a deprecated copy of `data`.","parameters":[{"schema":{"minimum":1,"maximum":100,"default":100,"type":"integer"},"in":"query","name":"limit","required":false,"description":"How many items to return, 1 to 100. Defaults to 100; when `hasMore` is true, pass `nextCursor` as `starting_after` for the rest."},{"schema":{"minLength":1,"maxLength":200,"type":"string"},"in":"query","name":"starting_after","required":false,"description":"Return the items after this one: the `nextCursor` of the previous page, or the id of an item in the list."},{"schema":{"minLength":1,"maxLength":200,"deprecated":true,"type":"string"},"in":"query","name":"cursor","required":false,"description":"Deprecated alias of `starting_after`; send `starting_after` instead."},{"schema":{"maxLength":40,"type":"string"},"example":"2026-11-01T00:00:00Z","in":"query","name":"created[gt]","required":false,"description":"Only items created after this time. An ISO 8601 date-time (UTC if no offset is given) or Unix seconds."},{"schema":{"maxLength":40,"type":"string"},"example":"2026-11-01T00:00:00Z","in":"query","name":"created[gte]","required":false,"description":"Only items created at or after this time. An ISO 8601 date-time (UTC if no offset is given) or Unix seconds."},{"schema":{"maxLength":40,"type":"string"},"example":"2026-11-01T00:00:00Z","in":"query","name":"created[lt]","required":false,"description":"Only items created before this time. An ISO 8601 date-time (UTC if no offset is given) or Unix seconds."},{"schema":{"maxLength":40,"type":"string"},"example":"2026-11-01T00:00:00Z","in":"query","name":"created[lte]","required":false,"description":"Only items created at or before this time. An ISO 8601 date-time (UTC if no offset is given) or Unix seconds."},{"$ref":"#/components/parameters/NexielVersion"}],"security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Page"},{"type":"object","required":["data"],"properties":{"data":{"description":"The items of this page, newest first.","type":"array","items":{"type":"object","required":["id","url","description","eventTypes","environment","active","createdAt","updatedAt","secretRotatedAt","previousSecretExpiresAt"],"properties":{"id":{"format":"uuid","type":"string"},"url":{"description":"The https URL events are posted to.","type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"eventTypes":{"description":"The subscribed event types. An empty list means every event type.","type":"array","items":{"type":"string"}},"environment":{"description":"`production` endpoints receive live events and need an approved KYB verification. `sandbox` endpoints receive only events produced in sandbox mode.","anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["production"]}]},"active":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"secretRotatedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"previousSecretExpiresAt":{"description":"While a rotation overlap is open, when the previous secret stops signing deliveries.","anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]}}}},"endpoints":{"deprecated":true,"description":"Deprecated: the same items as `data`, under this list's previous name. Read `data` instead; `endpoints` will be removed in a future API version.","type":"array","items":{"type":"object","required":["id","url","description","eventTypes","environment","active","createdAt","updatedAt","secretRotatedAt","previousSecretExpiresAt"],"properties":{"id":{"format":"uuid","type":"string"},"url":{"description":"The https URL events are posted to.","type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"eventTypes":{"description":"The subscribed event types. An empty list means every event type.","type":"array","items":{"type":"string"}},"environment":{"description":"`production` endpoints receive live events and need an approved KYB verification. `sandbox` endpoints receive only events produced in sandbox mode.","anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["production"]}]},"active":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"secretRotatedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"previousSecretExpiresAt":{"description":"While a rotation overlap is open, when the previous secret stops signing deliveries.","anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]}}}}}}]},"example":{"data":[{"id":"aac39e3a-0c40-44b2-a697-b597f357c5a9","url":"https://example.com/url","description":"description","eventTypes":["eventType"],"environment":"sandbox","active":false,"createdAt":"2026-11-19T10:00:00.000Z","updatedAt":"2026-11-19T10:00:00.000Z","secretRotatedAt":"2026-11-19T10:00:00.000Z","previousSecretExpiresAt":"2026-11-19T10:00:00.000Z"}],"hasMore":true,"nextCursor":"MjAyNi0xMS0xOVQxMDowMDowMC4wMDAwMDBafDM3OTFjMDhkLTcyZGQtNDAwMi1hOWZmLTFlMTRhMTFjMDdlNQ","endpoints":[{"id":"aac39e3a-0c40-44b2-a697-b597f357c5a9","url":"https://example.com/url","description":"description","eventTypes":["eventType"],"environment":"sandbox","active":false,"createdAt":"2026-11-19T10:00:00.000Z","updatedAt":"2026-11-19T10:00:00.000Z","secretRotatedAt":"2026-11-19T10:00:00.000Z","previousSecretExpiresAt":"2026-11-19T10:00:00.000Z"}]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createWebhookEndpoint","summary":"Create a webhook endpoint","tags":["Webhooks"],"description":"Creates an endpoint and returns its signing secret once. Endpoints belong to your organization, so they keep receiving events across API key rotation and for every product. A test API key manages sandbox endpoints only and a live API key production endpoints only; `environment` defaults to the key's own. Production endpoints need an approved KYB verification. The URL must be a public https URL. Send an `Idempotency-Key` header to make a retry safe: a replay returns the endpoint without the secret (reveal it with the reveal route).","requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["url"],"properties":{"url":{"maxLength":2048,"description":"Must be a public https URL.","type":"string"},"description":{"maxLength":200,"type":"string"},"eventTypes":{"description":"Event types from the catalogue; omit or leave empty for all.","type":"array","items":{"type":"string"}},"environment":{"description":"`production` endpoints receive live events and need an approved KYB verification. `sandbox` endpoints receive only events produced in sandbox mode.","anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["production"]}]}}}}}},"security":[{"keycloakBearer":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["endpoint","secret"],"properties":{"endpoint":{"type":"object","required":["id","url","description","eventTypes","environment","active","createdAt","updatedAt","secretRotatedAt","previousSecretExpiresAt"],"properties":{"id":{"format":"uuid","type":"string"},"url":{"description":"The https URL events are posted to.","type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"eventTypes":{"description":"The subscribed event types. An empty list means every event type.","type":"array","items":{"type":"string"}},"environment":{"description":"`production` endpoints receive live events and need an approved KYB verification. `sandbox` endpoints receive only events produced in sandbox mode.","anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["production"]}]},"active":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"secretRotatedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"previousSecretExpiresAt":{"description":"While a rotation overlap is open, when the previous secret stops signing deliveries.","anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]}}},"secret":{"description":"The signing secret. Null when the response is an idempotent replay: the secret is never stored with the replay, reveal it with the reveal route.","anyOf":[{"type":"string"},{"type":"null"}]}}},"example":{"endpoint":{"id":"aac39e3a-0c40-44b2-a697-b597f357c5a9","url":"https://example.com/url","description":"description","eventTypes":["eventType"],"environment":"sandbox","active":false,"createdAt":"2026-11-19T10:00:00.000Z","updatedAt":"2026-11-19T10:00:00.000Z","secretRotatedAt":"2026-11-19T10:00:00.000Z","previousSecretExpiresAt":"2026-11-19T10:00:00.000Z"},"secret":"secret"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"$ref":"#/components/parameters/NexielVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/v1/screen/webhook-endpoints/{endpointId}":{"get":{"operationId":"getWebhookEndpoint","summary":"Get a webhook endpoint","tags":["Webhooks"],"parameters":[{"schema":{"format":"uuid","type":"string"},"in":"path","name":"endpointId","required":true},{"$ref":"#/components/parameters/NexielVersion"}],"security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","url","description","eventTypes","environment","active","createdAt","updatedAt","secretRotatedAt","previousSecretExpiresAt"],"properties":{"id":{"format":"uuid","type":"string"},"url":{"description":"The https URL events are posted to.","type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"eventTypes":{"description":"The subscribed event types. An empty list means every event type.","type":"array","items":{"type":"string"}},"environment":{"description":"`production` endpoints receive live events and need an approved KYB verification. `sandbox` endpoints receive only events produced in sandbox mode.","anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["production"]}]},"active":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"secretRotatedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"previousSecretExpiresAt":{"description":"While a rotation overlap is open, when the previous secret stops signing deliveries.","anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]}}},"example":{"id":"aac39e3a-0c40-44b2-a697-b597f357c5a9","url":"https://example.com/url","description":"description","eventTypes":["eventType"],"environment":"sandbox","active":false,"createdAt":"2026-11-19T10:00:00.000Z","updatedAt":"2026-11-19T10:00:00.000Z","secretRotatedAt":"2026-11-19T10:00:00.000Z","previousSecretExpiresAt":"2026-11-19T10:00:00.000Z"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateWebhookEndpoint","summary":"Update a webhook endpoint","tags":["Webhooks"],"description":"Change the URL, description, subscribed event types, or enable or disable the endpoint. The URL is checked again. Send an `Idempotency-Key` header to make a retry safe.","requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"url":{"maxLength":2048,"type":"string"},"description":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}]},"eventTypes":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"}}}}}},"parameters":[{"schema":{"format":"uuid","type":"string"},"in":"path","name":"endpointId","required":true},{"$ref":"#/components/parameters/NexielVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","url","description","eventTypes","environment","active","createdAt","updatedAt","secretRotatedAt","previousSecretExpiresAt"],"properties":{"id":{"format":"uuid","type":"string"},"url":{"description":"The https URL events are posted to.","type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"eventTypes":{"description":"The subscribed event types. An empty list means every event type.","type":"array","items":{"type":"string"}},"environment":{"description":"`production` endpoints receive live events and need an approved KYB verification. `sandbox` endpoints receive only events produced in sandbox mode.","anyOf":[{"type":"string","enum":["sandbox"]},{"type":"string","enum":["production"]}]},"active":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"secretRotatedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"previousSecretExpiresAt":{"description":"While a rotation overlap is open, when the previous secret stops signing deliveries.","anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]}}},"example":{"id":"aac39e3a-0c40-44b2-a697-b597f357c5a9","url":"https://example.com/url","description":"description","eventTypes":["eventType"],"environment":"sandbox","active":false,"createdAt":"2026-11-19T10:00:00.000Z","updatedAt":"2026-11-19T10:00:00.000Z","secretRotatedAt":"2026-11-19T10:00:00.000Z","previousSecretExpiresAt":"2026-11-19T10:00:00.000Z"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteWebhookEndpoint","summary":"Delete a webhook endpoint","tags":["Webhooks"],"description":"Deletes the endpoint and ends its pending deliveries. Its delivery history is kept. Send an `Idempotency-Key` header to make a retry safe: a replay answers 204 again.","parameters":[{"schema":{"format":"uuid","type":"string"},"in":"path","name":"endpointId","required":true},{"$ref":"#/components/parameters/NexielVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"keycloakBearer":[]}],"responses":{"204":{"description":"Deleted."},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/screen/webhook-endpoints/{endpointId}/secret/reveal":{"post":{"operationId":"revealWebhookEndpointSecret","summary":"Reveal the signing secret","tags":["Webhooks"],"description":"Returns the current signing secret (and the previous one while a rotation overlap is open). Every reveal is audited.","parameters":[{"schema":{"format":"uuid","type":"string"},"in":"path","name":"endpointId","required":true},{"$ref":"#/components/parameters/NexielVersion"}],"security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["secret","previousSecret","previousSecretExpiresAt"],"properties":{"secret":{"type":"string"},"previousSecret":{"anyOf":[{"type":"string"},{"type":"null"}]},"previousSecretExpiresAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]}}},"example":{"secret":"secret","previousSecret":"previousSecret","previousSecretExpiresAt":"2026-11-19T10:00:00.000Z"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/screen/webhook-endpoints/{endpointId}/secret/rotate":{"post":{"operationId":"rotateWebhookEndpointSecret","summary":"Rotate the signing secret","tags":["Webhooks"],"description":"Mints a new signing secret. The previous secret keeps signing alongside it for `overlapSeconds` (default 24 hours): each delivery then carries one `v1` signature per secret, so you can switch without dropping events. Send an `Idempotency-Key` header to make a retry safe: a replay returns no secret (reveal it with the reveal route).","requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"overlapSeconds":{"minimum":0,"maximum":604800,"description":"How long the previous secret keeps signing alongside the new one. Default 86400 (24 hours); 0 ends it immediately.","type":"integer"}}}}}},"parameters":[{"schema":{"format":"uuid","type":"string"},"in":"path","name":"endpointId","required":true},{"$ref":"#/components/parameters/NexielVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["secret","previousSecretExpiresAt"],"properties":{"secret":{"description":"Null on an idempotent replay; reveal it with the reveal route.","anyOf":[{"type":"string"},{"type":"null"}]},"previousSecretExpiresAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]}}},"example":{"secret":"secret","previousSecretExpiresAt":"2026-11-19T10:00:00.000Z"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/screen/webhook-endpoints/{endpointId}/test":{"post":{"operationId":"sendWebhookTestEvent","summary":"Send a test event","tags":["Webhooks"],"description":"Sends a signed `webhook.test` event to the endpoint at once, with one attempt, and returns what your receiver answered.","parameters":[{"schema":{"format":"uuid","type":"string"},"in":"path","name":"endpointId","required":true},{"$ref":"#/components/parameters/NexielVersion"}],"security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["eventId","deliveryId","outcome","responseStatus","error"],"properties":{"eventId":{"format":"uuid","type":"string"},"deliveryId":{"format":"uuid","type":"string"},"outcome":{"anyOf":[{"type":"string","enum":["delivered"]},{"type":"string","enum":["retrying"]},{"type":"string","enum":["exhausted"]}]},"responseStatus":{"anyOf":[{"type":"integer"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"example":{"eventId":"e21a1d38-2134-483c-a8c8-0e7149217645","deliveryId":"635eb6aa-a9fd-4ada-a86e-fcd7ab144c19","outcome":"delivered","responseStatus":1,"error":"error"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/screen/webhook-endpoints/{endpointId}/deliveries":{"get":{"operationId":"listWebhookDeliveries","summary":"List recent deliveries","tags":["Webhooks"],"description":"Deliveries to the endpoint, newest first, with status and the last response code. Paginated: pass `nextCursor` as `starting_after` for the next page. `deliveries` is a deprecated copy of `data`.","parameters":[{"schema":{"minimum":1,"maximum":100,"default":20,"type":"integer"},"in":"query","name":"limit","required":false,"description":"How many items to return, 1 to 100. Defaults to 20."},{"schema":{"minLength":1,"maxLength":200,"type":"string"},"in":"query","name":"starting_after","required":false,"description":"Return the items after this one: the `nextCursor` of the previous page, or the id of an item in the list."},{"schema":{"minLength":1,"maxLength":200,"deprecated":true,"type":"string"},"in":"query","name":"cursor","required":false,"description":"Deprecated alias of `starting_after`; send `starting_after` instead."},{"schema":{"maxLength":40,"type":"string"},"example":"2026-11-01T00:00:00Z","in":"query","name":"created[gt]","required":false,"description":"Only items created after this time. An ISO 8601 date-time (UTC if no offset is given) or Unix seconds."},{"schema":{"maxLength":40,"type":"string"},"example":"2026-11-01T00:00:00Z","in":"query","name":"created[gte]","required":false,"description":"Only items created at or after this time. An ISO 8601 date-time (UTC if no offset is given) or Unix seconds."},{"schema":{"maxLength":40,"type":"string"},"example":"2026-11-01T00:00:00Z","in":"query","name":"created[lt]","required":false,"description":"Only items created before this time. An ISO 8601 date-time (UTC if no offset is given) or Unix seconds."},{"schema":{"maxLength":40,"type":"string"},"example":"2026-11-01T00:00:00Z","in":"query","name":"created[lte]","required":false,"description":"Only items created at or before this time. An ISO 8601 date-time (UTC if no offset is given) or Unix seconds."},{"schema":{"format":"uuid","type":"string"},"in":"path","name":"endpointId","required":true},{"$ref":"#/components/parameters/NexielVersion"}],"security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Page"},{"type":"object","required":["data"],"properties":{"data":{"description":"The items of this page, newest first.","type":"array","items":{"type":"object","required":["id","eventId","eventType","status","attemptCount","maxAttempts","lastResponseStatus","lastError","lastAttemptAt","nextAttemptAt","createdAt"],"properties":{"id":{"format":"uuid","type":"string"},"eventId":{"format":"uuid","type":"string"},"eventType":{"type":"string"},"status":{"anyOf":[{"type":"string","enum":["PENDING"]},{"type":"string","enum":["FAILED"]},{"type":"string","enum":["DELIVERED"]},{"type":"string","enum":["EXHAUSTED"]}]},"attemptCount":{"type":"integer"},"maxAttempts":{"type":"integer"},"lastResponseStatus":{"anyOf":[{"type":"integer"},{"type":"null"}]},"lastError":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastAttemptAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"nextAttemptAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"createdAt":{"format":"date-time","type":"string"}}}},"deliveries":{"deprecated":true,"description":"Deprecated: the same items as `data`, under this list's previous name. Read `data` instead; `deliveries` will be removed in a future API version.","type":"array","items":{"type":"object","required":["id","eventId","eventType","status","attemptCount","maxAttempts","lastResponseStatus","lastError","lastAttemptAt","nextAttemptAt","createdAt"],"properties":{"id":{"format":"uuid","type":"string"},"eventId":{"format":"uuid","type":"string"},"eventType":{"type":"string"},"status":{"anyOf":[{"type":"string","enum":["PENDING"]},{"type":"string","enum":["FAILED"]},{"type":"string","enum":["DELIVERED"]},{"type":"string","enum":["EXHAUSTED"]}]},"attemptCount":{"type":"integer"},"maxAttempts":{"type":"integer"},"lastResponseStatus":{"anyOf":[{"type":"integer"},{"type":"null"}]},"lastError":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastAttemptAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"nextAttemptAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"createdAt":{"format":"date-time","type":"string"}}}}}}]},"example":{"data":[{"id":"aac39e3a-0c40-44b2-a697-b597f357c5a9","eventId":"e21a1d38-2134-483c-a8c8-0e7149217645","eventType":"eventType","status":"PENDING","attemptCount":1,"maxAttempts":1,"lastResponseStatus":1,"lastError":"lastError","lastAttemptAt":"2026-11-19T10:00:00.000Z","nextAttemptAt":"2026-11-19T10:00:00.000Z","createdAt":"2026-11-19T10:00:00.000Z"}],"hasMore":true,"nextCursor":"MjAyNi0xMS0xOVQxMDowMDowMC4wMDAwMDBafDM3OTFjMDhkLTcyZGQtNDAwMi1hOWZmLTFlMTRhMTFjMDdlNQ","deliveries":[{"id":"aac39e3a-0c40-44b2-a697-b597f357c5a9","eventId":"e21a1d38-2134-483c-a8c8-0e7149217645","eventType":"eventType","status":"PENDING","attemptCount":1,"maxAttempts":1,"lastResponseStatus":1,"lastError":"lastError","lastAttemptAt":"2026-11-19T10:00:00.000Z","nextAttemptAt":"2026-11-19T10:00:00.000Z","createdAt":"2026-11-19T10:00:00.000Z"}]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/screen/events":{"get":{"operationId":"listEvents","summary":"List events","tags":["Webhooks"],"description":"Events of your organization in your API key's environment (test events for a test key, live events for a live key), newest first, for the last 30 days. Each item is the same envelope a webhook delivery carries, so a receiver that missed deliveries can catch up here. Event data holds identifiers, outcomes and hashes only, never personal data, and never an evidence pack: claim or receive the pack through its own delivery. Paginated: pass `nextCursor` as `starting_after` for the next page.","parameters":[{"schema":{"minimum":1,"maximum":100,"default":20,"type":"integer"},"in":"query","name":"limit","required":false,"description":"How many items to return, 1 to 100. Defaults to 20."},{"schema":{"minLength":1,"maxLength":200,"type":"string"},"in":"query","name":"starting_after","required":false,"description":"Return the items after this one: the `nextCursor` of the previous page, or the id of an item in the list."},{"schema":{"minLength":1,"maxLength":200,"deprecated":true,"type":"string"},"in":"query","name":"cursor","required":false,"description":"Deprecated alias of `starting_after`; send `starting_after` instead."},{"schema":{"maxLength":40,"type":"string"},"example":"2026-11-01T00:00:00Z","in":"query","name":"created[gt]","required":false,"description":"Only items created after this time. An ISO 8601 date-time (UTC if no offset is given) or Unix seconds."},{"schema":{"maxLength":40,"type":"string"},"example":"2026-11-01T00:00:00Z","in":"query","name":"created[gte]","required":false,"description":"Only items created at or after this time. An ISO 8601 date-time (UTC if no offset is given) or Unix seconds."},{"schema":{"maxLength":40,"type":"string"},"example":"2026-11-01T00:00:00Z","in":"query","name":"created[lt]","required":false,"description":"Only items created before this time. An ISO 8601 date-time (UTC if no offset is given) or Unix seconds."},{"schema":{"maxLength":40,"type":"string"},"example":"2026-11-01T00:00:00Z","in":"query","name":"created[lte]","required":false,"description":"Only items created at or before this time. An ISO 8601 date-time (UTC if no offset is given) or Unix seconds."},{"schema":{"maxLength":2000,"type":"string"},"example":"verify.session.completed,verify.session.failed","in":"query","name":"type","required":false,"description":"Only events of these types: comma-separated event types, or families such as `verify.session.*`."},{"$ref":"#/components/parameters/NexielVersion"}],"security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Page"},{"type":"object","required":["data"],"properties":{"data":{"description":"The items of this page, newest first.","type":"array","items":{"$ref":"#/components/schemas/WebhookEvent"}}}}]},"example":{"data":[{"id":"aac39e3a-0c40-44b2-a697-b597f357c5a9","type":"verify.session.completed","apiVersion":"2026-11-19","livemode":false,"createdAt":"2026-11-19T10:00:00.000Z","data":{}}],"hasMore":true,"nextCursor":"MjAyNi0xMS0xOVQxMDowMDowMC4wMDAwMDBafDM3OTFjMDhkLTcyZGQtNDAwMi1hOWZmLTFlMTRhMTFjMDdlNQ"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/screen/events/{eventId}":{"get":{"operationId":"getEvent","summary":"Retrieve an event","tags":["Webhooks"],"description":"Events of your organization in your API key's environment (test events for a test key, live events for a live key), newest first, for the last 30 days. Each item is the same envelope a webhook delivery carries, so a receiver that missed deliveries can catch up here. Event data holds identifiers, outcomes and hashes only, never personal data, and never an evidence pack: claim or receive the pack through its own delivery. An event of another organization or environment, or older than 30 days, is answered 404.","parameters":[{"schema":{"format":"uuid","type":"string"},"in":"path","name":"eventId","required":true},{"$ref":"#/components/parameters/NexielVersion"}],"security":[{"keycloakBearer":[]}],"responses":{"200":{"description":"A platform event: the body of a webhook delivery, and an item of the Events API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"id":"aac39e3a-0c40-44b2-a697-b597f357c5a9","type":"verify.session.completed","apiVersion":"2026-11-19","livemode":false,"createdAt":"2026-11-19T10:00:00.000Z","data":{}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/screen/webhook-deliveries/{deliveryId}/redeliver":{"post":{"operationId":"redeliverWebhookDelivery","summary":"Redeliver a webhook","tags":["Webhooks"],"description":"Queues the delivery for another full round of attempts. The event id is unchanged, so deduplicate on it. Send an `Idempotency-Key` header to make a retry safe.","parameters":[{"schema":{"format":"uuid","type":"string"},"in":"path","name":"deliveryId","required":true},{"$ref":"#/components/parameters/NexielVersion"},{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"keycloakBearer":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["deliveryId","queued"],"properties":{"deliveryId":{"format":"uuid","type":"string"},"queued":{"type":"boolean"}}},"example":{"deliveryId":"635eb6aa-a9fd-4ada-a86e-fcd7ab144c19","queued":false}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"servers":[{"url":"https://compliance.nexiel.io","description":"Production"}],"webhooks":{"screening.decision.completed":{"post":{"tags":["Webhooks"],"summary":"screening.decision.completed","description":"A screening decision was made. Every delivery is a signed JSON object `{ id, type, apiVersion, livemode, createdAt, data }`; `id` is stable across retries, so deduplicate on it. Answer with any 2xx. Other answers are retried with exponential backoff and jitter for about three days.","parameters":[{"name":"X-Nexiel-Signature","in":"header","required":true,"description":"Timestamp and HMAC-SHA256 signature of the raw request body.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","apiVersion","livemode","createdAt","data"],"properties":{"id":{"type":"string","format":"uuid","description":"Stable, immutable event id. Deduplicate on it."},"type":{"type":"string","const":"screening.decision.completed"},"apiVersion":{"type":"string","description":"The API version the event is rendered in.","examples":["2026-11-19"]},"livemode":{"type":"boolean","description":"True for a live-mode event, false for test mode."},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"description":"Identifiers and hashes only; never personal data."}}}}}},"responses":{"200":{"description":"Acknowledged. Any 2xx status is treated as delivered."}}}},"screening.review.completed":{"post":{"tags":["Webhooks"],"summary":"screening.review.completed","description":"Your organization recorded a human review of a POSSIBLE_MATCH. Carries the decision reference, the outcome, the reviewer type and the time; never the notes, their fingerprint or your reviewer reference, and nothing about the person screened. Read the decision for the full review record. Every delivery is a signed JSON object `{ id, type, createdAt, data }`; `id` is stable across retries, so deduplicate on it. Answer with any 2xx. Other answers are retried with exponential backoff and jitter for about three days.","parameters":[{"name":"X-Nexiel-Signature","in":"header","required":true,"description":"Timestamp and HMAC-SHA256 signature of the raw request body.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","createdAt","data"],"properties":{"id":{"type":"string","format":"uuid","description":"Stable, immutable event id. Deduplicate on it."},"type":{"type":"string","const":"screening.review.completed"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","required":["decisionId","clientId","outcome","reviewerType","reviewedAt","mode"],"properties":{"decisionId":{"type":"string","description":"The `meta.decisionId` of the reviewed screening decision."},"clientId":{"type":"string","description":"The API client the decision belongs to."},"outcome":{"type":"string","enum":["confirmed_match","false_positive","escalated"]},"reviewerType":{"type":"string","enum":["dashboard_user","api_key"],"description":"`dashboard_user`: recorded by a signed-in member in the dashboard. `api_key`: recorded with your API key."},"reviewedAt":{"type":"string","format":"date-time"},"mode":{"type":"string","enum":["sandbox","live"]}}}}}}}},"responses":{"200":{"description":"Acknowledged. Any 2xx status is treated as delivered."}}}},"screening.evidence_pack.ready":{"post":{"tags":["Webhooks"],"summary":"Evidence pack ready (push delivery)","description":"Sent only when you chose push delivery for evidence packs, and only to the one endpoint you chose for them, never to your other endpoints. Answer with any 2xx: Nexiel then deletes its copy of the encrypted pack and keeps only its hash. Other responses are retried with exponential backoff, up to 8 attempts (about an hour, a shorter window than other events). If every attempt fails, the pack is deleted undelivered under `push`, or kept for one fetch by pull until it expires under `push_then_pull_fallback`. Delivery is at least once: the same pack can arrive twice with the same event `id` and `evidencePackHash`, so store it once per event id. Every delivery is a signed JSON object `{ id, type, apiVersion, livemode, createdAt, data }` (see the `X-Nexiel-Signature` header). The pack is the only content that is not an identifier or a hash, and it is encrypted to your key.","parameters":[{"name":"X-Nexiel-Signature","in":"header","required":true,"description":"Timestamp and HMAC-SHA256 signature of the raw request body.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","apiVersion","livemode","createdAt","data"],"properties":{"id":{"type":"string","format":"uuid","description":"Stable, immutable event id. Deduplicate on it."},"type":{"type":"string","const":"screening.evidence_pack.ready"},"apiVersion":{"type":"string","description":"The API version the event is rendered in.","examples":["2026-11-19"]},"livemode":{"type":"boolean","description":"True for a live-mode event, false for test mode."},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","required":["decisionId","requestHash","clientId","mode","decidedAt","evidencePackCiphertext","evidencePackHash","evidencePackDeliveryMode","evidencePackFormat","frozenDecisionArtifact"],"properties":{"decisionId":{"type":"string","description":"The `meta.decisionId` the screening response returned."},"requestHash":{"type":"string"},"mode":{"type":"string","enum":["sandbox","live"]},"clientId":{"type":"string","description":"The API client the decision was made for."},"decidedAt":{"type":"string","format":"date-time"},"evidencePackExpiresAt":{"type":"string","format":"date-time","description":"When Nexiel deletes the pack at the latest, whatever happens to the push (7 days after the decision)."},"evidencePackCiphertext":{"type":"string","maxLength":262144,"description":"The evidence pack as a JWE in compact serialization (ECDH-ES key agreement, A256GCM, P-256), encrypted to your own registered evidence-pack public key. Only your private key can decrypt it. Nexiel deletes its copy as soon as your endpoint answers with a 2xx."},"evidencePackHash":{"type":"string","description":"SHA-256 (hex) of `evidencePackCiphertext`. Nexiel keeps this hash as proof of handoff; compare it to the ciphertext you received."},"evidencePackDeliveryMode":{"type":"string","enum":["push","push_then_pull_fallback"]},"evidencePackFormat":{"type":"string","const":"jwe_compact"},"frozenDecisionArtifact":{"type":"object","description":"The exact engine version, thresholds hash, weights hash and list snapshots behind the decision. Absent for a check that ran no screening.","properties":{"engineVersion":{"type":"string"},"gatesHash":{"type":"string"},"ensembleWeightsHash":{"type":"string"},"listSnapshotIds":{"type":"array","items":{"type":"string"}}}}}}}}}}},"responses":{"200":{"description":"Pack received. Any 2xx status is treated as delivered, and Nexiel deletes its copy."}}}},"kyb.application.status_changed":{"post":{"tags":["Webhooks"],"summary":"kyb.application.status_changed","description":"The status of your business verification (KYB) application changed. Every delivery is a signed JSON object `{ id, type, apiVersion, livemode, createdAt, data }`; `id` is stable across retries, so deduplicate on it. Answer with any 2xx. Other answers are retried with exponential backoff and jitter for about three days.","parameters":[{"name":"X-Nexiel-Signature","in":"header","required":true,"description":"Timestamp and HMAC-SHA256 signature of the raw request body.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","apiVersion","livemode","createdAt","data"],"properties":{"id":{"type":"string","format":"uuid","description":"Stable, immutable event id. Deduplicate on it."},"type":{"type":"string","const":"kyb.application.status_changed"},"apiVersion":{"type":"string","description":"The API version the event is rendered in.","examples":["2026-11-19"]},"livemode":{"type":"boolean","description":"True for a live-mode event, false for test mode."},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"description":"Identifiers and hashes only; never personal data."}}}}}},"responses":{"200":{"description":"Acknowledged. Any 2xx status is treated as delivered."}}}},"intermediary.link.created":{"post":{"tags":["Webhooks"],"summary":"intermediary.link.created","description":"An intermediary relationship between your organization and another started. Every delivery is a signed JSON object `{ id, type, apiVersion, livemode, createdAt, data }`; `id` is stable across retries, so deduplicate on it. Answer with any 2xx. Other answers are retried with exponential backoff and jitter for about three days.","parameters":[{"name":"X-Nexiel-Signature","in":"header","required":true,"description":"Timestamp and HMAC-SHA256 signature of the raw request body.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","apiVersion","livemode","createdAt","data"],"properties":{"id":{"type":"string","format":"uuid","description":"Stable, immutable event id. Deduplicate on it."},"type":{"type":"string","const":"intermediary.link.created"},"apiVersion":{"type":"string","description":"The API version the event is rendered in.","examples":["2026-11-19"]},"livemode":{"type":"boolean","description":"True for a live-mode event, false for test mode."},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"description":"Identifiers and hashes only; never personal data."}}}}}},"responses":{"200":{"description":"Acknowledged. Any 2xx status is treated as delivered."}}}},"intermediary.link.updated":{"post":{"tags":["Webhooks"],"summary":"intermediary.link.updated","description":"The delegated permissions or billing roll-up of an intermediary relationship were narrowed. Every delivery is a signed JSON object `{ id, type, apiVersion, livemode, createdAt, data }`; `id` is stable across retries, so deduplicate on it. Answer with any 2xx. Other answers are retried with exponential backoff and jitter for about three days.","parameters":[{"name":"X-Nexiel-Signature","in":"header","required":true,"description":"Timestamp and HMAC-SHA256 signature of the raw request body.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","apiVersion","livemode","createdAt","data"],"properties":{"id":{"type":"string","format":"uuid","description":"Stable, immutable event id. Deduplicate on it."},"type":{"type":"string","const":"intermediary.link.updated"},"apiVersion":{"type":"string","description":"The API version the event is rendered in.","examples":["2026-11-19"]},"livemode":{"type":"boolean","description":"True for a live-mode event, false for test mode."},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"description":"Identifiers and hashes only; never personal data."}}}}}},"responses":{"200":{"description":"Acknowledged. Any 2xx status is treated as delivered."}}}},"intermediary.link.revoked":{"post":{"tags":["Webhooks"],"summary":"intermediary.link.revoked","description":"An intermediary relationship between your organization and another ended. Every delivery is a signed JSON object `{ id, type, apiVersion, livemode, createdAt, data }`; `id` is stable across retries, so deduplicate on it. Answer with any 2xx. Other answers are retried with exponential backoff and jitter for about three days.","parameters":[{"name":"X-Nexiel-Signature","in":"header","required":true,"description":"Timestamp and HMAC-SHA256 signature of the raw request body.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","apiVersion","livemode","createdAt","data"],"properties":{"id":{"type":"string","format":"uuid","description":"Stable, immutable event id. Deduplicate on it."},"type":{"type":"string","const":"intermediary.link.revoked"},"apiVersion":{"type":"string","description":"The API version the event is rendered in.","examples":["2026-11-19"]},"livemode":{"type":"boolean","description":"True for a live-mode event, false for test mode."},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"description":"Identifiers and hashes only; never personal data."}}}}}},"responses":{"200":{"description":"Acknowledged. Any 2xx status is treated as delivered."}}}},"intermediary.trust_policy.changed":{"post":{"tags":["Webhooks"],"summary":"intermediary.trust_policy.changed","description":"Your intermediary saved or activated a version of one of your trust policies through the permission you delegated. Every delivery is a signed JSON object `{ id, type, apiVersion, livemode, createdAt, data }`; `id` is stable across retries, so deduplicate on it. Answer with any 2xx. Other answers are retried with exponential backoff and jitter for about three days.","parameters":[{"name":"X-Nexiel-Signature","in":"header","required":true,"description":"Timestamp and HMAC-SHA256 signature of the raw request body.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","apiVersion","livemode","createdAt","data"],"properties":{"id":{"type":"string","format":"uuid","description":"Stable, immutable event id. Deduplicate on it."},"type":{"type":"string","const":"intermediary.trust_policy.changed"},"apiVersion":{"type":"string","description":"The API version the event is rendered in.","examples":["2026-11-19"]},"livemode":{"type":"boolean","description":"True for a live-mode event, false for test mode."},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"description":"Identifiers and hashes only; never personal data."}}}}}},"responses":{"200":{"description":"Acknowledged. Any 2xx status is treated as delivered."}}}},"api_key.expiring_soon":{"post":{"tags":["Webhooks"],"summary":"api_key.expiring_soon","description":"An API key is close to the end of its lifetime and should be rotated. Every delivery is a signed JSON object `{ id, type, apiVersion, livemode, createdAt, data }`; `id` is stable across retries, so deduplicate on it. Answer with any 2xx. Other answers are retried with exponential backoff and jitter for about three days.","parameters":[{"name":"X-Nexiel-Signature","in":"header","required":true,"description":"Timestamp and HMAC-SHA256 signature of the raw request body.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","apiVersion","livemode","createdAt","data"],"properties":{"id":{"type":"string","format":"uuid","description":"Stable, immutable event id. Deduplicate on it."},"type":{"type":"string","const":"api_key.expiring_soon"},"apiVersion":{"type":"string","description":"The API version the event is rendered in.","examples":["2026-11-19"]},"livemode":{"type":"boolean","description":"True for a live-mode event, false for test mode."},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"description":"Identifiers and hashes only; never personal data."}}}}}},"responses":{"200":{"description":"Acknowledged. Any 2xx status is treated as delivered."}}}},"webhook.test":{"post":{"tags":["Webhooks"],"summary":"webhook.test","description":"A test event you send yourself from the dashboard or API. Every delivery is a signed JSON object `{ id, type, apiVersion, livemode, createdAt, data }`; `id` is stable across retries, so deduplicate on it. Answer with any 2xx. Other answers are retried with exponential backoff and jitter for about three days.","parameters":[{"name":"X-Nexiel-Signature","in":"header","required":true,"description":"Timestamp and HMAC-SHA256 signature of the raw request body.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","type","apiVersion","livemode","createdAt","data"],"properties":{"id":{"type":"string","format":"uuid","description":"Stable, immutable event id. Deduplicate on it."},"type":{"type":"string","const":"webhook.test"},"apiVersion":{"type":"string","description":"The API version the event is rendered in.","examples":["2026-11-19"]},"livemode":{"type":"boolean","description":"True for a live-mode event, false for test mode."},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"description":"Identifiers and hashes only; never personal data."}}}}}},"responses":{"200":{"description":"Acknowledged. Any 2xx status is treated as delivered."}}}}},"tags":[{"name":"Webhooks","description":"Signed events sent to the webhook endpoints you register. The event list is generated from the platform's event catalogue."},{"name":"Evidence packs","description":"Choose how encrypted evidence packs reach you: pull (the default), push to one of your webhook endpoints, or push with a pull fallback. With push delivery, Nexiel deletes the encrypted pack as soon as your endpoint acknowledges it."},{"name":"Health","description":"Service liveness and mode reporting."},{"name":"Onboarding","description":"Public endpoints for prospective customers before they have an account. No API key is needed."},{"name":"Screening","description":"Sanctions/PEP/AML name screening. See the Sandbox mode section above."},{"name":"GDPR","description":"Data-subject-rights support, scoped to the calling API key's own identity: Article 15 access (export) and Article 17 erasure. Erasure is narrowly scoped. Each route description says what can and cannot be erased today, and why."},{"name":"Wallet Risk","description":"Preview. Blockchain wallet risk scoring from GraphSense TagPacks attribution data. Not a billed, generally available product, and there is no pricing tier for it yet. See the Wallet risk scoring section above and the route's description for its current scope limits."}]}