{"openapi":"3.1.0","info":{"title":"RiskOS™ Webhooks","summary":"RiskOS™ Webhook Events","version":"1.0.0"},"security":[],"webhooks":{"client_webhook_endpoint":{"post":{"tags":["Webhooks"],"security":[],"summary":"RiskOS™ Webhook Events","description":"RiskOS™ sends an HTTP `POST` request to your endpoint when an event occurs, \nwith the payload structure determined by the `event_type` field.\n","operationId":"riskOSWebhook","requestBody":{"description":"The webhook event payload.","required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/EvaluationCompletedWebhook"},{"$ref":"#/components/schemas/EvaluationPausedWebhook"},{"$ref":"#/components/schemas/ReevaluationWebhook"},{"$ref":"#/components/schemas/WorkflowExecutionFailedWebhook"},{"$ref":"#/components/schemas/DecisionUpdateWebhook"},{"$ref":"#/components/schemas/FraudConfirmedWebhook"},{"$ref":"#/components/schemas/ReviewCaseAssignedWebhook"},{"$ref":"#/components/schemas/ReviewCaseUnassignedWebhook"},{"$ref":"#/components/schemas/CaseStatusUpdatedWebhook"},{"$ref":"#/components/schemas/CaseNotesAddedWebhook"},{"$ref":"#/components/schemas/CaseAttachmentAddedWebhook"}],"discriminator":{"propertyName":"event_type","mapping":{"Evaluation Completed":"#/components/schemas/EvaluationCompletedWebhook","Evaluation Paused":"#/components/schemas/EvaluationPausedWebhook","Reevaluation":"#/components/schemas/ReevaluationWebhook","Workflow Execution Failed":"#/components/schemas/WorkflowExecutionFailedWebhook","Decision Updated":"#/components/schemas/DecisionUpdateWebhook","Fraud Confirming":"#/components/schemas/FraudConfirmedWebhook","Case Assigned":"#/components/schemas/ReviewCaseAssignedWebhook","Case Unassigned":"#/components/schemas/ReviewCaseUnassignedWebhook","Case Status Updated":"#/components/schemas/CaseStatusUpdatedWebhook","Case Notes Added":"#/components/schemas/CaseNotesAddedWebhook","Case Attachment Added":"#/components/schemas/CaseAttachmentAddedWebhook"}}},"examples":{"EvaluationCompletedExample":{"summary":"Evaluation Completed","$ref":"#/components/examples/EvaluationCompletedExample"},"EvaluationPausedExample":{"summary":"Evaluation Paused","$ref":"#/components/examples/EvaluationPausedExample"},"ReevaluationExample":{"summary":"Reevaluation","$ref":"#/components/examples/ReevaluationExample"},"WorkflowExecutionFailedExample":{"summary":"Workflow Execution Failed","$ref":"#/components/examples/WorkflowExecutionFailedExample"},"DecisionUpdateExample":{"summary":"Decision Updated","$ref":"#/components/examples/DecisionUpdateExample"},"FraudConfirmedExample":{"summary":"Fraud Confirming","$ref":"#/components/examples/FraudConfirmedExample"},"ReviewCaseAssignedExample":{"summary":"Case Assigned","$ref":"#/components/examples/ReviewCaseAssignedExample"},"ReviewCaseUnassignedExample":{"summary":"Case Unassigned","$ref":"#/components/examples/ReviewCaseUnassignedExample"},"CaseStatusUpdatedExample":{"summary":"Case Status Updated","$ref":"#/components/examples/CaseStatusUpdatedExample"},"CaseNotesAddedExample":{"summary":"Case Notes Added","$ref":"#/components/examples/CaseNotesAddedExample"},"CaseAttachmentAddedExample":{"summary":"Case Attachment Added","$ref":"#/components/examples/CaseAttachmentAddedExample"}}}}},"responses":{"200":{"description":"Webhook received successfully. RiskOS™ expects a `200` response to confirm receipt."},"400":{"description":"Bad Request – The request was invalid or cannot be otherwise served."},"500":{"description":"Internal Server Error – An unexpected condition occurred on the server."}}}}},"components":{"schemas":{"CustomerMetadata":{"type":"object","additionalProperties":true,"description":"Opaque, caller-owned JSON object, present only when the originating evaluation included it. Returned unchanged at the top level of the envelope, not inside `data`. Up to 200 characters. See [Customer Metadata](https://help.socure.com/riskos/docs/customer-metadata).","example":{"service":"checkout-api","business_unit":"consumer-lending","internal_ref":"order-998877"}},"DecisionUpdateWebhook":{"type":"object","description":"Triggered when a reviewer makes a decision change in Case Management.\n","required":["event_id","event_at","event_type","data"],"properties":{"event_id":{"type":"string","format":"uuid","description":"Unique identifier for the webhook event.","example":"7141da2d-7c41-4330-b1e0-905a2119e2fa"},"event_at":{"type":"string","format":"date-time","description":"RFC 3339 timestamp when the event was created.","example":"2023-09-14T07:46:55.956011Z"},"event_type":{"type":"string","description":"Type of event that occurred.","enum":["decision_update"],"example":"decision_update"},"customer_metadata":{"$ref":"#/components/schemas/CustomerMetadata"},"data":{"type":"object","description":"Event-specific payload containing evaluation details.","required":["id","workflow","eval_id","reviewer_id","decision","decision_at","status","sub_status","decision_queue","reason_codes","tags","environment_name"],"properties":{"id":{"type":"string","description":"Customer provided identifier for the evaluation event.","example":"787d4df8-7d17-47fe-bbce-668ba19b7b1d"},"workflow":{"type":"string","description":"Workflow name.","example":"consumer_onboarding"},"eval_id":{"type":"string","format":"uuid","description":"RiskOS™-generated unique ID for the evaluation.","example":"d3a15e54-ed6b-43f5-8fea-8f6370cc89d9"},"reviewer_id":{"type":"string","format":"email","description":"Email address of the reviewer.","example":"dummy@abc.com"},"decision":{"type":"string","description":"Decision outcome (e.g., `ACCEPT`, `REJECT`, `REVIEW`).","example":"REJECT"},"decision_at":{"type":"string","format":"date-time","description":"RFC 3339 timestamp when the decision was made.","example":"2023-09-14T07:46:55.955937Z"},"status":{"type":"string","description":"New case status.","example":"CLOSED"},"sub_status":{"type":"string","description":"New case sub-status.","example":"Decline"},"decision_queue":{"type":"string","description":"Name of the review queue.","example":"Default Queue"},"reason_codes":{"type":"array","items":{"type":"string"},"description":"Reason codes associated with the decision."},"tags":{"type":"array","items":{"type":"string"},"description":"Tags associated with the decision."},"notes":{"type":"string","nullable":true,"description":"Notes associated with the decision update (Optional).","example":"Test notes"},"attachments":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Names of the attachments added with the decision update (Optional).","example":["test_webhook.txt"]},"environment_name":{"type":"string","description":"Environment in which the event occurred.","example":"Sandbox"}}}}},"ReviewCaseAssignedWebhook":{"type":"object","description":"Triggered when a case is assigned to a reviewer in Case Management.","required":["event_id","event_at","event_type","data"],"properties":{"event_id":{"type":"string","format":"uuid","description":"Unique identifier for the webhook event.","example":"794cdb80-7aa4-4263-9001-89a8ed40805c"},"event_at":{"type":"string","format":"date-time","description":"RFC 3339 timestamp when the event was created.","example":"2023-09-14T07:46:55.955656Z"},"event_type":{"type":"string","description":"Type of event that occurred.","enum":["review_case_assigned"],"example":"review_case_assigned"},"customer_metadata":{"$ref":"#/components/schemas/CustomerMetadata"},"data":{"type":"object","description":"Event-specific payload containing evaluation details.","required":["id","workflow","eval_id","reviewer_id","queue_name","updated_at","updated_by","environment_name"],"properties":{"id":{"type":"string","description":"Customer provided identifier for the evaluation event.","example":"abc-test-123"},"workflow":{"type":"string","description":"Workflow name corresponding to the evaluation use-case.","example":"consumer_onboarding"},"eval_id":{"type":"string","format":"uuid","description":"RiskOS™ generated unique ID for the evaluation.","example":"a21a6886-aad0-46aa-992b-32d790f553b8"},"reviewer_id":{"type":"string","format":"email","description":"Email ID of the reviewer to whom the case is assigned.","example":"test2@abc.com"},"queue_name":{"type":"string","description":"Name of the review queue from which the case assignment is performed.","example":"Default Queue"},"updated_at":{"type":"string","format":"date-time","description":"RFC 3339 date-time string at which the case assignment is performed.","example":"2023-09-14T07:46:55.955506Z"},"updated_by":{"type":"string","format":"email","description":"Email ID of the reviewer by whom the case assignment is performed.","example":"test1@abc.com"},"environment_name":{"type":"string","description":"Environment in which the event occurred.","example":"Sandbox"}}}}},"ReviewCaseUnassignedWebhook":{"type":"object","description":"Triggered when a case is unassigned from a reviewer in Case Management.","required":["event_id","event_at","event_type","data"],"properties":{"event_id":{"type":"string","format":"uuid","description":"Unique identifier for the webhook event.","example":"794cdb80-7aa4-4263-9001-89a8ed40805c"},"event_at":{"type":"string","format":"date-time","description":"RFC 3339 timestamp when the event was created.","example":"2023-09-14T07:46:55.955656Z"},"event_type":{"type":"string","description":"Type of event that occurred.","enum":["review_case_unassigned"],"example":"review_case_unassigned"},"customer_metadata":{"$ref":"#/components/schemas/CustomerMetadata"},"data":{"type":"object","description":"Event-specific payload containing evaluation details.","required":["id","workflow","eval_id","reviewer_id","queue_name","updated_at","updated_by","environment_name"],"properties":{"id":{"type":"string","description":"Customer provided identifier for the evaluation event.","example":"abc-test-123"},"workflow":{"type":"string","description":"Workflow name corresponding to the evaluation use-case.","example":"consumer_onboarding"},"eval_id":{"type":"string","format":"uuid","description":"RiskOS™ generated unique ID for the evaluation.","example":"a21a6886-aad0-46aa-992b-32d790f553b8"},"reviewer_id":{"type":"string","format":"email","description":"Email ID of the reviewer from whom the case is unassigned.","example":"test2@abc.com"},"queue_name":{"type":"string","description":"Name of the review queue from which the case unassignment is performed.","example":"Default Queue"},"updated_at":{"type":"string","format":"date-time","description":"RFC 3339 date-time string at which the case unassignment is performed.","example":"2023-09-14T07:46:55.955506Z"},"updated_by":{"type":"string","format":"email","description":"Email ID of the reviewer by whom the case unassignment is performed.","example":"test1@abc.com"},"environment_name":{"type":"string","description":"Environment in which the event occurred.","example":"Sandbox"}}}}},"CaseStatusUpdatedWebhook":{"type":"object","description":"Triggered when a case status is updated in Case Management.","required":["event_id","event_at","event_type","data"],"properties":{"event_id":{"type":"string","format":"uuid","description":"Unique identifier for the webhook event.","example":"82ef8e08-24b4-42c6-9e27-f7b9aa892c58"},"event_at":{"type":"string","format":"date-time","description":"RFC 3339 timestamp when the event was created.","example":"2023-09-14T07:46:55.956104Z"},"event_type":{"type":"string","description":"Type of event that occurred.","enum":["case_status_updated"],"example":"case_status_updated"},"customer_metadata":{"$ref":"#/components/schemas/CustomerMetadata"},"data":{"type":"object","description":"Event-specific payload containing evaluation details.","required":["id","workflow","eval_id","reviewer_id","decision","decision_at","status","sub_status","updated_at","decision_queue","environment_name","reason_codes","tags"],"properties":{"id":{"type":"string","description":"Customer provided identifier for the evaluation event.","example":"abc-test-123"},"workflow":{"type":"string","description":"Workflow name corresponding to the evaluation use-case.","example":"consumer_onboarding"},"eval_id":{"type":"string","format":"uuid","description":"RiskOS™ generated unique ID for the evaluation.","example":"d3a15e54-ed6b-43f5-8fea-8f6370cc89d9"},"reviewer_id":{"type":"string","format":"email","description":"Email ID of the reviewer of the case.","example":"test2@abc.com"},"decision":{"type":"string","description":"Decision associated with the status change.","example":"REVIEW"},"decision_at":{"type":"string","format":"date-time","description":"RFC 3339 date-time string at which the decision was taken.","example":"2023-09-14T07:46:55.956018Z"},"status":{"type":"string","description":"The new status of the case.","example":"OPEN"},"sub_status":{"type":"string","description":"The new sub-status of the case.","example":"Awaiting Documentation"},"updated_at":{"type":"string","format":"date-time","description":"RFC 3339 date-time string at which the status update occurred.","example":"2023-09-14T07:46:55.956018Z"},"decision_queue":{"type":"string","description":"Name of the review queue from which the decision was taken.","example":"Default Queue"},"environment_name":{"type":"string","description":"Environment in which the event occurred.","example":"Sandbox"},"reason_codes":{"type":"array","items":{"type":"string"},"description":"Reason codes for the status update."},"tags":{"type":"array","items":{"type":"string"},"description":"Tags for the status update."},"notes":{"type":"string","nullable":true,"description":"Notes associated with the status update.","example":"test webhook"},"attachments":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Names of the attachments added with the status update.","example":["test_webhook.txt"]}}}}},"CaseNotesAddedWebhook":{"type":"object","description":"Triggered when notes are added to a case in Case Management.","required":["event_id","event_at","event_type","data"],"properties":{"event_id":{"type":"string","format":"uuid","description":"Unique identifier for the webhook event.","example":"794cdb80-7aa4-4263-9001-89a8ed40805c"},"event_at":{"type":"string","format":"date-time","description":"RFC 3339 timestamp when the event was created.","example":"2023-09-14T07:46:55.955656Z"},"event_type":{"type":"string","description":"Type of event that occurred.","enum":["case_notes_added"],"example":"case_notes_added"},"customer_metadata":{"$ref":"#/components/schemas/CustomerMetadata"},"data":{"type":"object","description":"Event-specific payload containing evaluation details.","required":["id","workflow","eval_id","reviewer_id","updated_at","notes"],"properties":{"id":{"type":"string","description":"Customer provided identifier for the evaluation event.","example":"abc-test-123"},"workflow":{"type":"string","description":"Workflow name corresponding to the evaluation use-case.","example":"consumer_onboarding"},"eval_id":{"type":"string","format":"uuid","description":"RiskOS™ generated unique ID for the evaluation.","example":"a21a6886-aad0-46aa-992b-32d790f553b8"},"reviewer_id":{"type":"string","format":"email","description":"Email ID of the reviewer from whom the case is unassigned.","example":"test2@abc.com"},"updated_at":{"type":"string","format":"date-time","description":"RFC 3339 date-time string at which the case unassignment is performed.","example":"2023-09-14T07:46:55.955506Z"},"notes":{"type":"string","description":"The text content of the note or comment added by the reviewer.","example":"test webhook"},"environment_name":{"type":"string","description":"Environment in which the event occurred.","example":"Sandbox"},"attachments":{"type":"array","items":{"type":"string"},"description":"Names of the attachments included with the note.","example":["test_webhook.txt"]}}}}},"CaseAttachmentAddedWebhook":{"type":"object","description":"Triggered when attachments are added to a case in Case Management.","required":["event_id","event_at","event_type","data"],"properties":{"event_id":{"type":"string","format":"uuid","description":"Unique identifier for the webhook event.","example":"d18f58ef-1be3-4c8d-baf6-7f6ba3517514"},"event_at":{"type":"string","format":"date-time","description":"RFC 3339 timestamp when the event was created.","example":"2023-09-14T07:46:55.955755Z"},"event_type":{"type":"string","description":"Type of event that occurred.","enum":["case_attachment_added"],"example":"case_attachment_added"},"customer_metadata":{"$ref":"#/components/schemas/CustomerMetadata"},"data":{"type":"object","description":"Event-specific payload containing evaluation details.","required":["id","workflow","eval_id","reviewer_id","updated_at","environment_name","attachments"],"properties":{"id":{"type":"string","description":"Customer provided identifier for the evaluation event.","example":"abc-test-123"},"workflow":{"type":"string","description":"Workflow name corresponding to the evaluation use-case.","example":"consumer_onboarding"},"eval_id":{"type":"string","format":"uuid","description":"RiskOS™ generated unique ID for the evaluation.","example":"aafe72aa-2921-40f4-a72c-7eedc9d62c4b"},"reviewer_id":{"type":"string","format":"email","description":"Email ID of the reviewer of the case.","example":"test2@abc.com"},"updated_at":{"type":"string","format":"date-time","description":"RFC 3339 date-time string at which the status update was performed.","example":"2023-09-14T07:46:55.955699Z"},"environment_name":{"type":"string","description":"Environment in which the event occurred.","example":"Sandbox"},"attachments":{"type":"array","items":{"type":"string"},"description":"Names of the attachments added with the status update.","example":["test_webhook.txt"]}}}}},"FraudConfirmedWebhook":{"type":"object","description":"Triggered when a case is marked as fraud or non-fraud in Case Management.","required":["event_id","event_at","event_type","data"],"properties":{"event_id":{"type":"string","format":"uuid","description":"Unique identifier for the webhook event.","example":"624102b9-603a-4505-8bd3-121aafb2bd60"},"event_at":{"type":"string","format":"date-time","description":"RFC 3339 timestamp when the event was created.","example":"2023-09-14T07:46:55.956183Z"},"event_type":{"type":"string","description":"Type of event that occurred.","enum":["fraud_confirming"],"example":"fraud_confirming"},"customer_metadata":{"$ref":"#/components/schemas/CustomerMetadata"},"data":{"type":"object","description":"Event-specific payload containing evaluation details.","required":["id","workflow","fraud_label","created_by","created_at","environment_name"],"properties":{"id":{"type":"string","description":"Customer provided identifier for the evaluation event.","example":"547ff93f-43d4-46dc-bc10-39d3011f62e9"},"workflow":{"type":"string","description":"Workflow name corresponding to the evaluation use-case.","example":"consumer_onboarding"},"fraud_label":{"type":"string","description":"Fraud label (either `fraud` or `non-fraud`).","enum":["fraud","non-fraud"],"example":"fraud"},"fraud_type":{"type":"string","nullable":true,"description":"User-defined fraud types (Optional).","example":"synthetic"},"notes":{"type":"string","nullable":true,"description":"Additional notes to be added when marking a case as `fraud` or `non-fraud` (Optional).","example":"Dummy confirmed fraud for testing"},"tags":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Tags associated with the fraud confirmation (Optional)."},"recorded_by":{"type":"string","format":"email","nullable":true,"description":"Fraud response team member who recorded the fraud at the customer end (Optional).","example":"test1@abc.com"},"environment_name":{"type":"string","description":"Environment in which the event occurred.","example":"Sandbox"},"recorded_at":{"type":"string","format":"date-time","nullable":true,"description":"RFC 3339 date-time string when the fraud feedback was recorded at the customer end (Optional).","example":"2023-09-14T07:46:55.956111Z"},"created_by":{"type":"string","format":"email","description":"Fraud response team member who recorded the fraud in RiskOS™.","example":"test2@abc.com"},"created_at":{"type":"string","format":"date-time","description":"RFC 3339 date-time string when the fraud feedback was created in RiskOS™.","example":"2023-09-14T07:46:55.956111Z"}}}}},"EvaluationCompletedWebhook":{"type":"object","description":"Triggered when any of the following occur:\n\n* An **asynchronous evaluation** finishes processing.\n* A **manually created case** completes processing.\n* **Document Verification (DocV)** completes.\n* Any **paused evaluation** resumes and completes.\n","required":["event_id","event_at","event_type","data"],"properties":{"event_id":{"type":"string","format":"uuid","description":"Unique identifier for the webhook event.","example":"336ccd2a-b3a8-49a8-b2cc-89a4ae90feeb"},"event_at":{"type":"string","format":"date-time","description":"RFC 3339 timestamp when the event was created.","example":"2025-08-27T16:16:23.104744158Z"},"event_type":{"type":"string","description":"Type of event that occurred.","enum":["evaluation_completed"],"example":"evaluation_completed"},"customer_metadata":{"$ref":"#/components/schemas/CustomerMetadata"},"data":{"type":"object","description":"Event-specific payload containing evaluation details.","required":["id","workflow","workflow_id","workflow_version","eval_end_time","eval_id","eval_start_time","decision","decision_at","status","sub_status","environment_name","tags","eval_source","evaluation_status","review_queues","data_enrichments"],"properties":{"id":{"type":"string","description":"Customer provided identifier for the evaluation event.","example":"test-1245"},"workflow":{"type":"string","description":"Workflow name corresponding to the evaluation use-case.","example":"consumer_onboarding"},"workflow_id":{"type":"string","format":"uuid","description":"Unique identifier (UUID) for the workflow.","example":"673dd085-3daf-4c6c-be67-d399933a9fec"},"workflow_version":{"type":"string","description":"Version number of the executed workflow.","example":"1.0.0"},"eval_end_time":{"type":"string","format":"date-time","description":"RFC 3339 timestamp indicating when the evaluation completed.","example":"2025-08-27T16:16:23.098709942Z"},"eval_id":{"type":"string","format":"uuid","description":"RiskOS™-generated unique ID for the evaluation.","example":"8770e076-f568-48a9-8201-dca13087e592"},"eval_start_time":{"type":"string","format":"date-time","description":"RFC 3339 timestamp indicating when the evaluation started.","example":"2025-08-27T16:16:17.969951775Z"},"decision":{"type":"string","description":"Final decision outcome (e.g., ACCEPT, REJECT, REVIEW).","example":"REVIEW"},"decision_at":{"type":"string","format":"date-time","description":"RFC 3339 timestamp when the decision was finalized.","example":"2025-08-27T16:16:23.096676037Z"},"status":{"type":"string","description":"Current case status (e.g., OPEN, CLOSED).","example":"OPEN"},"sub_status":{"type":"string","description":"Current case sub-status (e.g., Surveillance, Approved).","example":"Surveillance"},"score":{"type":"number","format":"float","nullable":true,"description":"Risk score associated with the evaluation (0–100, if available).","example":39},"environment_name":{"type":"string","description":"Environment in which the evaluation was performed.","example":"Sandbox"},"tags":{"type":"array","items":{"type":"string"},"description":"Tags associated with the evaluation."},"eval_source":{"type":"string","description":"Source of the evaluation (e.g., API, Manual, Rerun).","example":"API"},"evaluation_status":{"type":"string","description":"Always \"evaluation_completed\" for this event.","example":"evaluation_completed"},"notes":{"type":"string","nullable":true,"description":"Additional notes related to the evaluation (Optional).","example":"Test Notes"},"review_queues":{"type":"array","items":{"type":"string"},"description":"Names of the review queues assigned to the evaluation.","example":["Default Queue"]},"data_enrichments":{"type":"array","description":"Third-party data enrichment results linked to the evaluation.","items":{"type":"object","required":["enrichment_endpoint","enrichment_name","enrichment_provider","status_code","is_source_cache","total_attempts","error_message","request","response"],"properties":{"enrichment_endpoint":{"type":"string","format":"url","example":"https://example-endpoint"},"enrichment_name":{"type":"string","example":"ExampleThirdParty"},"enrichment_provider":{"type":"string","example":"ExampleProvider"},"status_code":{"type":"integer","example":200},"is_source_cache":{"type":"boolean","example":false},"total_attempts":{"type":"integer","example":1},"error_message":{"type":"string","example":""},"request":{"type":"object","description":"The request payload sent to the third-party provider (Dynamic keys/values).","additionalProperties":true},"response":{"type":"object","description":"The response payload received from the third-party provider (Dynamic keys/values).","additionalProperties":true}}}}}}}},"EvaluationPausedWebhook":{"type":"object","description":"Triggered when any of the following occur:\n\n* An **asynchronous evaluation** needs additional input (e.g., One-Time Passcode verification).\n* **Predictive Document Verification** is waiting for the user to upload documents.\n* A **workflow** requires manual intervention before proceeding.\n","required":["event_id","event_at","event_type","data"],"properties":{"event_id":{"type":"string","format":"uuid","description":"Unique identifier for the webhook event.","example":"336ccd2a-b3a8-49a8-b2cc-89a4ae90feeb"},"event_at":{"type":"string","format":"date-time","description":"RFC 3339 timestamp when the event was created.","example":"2025-10-22T13:04:11.468831296Z"},"event_type":{"type":"string","description":"Type of event that occurred.","enum":["evaluation_paused"],"example":"evaluation_paused"},"customer_metadata":{"$ref":"#/components/schemas/CustomerMetadata"},"data":{"type":"object","description":"Event-specific payload containing evaluation details.","required":["id","workflow","workflow_id","workflow_version","environment_name","eval_end_time","eval_id","eval_start_time","decision","decision_at","status","sub_status","tags","eval_source","eval_status","review_queues","data_enrichments"],"properties":{"id":{"type":"string","description":"Customer provided identifier for the evaluation event.","example":"test-1245"},"workflow":{"type":"string","description":"Workflow name corresponding to the evaluation use-case.","example":"consumer_onboarding"},"workflow_id":{"type":"string","format":"uuid","description":"Unique identifier (UUID) for the workflow.","example":"673dd085-3daf-4c6c-be67-d399933a9fec"},"workflow_version":{"type":"string","description":"Version number of the executed workflow.","example":"1.0.0"},"environment_name":{"type":"string","description":"Environment in which the evaluation was performed.","example":"Sandbox"},"eval_end_time":{"type":"string","format":"date-time","description":"RFC 3339 timestamp indicating when the evaluation was paused.","example":"2025-10-22T12:18:35.89984723Z"},"eval_id":{"type":"string","format":"uuid","description":"RiskOS™-generated unique ID for the evaluation.","example":"8770e076-f568-48a9-8201-dca13087e592"},"eval_start_time":{"type":"string","format":"date-time","description":"RFC 3339 timestamp indicating when the evaluation started.","example":"2025-10-22T12:18:32.054994008Z"},"decision":{"type":"string","description":"Current decision state for the evaluation.","example":"REVIEW"},"decision_at":{"type":"string","format":"date-time","description":"RFC 3339 timestamp when the current decision was made.","example":"2023-09-14T07:46:55.956247Z"},"status":{"type":"string","description":"Current case status.","example":"OPEN"},"sub_status":{"type":"string","description":"Current case sub-status.","example":"Surveillance"},"tags":{"type":"array","items":{"type":"string"},"description":"Tags associated with the evaluation.","example":["test"]},"eval_source":{"type":"string","description":"Source of the evaluation (e.g., `API`, `Manual`, `Rerun`).","example":"API"},"eval_status":{"type":"string","description":"Always `evaluation_paused` for this event.","example":"evaluation_paused"},"notes":{"type":"string","nullable":true,"description":"Additional notes related to the evaluation (Optional).","example":"Test Notes"},"review_queues":{"type":"array","items":{"type":"string"},"description":"Names of the review queues assigned to the evaluation.","example":["Default Queue"]},"data_enrichments":{"type":"array","description":"Data enrichment results available for the evaluation.","items":{"type":"object","required":["enrichment_name","status_code","request","response"],"properties":{"enrichment_name":{"type":"string","example":"ExampleEnrichment"},"status_code":{"type":"integer","example":200},"request":{"type":"object","description":"The request payload sent to the provider.","additionalProperties":true},"response":{"type":"object","description":"The response payload received from the provider.","additionalProperties":true}}}}}}}},"ReevaluationWebhook":{"type":"object","description":"Triggered when any of the following occur:\n\n* A case is **manually rerun** from Case Management.\n* **Workflow rules** are updated and cases need re-processing.\n* **Additional data** becomes available and the case needs a fresh evaluation.\n","required":["event_id","event_at","event_type","data"],"properties":{"event_id":{"type":"string","format":"uuid","description":"Unique identifier for the webhook event.","example":"336ccd2a-b3a8-49a8-b2cc-89a4ae90feeb"},"event_at":{"type":"string","format":"date-time","description":"RFC 3339 timestamp when the event was created.","example":"2023-09-14T07:46:55.956522Z"},"event_type":{"type":"string","description":"Type of event that occurred.","enum":["reevaluation"],"example":"reevaluation"},"customer_metadata":{"$ref":"#/components/schemas/CustomerMetadata"},"data":{"type":"object","description":"Event-specific payload containing evaluation details.","required":["id","workflow","workflow_id","workflow_version","eval_id","eval_at","decision","decision_at","status","sub_status","reason_codes","tags","eval_source","evaluation_status","review_queues","data_enrichments"],"properties":{"id":{"type":"string","description":"Customer provided identifier for the evaluation event.","example":"test-1245"},"workflow":{"type":"string","description":"Workflow name corresponding to the evaluation use-case.","example":"consumer_onboarding"},"workflow_id":{"type":"string","format":"uuid","description":"Unique identifier (UUID) for the workflow.","example":"673dd085-3daf-4c6c-be67-d399933a9fec"},"workflow_version":{"type":"string","description":"Version number of the executed workflow.","example":"1.0.0"},"eval_id":{"type":"string","format":"uuid","description":"RiskOS™-generated unique ID for the evaluation.","example":"8770e076-f568-48a9-8201-dca13087e592"},"eval_at":{"type":"string","format":"date-time","description":"RFC 3339 timestamp of the evaluation time (used in older event versions).","example":"2023-09-14T07:46:55.956247Z"},"decision":{"type":"string","description":"Final decision outcome.","example":"REVIEW"},"decision_at":{"type":"string","format":"date-time","description":"RFC 3339 timestamp when the decision was finalized.","example":"2023-09-14T07:46:55.956247Z"},"status":{"type":"string","description":"Current case status (e.g., `OPEN`, `CLOSED`).","example":"OPEN"},"sub_status":{"type":"string","description":"Current case sub-status.","example":"Surveillance"},"reason_codes":{"type":"array","items":{"type":"string"},"description":"Codes explaining the evaluation decision."},"tags":{"type":"array","items":{"type":"string"},"description":"Tags associated with the evaluation."},"eval_source":{"type":"string","description":"Source of the evaluation (must be 'Rerun' for this event type).","enum":["Rerun"],"example":"Rerun"},"evaluation_status":{"type":"string","description":"Status of the evaluation run.","example":"evaluation_completed"},"notes":{"type":"string","nullable":true,"description":"Additional notes related to the evaluation (Optional).","example":"Test Notes"},"review_queues":{"type":"array","items":{"type":"string"},"description":"Names of the review queues assigned to the evaluation.","example":["Default Queue"]},"data_enrichments":{"type":"array","description":"Data enrichment results available for the evaluation.","items":{"type":"object","required":["enrichment_name","status_code","error_message","request","response"],"properties":{"enrichment_name":{"type":"string","example":"ExampleEnrichment"},"status_code":{"type":"integer","example":200},"error_message":{"type":"string","example":""},"request":{"type":"object","description":"The request payload sent to the provider.","additionalProperties":true},"response":{"type":"object","description":"The response payload received from the provider.","additionalProperties":true}}}}}}}},"WorkflowExecutionFailedWebhook":{"type":"object","description":"Triggered when an evaluation fails to execute due to errors.","required":["event_id","event_at","event_type","data"],"properties":{"event_id":{"type":"string","format":"uuid","description":"Unique identifier for the webhook event.","example":"d18f58ef-1be3-4c8d-baf6-7f6ba3517514"},"event_at":{"type":"string","format":"date-time","description":"RFC 3339 timestamp when the event was created.","example":"2023-09-14T07:46:55.955755Z"},"event_type":{"type":"string","description":"Type of event that occurred.","enum":["workflow_execution_failed"],"example":"workflow_execution_failed"},"customer_metadata":{"$ref":"#/components/schemas/CustomerMetadata"},"data":{"type":"object","description":"Event-specific payload containing evaluation details.","required":["id","workflow","eval_id","workflow_version","timestamp","host","error_message"],"properties":{"id":{"type":"string","description":"Customer provided identifier for the evaluation event.","example":"d2931d8e-6093-449a-9d9c-90db12acc2bb"},"workflow":{"type":"string","description":"Workflow name corresponding to the evaluation use-case.","example":"consumer_onboarding"},"eval_id":{"type":"string","format":"uuid","description":"RiskOS™ generated unique ID for the evaluation.","example":"577fad68-90e7-462f-8e47-8c8e015beca8"},"workflow_version":{"type":"string","description":"Version number associated with the executed workflow.","example":"1.0.0"},"timestamp":{"type":"string","format":"date-time","description":"RFC 3339 date-time string received in the request payload.","example":"2023-09-14T07:46:55.956194Z"},"host":{"type":"string","description":"Internal host that handled the evaluation.","example":"10.12.0.1"},"error_message":{"type":"string","description":"Error message describing the reason for the failure.","example":"binding failed for payload"}}}}}},"examples":{"EvaluationCompletedExample":{"summary":"Evaluation Completed","value":{"event_id":"336ccd2a-b3a8-49a8-b2cc-89a4ae90feeb","event_at":"2025-08-27T16:16:23.104744158Z","event_type":"evaluation_completed","customer_metadata":{"service":"checkout-api","business_unit":"consumer-lending","internal_ref":"order-998877"},"data":{"id":"test-1245","workflow":"consumer_onboarding","workflow_id":"673dd085-3daf-4c6c-be67-d399933a9fec","workflow_version":"1.0.0","eval_end_time":"2025-08-27T16:16:23.098709942Z","eval_id":"8770e076-f568-48a9-8201-dca13087e592","eval_start_time":"2025-08-27T16:16:17.969951775Z","decision":"REVIEW","decision_at":"2025-08-27T16:16:23.096676037Z","status":"OPEN","sub_status":"Surveillance","score":39,"environment_name":"Sandbox","tags":[],"eval_source":"API","evaluation_status":"evaluation_completed","notes":"Test Notes","review_queues":["Default Queue"],"data_enrichments":[{"enrichment_endpoint":"https://example-endpoint","enrichment_name":"ExampleThirdParty","enrichment_provider":"ExampleProvider","status_code":200,"is_source_cache":false,"total_attempts":1,"error_message":"","request":{"example_email":"johndoe@email.com","example_name":"John Doe","example_number":21,"example_string":"string"},"response":{"example_boolean":true,"example_list":[{"example_number":99,"example_string":"Email"},{"example_number":78,"example_string":"SSN"}],"example_string":"string"}}]}}},"EvaluationPausedExample":{"summary":"Evaluation Paused","value":{"event_id":"336ccd2a-b3a8-49a8-b2cc-89a4ae90feeb","event_at":"2025-10-22T13:04:11.468831296Z","event_type":"evaluation_paused","data":{"id":"test-1245","workflow":"consumer_onboarding","workflow_id":"673dd085-3daf-4c6c-be67-d399933a9fec","workflow_version":"1.0.0","environment_name":"Sandbox","eval_end_time":"2025-10-22T12:18:35.89984723Z","eval_id":"8770e076-f568-48a9-8201-dca13087e592","eval_start_time":"2025-10-22T12:18:32.054994008Z","decision":"REVIEW","decision_at":"2023-09-14T07:46:55.956247Z","status":"OPEN","sub_status":"Surveillance","tags":[],"eval_source":"API","eval_status":"evaluation_paused","notes":"Test Notes","review_queues":["Default Queue"],"data_enrichments":[{"enrichment_name":"ExampleEnrichment","status_code":200,"request":{"placeholder":"value"},"response":{"placeholder":"value"}}]}}},"ReevaluationExample":{"summary":"Reevaluation","value":{"event_id":"336ccd2a-b3a8-49a8-b2cc-89a4ae90feeb","event_at":"2023-09-14T07:46:55.956522Z","event_type":"reevaluation","data":{"id":"test-1245","workflow":"consumer_onboarding","workflow_id":"673dd085-3daf-4c6c-be67-d399933a9fec","workflow_version":"1.0.0","eval_id":"8770e076-f568-48a9-8201-dca13087e592","eval_at":"2023-09-14T07:46:55.956247Z","decision":"REVIEW","decision_at":"2023-09-14T07:46:55.956247Z","status":"OPEN","sub_status":"Surveillance","reason_codes":[],"tags":[],"eval_source":"Rerun","evaluation_status":"evaluation_completed","notes":"Test Notes","review_queues":["Default Queue"],"data_enrichments":[{"enrichment_name":"ExampleThirdParty","status_code":200,"error_message":"","request":{"example_email":"johndoe@email.com","example_name":"John Doe","example_number":21,"example_string":"string"},"response":{"example_boolean":true,"example_list":[{"example_number":99,"example_string":"Email"},{"example_number":78,"example_string":"SSN"}],"example_string":"string"}}]}}},"WorkflowExecutionFailedExample":{"summary":"Workflow Execution Failed","value":{"event_id":"d18f58ef-1be3-4c8d-baf6-7f6ba3517514","event_at":"2023-09-14T07:46:55.955755Z","event_type":"workflow_execution_failed","data":{"id":"d2931d8e-6093-449a-9d9c-90db12acc2bb","workflow":"consumer_onboarding","eval_id":"577fad68-90e7-462f-8e47-8c8e015beca8","workflow_version":"1.0.0","timestamp":"2023-09-14T07:46:55.956194Z","host":"10.12.0.1","error_message":"binding failed for payload"}}},"DecisionUpdateExample":{"summary":"Decision Updated","value":{"event_id":"7141da2d-7c41-4330-b1e0-905a2119e2fa","event_at":"2023-09-14T07:46:55.956011Z","event_type":"decision_update","data":{"id":"787d4df8-7d17-47fe-bbce-668ba19b7b1d","workflow":"consumer_onboarding","eval_id":"d3a15e54-ed6b-43f5-8fea-8f6370cc89d9","reviewer_id":"dummy@abc.com","decision":"REJECT","decision_at":"2023-09-14T07:46:55.955937Z","status":"CLOSED","sub_status":"Decline","decision_queue":"Default Queue","environment_name":"Sandbox","reason_codes":[],"tags":[],"notes":"Test notes","attachments":["test_webhook.txt"]}}},"FraudConfirmedExample":{"summary":"Fraud Confirming","value":{"event_id":"624102b9-603a-4505-8bd3-121aafb2bd60","event_at":"2023-09-14T07:46:55.956183Z","event_type":"fraud_confirming","data":{"id":"547ff93f-43d4-46dc-bc10-39d3011f62e9","workflow":"consumer_onboarding","fraud_label":"fraud","fraud_type":"synthetic","notes":"Confirmed fraud for testing","tags":[],"recorded_by":"test1@abc.com","environment_name":"Sandbox","recorded_at":"2023-09-14T07:46:55.956111Z","created_by":"test2@abc.com","created_at":"2023-09-14T07:46:55.956111Z"}}},"ReviewCaseAssignedExample":{"summary":"Case Assigned","value":{"event_id":"794cdb80-7aa4-4263-9001-89a8ed40805c","event_at":"2023-09-14T07:46:55.955656Z","event_type":"review_case_assigned","data":{"id":"abc-test-123","workflow":"consumer_onboarding","eval_id":"a21a6886-aad0-46aa-992b-32d790f553b8","reviewer_id":"test2@abc.com","queue_name":"Default Queue","updated_at":"2023-09-14T07:46:55.955506Z","updated_by":"test1@abc.com","environment_name":"Sandbox"}}},"ReviewCaseUnassignedExample":{"summary":"Case Unassigned","value":{"event_id":"794cdb80-7aa4-4263-9001-89a8ed40805c","event_at":"2023-09-14T07:46:55.955656Z","event_type":"review_case_unassigned","data":{"id":"abc-test-123","workflow":"consumer_onboarding","eval_id":"a21a6886-aad0-46aa-992b-32d790f553b8","reviewer_id":"test2@abc.com","queue_name":"Default Queue","updated_at":"2023-09-14T07:46:55.955506Z","updated_by":"test1@abc.com","environment_name":"Sandbox"}}},"CaseStatusUpdatedExample":{"summary":"Case Status Updated","value":{"event_id":"82ef8e08-24b4-42c6-9e27-f7b9aa892c58","event_at":"2023-09-14T07:46:55.956104Z","event_type":"case_status_updated","customer_metadata":{"service":"checkout-api","business_unit":"consumer-lending","internal_ref":"order-998877"},"data":{"id":"abc-test-123","workflow":"consumer_onboarding","eval_id":"d3a15e54-ed6b-43f5-8fea-8f6370cc89d9","reviewer_id":"test2@abc.com","decision":"REVIEW","decision_at":"2023-09-14T07:46:55.956018Z","status":"OPEN","sub_status":"Awaiting Documentation","updated_at":"2023-09-14T07:46:55.956018Z","decision_queue":"Default Queue","environment_name":"Sandbox","reason_codes":[],"tags":[],"notes":"test webhook","attachments":["test_webhook.txt"]}}},"CaseNotesAddedExample":{"summary":"Case Notes Added","value":{"event_id":"17152e9c-609f-4dd3-b516-1cf094464b1c","event_at":"2023-09-14T07:46:55.955929Z","event_type":"case_notes_added","data":{"id":"abc-test-123","workflow":"consumer_onboarding","eval_id":"449edcec-9423-4725-8e5f-c7dfd6a9b827","reviewer_id":"test2@abc.com","updated_at":"2023-09-14T07:46:55.955872Z","notes":"test webhook","environment_name":"Sandbox","attachments":["test_webhook.txt"]}}},"CaseAttachmentAddedExample":{"summary":"Case Attachment Added","value":{"event_id":"d18f58ef-1be3-4c8d-baf6-7f6ba3517514","event_at":"2023-09-14T07:46:55.955755Z","event_type":"case_attachment_added","data":{"id":"abc-test-123","workflow":"consumer_onboarding","eval_id":"aafe72aa-2921-40f4-a72c-7eedc9d62c4b","reviewer_id":"test2@abc.com","updated_at":"2023-09-14T07:46:55.955699Z","environment_name":"Sandbox","attachments":["test_webhook.txt"]}}}}}}