{
  "openapi": "3.1.0",
  "info": {
    "title": "SanctionsKit API",
    "version": "1.0.0",
    "description": "Explore success and error examples without an account or API key. Recorded examples use isolated synthetic application data; remaining examples are labeled contract fixtures. Potential-match screening is for review. No-match is limited to selected, qualified sources. Sandbox uses synthetic records and is never billed. Each successfully completed subject consumes one allowance unit, including monitoring rescreens. Failed rows and idempotent retries do not consume additional units."
  },
  "servers": [
    {
      "url": "/api/v1",
      "description": "This site origin; deployment configuration and access rules apply"
    }
  ],
  "tags": [
    {
      "name": "Source discovery"
    },
    {
      "name": "Screening policies"
    },
    {
      "name": "Screening and evidence"
    },
    {
      "name": "Batches and files"
    },
    {
      "name": "Monitoring"
    },
    {
      "name": "Webhooks"
    },
    {
      "name": "Counterparties"
    },
    {
      "name": "Review evidence"
    },
    {
      "name": "Reports"
    },
    {
      "name": "Usage"
    }
  ],
  "paths": {
    "/sources": {
      "get": {
        "operationId": "get__sources",
        "summary": "Discover source capabilities, qualification and availability",
        "tags": [
          "Source discovery"
        ],
        "description": "Required API key scope: sources:read.\n\nThis GET operation has no path parameters, query parameters or request body. Send your bearer API key with sources:read. The returned source IDs are used in screening and monitor request bodies; they are not parameters to this discovery endpoint.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "success": {
                    "summary": "Synthetic success example",
                    "description": "Synthetic contract example, validated against the response schema. Invented data; no live customer, provider request, payment, message or source activation.",
                    "value": {
                      "data": [
                        {
                          "id": "sandbox-synthetic",
                          "name": "Synthetic example records",
                          "authority": "SanctionsKit sandbox",
                          "availability": "available",
                          "capabilities": [
                            "person",
                            "organization"
                          ],
                          "rightsStatus": "approved",
                          "category": "other",
                          "qualification": {
                            "implemented": true,
                            "fixtureTested": true,
                            "liveFetchTested": false,
                            "rightsApproved": true,
                            "activated": false,
                            "blockers": [
                              "Synthetic fixture only; no government source was fetched or activated."
                            ]
                          }
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SourceList"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/policies": {
      "get": {
        "operationId": "get__policies",
        "summary": "Read current approved screening policy versions",
        "tags": [
          "Screening policies"
        ],
        "description": "Required API key scope: sources:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            },
            "description": "Maximum page size. Follow the returned next cursor or offset even if fewer rows are returned."
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Use the preceding response nextCursor without changing filters; omit for the first page."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_list": {
                    "summary": "Current synthetic policy versions",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "items": [
                          {
                            "name": "Synthetic onboarding policy",
                            "purpose": "Document vendor onboarding checks",
                            "jurisdictions": [
                              "Example jurisdiction"
                            ],
                            "requiredSources": {},
                            "optionalSources": {},
                            "exclusions": [],
                            "externalChecks": [
                              "Ownership review"
                            ],
                            "review": {
                              "requireSecondReview": false,
                              "secondReviewFor": [],
                              "approverRoles": [
                                "owner",
                                "admin",
                                "analyst"
                              ]
                            },
                            "monitoringIntervalHours": 24,
                            "retentionTrigger": "business_event",
                            "id": "00000000-0000-4000-8000-000000000001",
                            "version": 1,
                            "environment": "sandbox",
                            "createdAt": "2026-09-17T12:00:00.000Z"
                          }
                        ],
                        "nextCursor": null,
                        "requirePolicy": false
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PolicyList"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.\n\n**policy_too_large** — Request a smaller page or contact support if a single policy exceeds the limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "policy_too_large": {
                    "summary": "policy too large",
                    "description": "Synthetic error example. Request a smaller page or contact support if a single policy exceeds the limit.",
                    "value": {
                      "error": {
                        "code": "policy_too_large",
                        "message": "The policy exceeds the bounded response size.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/policies/{id}": {
      "get": {
        "operationId": "get__policies_id_",
        "summary": "Read the current version of an approved policy",
        "tags": [
          "Screening policies"
        ],
        "description": "Required API key scope: sources:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_current": {
                    "summary": "A current synthetic policy",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "items": [
                          {
                            "name": "Synthetic onboarding policy",
                            "purpose": "Document vendor onboarding checks",
                            "jurisdictions": [
                              "Example jurisdiction"
                            ],
                            "requiredSources": {},
                            "optionalSources": {},
                            "exclusions": [],
                            "externalChecks": [
                              "Ownership review"
                            ],
                            "review": {
                              "requireSecondReview": false,
                              "secondReviewFor": [],
                              "approverRoles": [
                                "owner",
                                "admin",
                                "analyst"
                              ]
                            },
                            "monitoringIntervalHours": 24,
                            "retentionTrigger": "business_event",
                            "id": "00000000-0000-4000-8000-000000000001",
                            "version": 1,
                            "environment": "sandbox",
                            "createdAt": "2026-09-17T12:00:00.000Z"
                          }
                        ],
                        "nextCursor": null,
                        "requirePolicy": false
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PolicyList"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Policy not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.\n\n**policy_too_large** — Request a smaller page or contact support if a single policy exceeds the limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "policy_too_large": {
                    "summary": "policy too large",
                    "description": "Synthetic error example. Request a smaller page or contact support if a single policy exceeds the limit.",
                    "value": {
                      "error": {
                        "code": "policy_too_large",
                        "message": "The policy exceeds the bounded response size.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/screenings": {
      "post": {
        "operationId": "post__screenings",
        "summary": "Screen one subject against explicitly selected coverage",
        "tags": [
          "Screening and evidence"
        ],
        "description": "Required API key scope: screenings:write.\n\nStandard retention saves subject details and evidence for review. Only individual API-key requests can choose minimal retention: the reduced result lasts 24 hours, omits submitted subject inputs, and cannot create a review case. Dashboard requests require standard retention. Organization or policy requirements for review, external checks or event-triggered retention reject minimal mode with standard_retention_required. Governed no-match results can create required due-diligence cases.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128,
              "pattern": "^[\\w:.-]{8,128}$"
            },
            "description": "Reuse for identical retries. Reuse with different input returns 409."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "JSON request body. Send Content-Type: application/json with UTF-8 encoding; fields marked required must be present. Omit optional fields unless needed. Null is accepted only where explicitly shown. Unknown properties are rejected for validated request objects. Duplicate keys and nesting beyond 32 levels are rejected. Maximum body size: 1,048,576 bytes (1 MiB).",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScreeningRequest"
              },
              "example": {
                "subject": {
                  "name": "Alex Morgan",
                  "entityType": "person"
                },
                "package": "sandbox@1",
                "retention": "standard"
              }
            }
          }
        },
        "responses": {
          "201": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_no_match": {
                    "summary": "No match within the synthetic sandbox package",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "matching": {
                          "version": "review-1.3.0",
                          "profile": "standard",
                          "nameThreshold": 78,
                          "corroboratedNameThreshold": 75,
                          "retrievalVersion": "indexed-1.2.0",
                          "partialNames": "exclude"
                        },
                        "warnings": [],
                        "id": "00000000-0000-4000-8000-000000000001",
                        "environment": "sandbox",
                        "status": "no_match",
                        "createdAt": "2026-09-17T12:00:00.000Z",
                        "matches": [],
                        "coverage": [
                          {
                            "sourceId": "sandbox-synthetic",
                            "version": "1",
                            "retrievedAt": "2026-09-17T12:00:00.000Z",
                            "fresh": true
                          }
                        ],
                        "versions": {
                          "dataset": "sandbox-synthetic-v1",
                          "matchingEngine": "deterministic-1.3.0",
                          "policy": "review-1.3.0",
                          "package": "sandbox@1"
                        },
                        "disclaimer": "Potential matches support analyst review. No match means no match in the selected sources and dataset, not legal clearance. Scores and evidence categories support review; they are not probabilities of identity or wrongdoing."
                      }
                    }
                  },
                  "recorded_potential_match": {
                    "summary": "Potential match from the real engine against synthetic sandbox records",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "matching": {
                          "version": "review-1.3.0",
                          "profile": "standard",
                          "nameThreshold": 78,
                          "corroboratedNameThreshold": 75,
                          "retrievalVersion": "indexed-1.2.0",
                          "partialNames": "exclude"
                        },
                        "warnings": [],
                        "policySnapshot": {
                          "name": "Synthetic onboarding policy",
                          "purpose": "Document vendor onboarding checks",
                          "jurisdictions": [
                            "Example jurisdiction"
                          ],
                          "requiredSources": {},
                          "optionalSources": {},
                          "exclusions": [],
                          "externalChecks": [
                            "Ownership review"
                          ],
                          "review": {
                            "requireSecondReview": false,
                            "secondReviewFor": [],
                            "approverRoles": [
                              "owner",
                              "admin",
                              "analyst"
                            ]
                          },
                          "monitoringIntervalHours": 24,
                          "retentionTrigger": "business_event",
                          "id": "00000000-0000-4000-8000-000000000001",
                          "version": 1,
                          "environment": "sandbox",
                          "createdAt": "2026-09-17T12:00:00.000Z"
                        },
                        "id": "00000000-0000-4000-8000-000000000002",
                        "environment": "sandbox",
                        "status": "potential_match",
                        "createdAt": "2026-09-17T12:00:00.000Z",
                        "matches": [
                          {
                            "record": {
                              "id": "sandbox:person-001",
                              "sourceId": "sandbox-synthetic",
                              "authority": "SanctionsKit synthetic examples",
                              "list": "Synthetic demonstration records",
                              "sourceUrl": "https://sanctionskit.com/demo",
                              "entityType": "person",
                              "names": [
                                {
                                  "value": "Alex Morgan",
                                  "kind": "primary"
                                },
                                {
                                  "value": "Алекс Морган",
                                  "kind": "alias"
                                }
                              ],
                              "identifiers": [
                                {
                                  "type": "passport",
                                  "value": "DEMO-001",
                                  "issuer": "Fictional authority"
                                }
                              ],
                              "birthDates": [
                                {
                                  "value": "1984",
                                  "precision": "year",
                                  "original": "1984"
                                }
                              ],
                              "addresses": [],
                              "nationalities": [],
                              "designations": [
                                {
                                  "category": "other",
                                  "programs": [
                                    "Synthetic demonstration only"
                                  ],
                                  "legalReferences": [],
                                  "wording": "Invented example, not a government designation."
                                }
                              ],
                              "extensions": {
                                "synthetic": true
                              }
                            },
                            "score": 96,
                            "evidence": [
                              {
                                "field": "name",
                                "queryValue": "Alex Morgan",
                                "sourceValue": "Alex Morgan",
                                "method": "normalized_name_exact",
                                "contribution": 96,
                                "explanation": "Name similarity is a review signal, not a probability or finding of wrongdoing."
                              }
                            ],
                            "conflicts": [],
                            "assessment": {
                              "name": {
                                "similarity": 96,
                                "method": "normalized_name_exact",
                                "aliasKind": "primary",
                                "aliasQuality": "unknown"
                              },
                              "identifiers": {
                                "status": "not_supplied",
                                "matched": 0,
                                "issuerAgreements": 0,
                                "issuerUnknown": 0,
                                "conflicts": 0
                              },
                              "birthDate": {
                                "status": "not_supplied"
                              },
                              "country": {
                                "status": "not_supplied"
                              },
                              "entityType": {
                                "status": "agreement"
                              },
                              "hasConflicts": false,
                              "alertBasis": "name",
                              "reviewTier": "name_only",
                              "sameNameCandidates": 1
                            }
                          }
                        ],
                        "coverage": [
                          {
                            "sourceId": "sandbox-synthetic",
                            "version": "1",
                            "retrievedAt": "2026-09-17T12:00:00.000Z",
                            "fresh": true
                          }
                        ],
                        "versions": {
                          "dataset": "sandbox-synthetic-v1",
                          "matchingEngine": "deterministic-1.3.0",
                          "policy": "review-1.3.0",
                          "package": "sandbox@1"
                        },
                        "disclaimer": "Potential matches support analyst review. No match means no match in the selected sources and dataset, not legal clearance. Scores and evidence categories support review; they are not probabilities of identity or wrongdoing."
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ScreeningResult"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.\n\n**idempotency_key_required** — Include an Idempotency-Key matching this operation’s documented format.\n\n**sandbox_coverage_required** — Use package sandbox@1 in the sandbox; choose approved sources or a qualified package in production.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "recorded_unsupported_sandbox_coverage": {
                    "summary": "Sandbox refuses a non-sandbox coverage request",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "error": {
                        "code": "sandbox_coverage_required",
                        "message": "Sandbox accepts only the explicitly synthetic sandbox@1 package.",
                        "requestId": "00000000-0000-4000-8000-000000000001"
                      }
                    }
                  },
                  "recorded_missing_idempotency_key": {
                    "summary": "Mutations require an idempotency key",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_required",
                        "message": "Provide an Idempotency-Key of 8 to 128 URL-safe characters.",
                        "requestId": "00000000-0000-4000-8000-000000000001"
                      }
                    }
                  },
                  "recorded_invalid_request": {
                    "summary": "Invalid subject input is rejected before screening",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "00000000-0000-4000-8000-000000000001",
                        "details": [
                          {
                            "path": "subject.name",
                            "message": "Too small: expected string to have >=2 characters"
                          }
                        ]
                      }
                    }
                  },
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "idempotency_key_required": {
                    "summary": "idempotency key required",
                    "description": "Synthetic error example. Include an Idempotency-Key matching this operation’s documented format.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_required",
                        "message": "Provide an Idempotency-Key of 8 to 128 URL-safe characters.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "sandbox_coverage_required": {
                    "summary": "sandbox coverage required",
                    "description": "Synthetic error example. Use package sandbox@1 in the sandbox; choose approved sources or a qualified package in production.",
                    "value": {
                      "error": {
                        "code": "sandbox_coverage_required",
                        "message": "Sandbox accepts only the explicitly synthetic sandbox@1 package.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "recorded_invalid_api_key": {
                    "summary": "Malformed API-key credentials are rejected by the actual authentication validator",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "A valid Bearer API key is required.",
                        "requestId": "00000000-0000-4000-8000-000000000001"
                      }
                    }
                  },
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**subscription_required** — Use the synthetic sandbox or arrange an active production subscription before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "subscription_required": {
                    "summary": "subscription required",
                    "description": "Synthetic error example. Use the synthetic sandbox or arrange an active production subscription before retrying.",
                    "value": {
                      "error": {
                        "code": "subscription_required",
                        "message": "An active subscription is required for production screening.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "recorded_permission_denied": {
                    "summary": "The synthetic viewer role cannot create screenings",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "00000000-0000-4000-8000-000000000001"
                      }
                    }
                  },
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Counterparty not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "408": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Reconnect and retry using the same idempotency key and identical input where supported.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Reconnect and retry using the same idempotency key and identical input where supported.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body was not received within 10 seconds.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**idempotency_conflict** — Reuse a key only with identical input. Use a new key for genuinely new work.\n\n**screening_policy_changed** — Reload GET /policies and use the current version after reviewing its coverage.\n\n**counterparty_archived** — Restore the active identity or omit the optional counterparty link.\n\n**counterparty_changed** — Reload the counterparty and use its current subject; names do not automatically merge identities.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "recorded_idempotency_conflict": {
                    "summary": "An idempotency key cannot be reused for a different request",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "error": {
                        "code": "idempotency_conflict",
                        "message": "This idempotency key was used with a different request.",
                        "requestId": "00000000-0000-4000-8000-000000000001"
                      }
                    }
                  },
                  "idempotency_conflict": {
                    "summary": "idempotency conflict",
                    "description": "Synthetic error example. Reuse a key only with identical input. Use a new key for genuinely new work.",
                    "value": {
                      "error": {
                        "code": "idempotency_conflict",
                        "message": "This idempotency key was used with a different request.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "screening_policy_changed": {
                    "summary": "screening policy changed",
                    "description": "Synthetic error example. Reload GET /policies and use the current version after reviewing its coverage.",
                    "value": {
                      "error": {
                        "code": "screening_policy_changed",
                        "message": "The policy has a newer version. Review its coverage before screening again.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "counterparty_archived": {
                    "summary": "counterparty archived",
                    "description": "Synthetic error example. Restore the active identity or omit the optional counterparty link.",
                    "value": {
                      "error": {
                        "code": "counterparty_archived",
                        "message": "Restore this counterparty before screening it.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "counterparty_changed": {
                    "summary": "counterparty changed",
                    "description": "Synthetic error example. Reload the counterparty and use its current subject; names do not automatically merge identities.",
                    "value": {
                      "error": {
                        "code": "counterparty_changed",
                        "message": "Screening input differs from the current counterparty identity.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "410": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**result_expired** — Run a new screening and review its retained evidence. Expired evidence is not reconstructed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "result_expired": {
                    "summary": "result expired",
                    "description": "Synthetic error example. Run a new screening and review its retained evidence. Expired evidence is not reconstructed.",
                    "value": {
                      "error": {
                        "code": "result_expired",
                        "message": "The evidence has expired. Run a new screening before reviewing it.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.\n\n**invalid_request** — Reduce the JSON request size to the documented limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "recorded_request_too_large": {
                    "summary": "A request exceeding the actual JSON body limit is rejected",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body exceeds this endpoint's size limit.",
                        "requestId": "00000000-0000-4000-8000-000000000001"
                      }
                    }
                  },
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Reduce the JSON request size to the documented limit.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "REQUEST_TOO_LARGE",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Use Content-Type: application/json and an uncompressed UTF-8 body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Use Content-Type: application/json and an uncompressed UTF-8 body.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Send application/json with UTF-8 encoding.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**standard_retention_required** — Use standard retention for required review, external checks or business-event retention.\n\n**screening_policy_required** — Load GET /policies and supply the current id and version with the required coverage.\n\n**policy_entity_type_unsupported** — Choose an approved policy with required sources for this subject type.\n\n**policy_coverage_mismatch** — For production policy-based requests use explicit sources, include all required sources and only permitted optional sources; do not substitute a package.\n\n**screening_policy_unavailable** — Reload the current policy before retrying. Do not substitute a different scope silently.\n\n**invalid_coverage** — Check GET /sources and select coverage available to the requested environment and subject type.\n\n**unsupported_entity_type** — Check source capabilities and remove incompatible sources, or choose coverage for this subject type.\n\n**matching_variant_limit** — Provide a more precise name or identifier and retry.\n\n**candidate_limit_exceeded** — Add reliable identifying information before screening again. No all-clear result was produced.\n\n**result_too_large** — Use more precise screening input. Large results are rejected rather than silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "standard_retention_required": {
                    "summary": "standard retention required",
                    "description": "Synthetic error example. Use standard retention for required review, external checks or business-event retention.",
                    "value": {
                      "error": {
                        "code": "standard_retention_required",
                        "message": "The organization or screening policy requires retained evidence.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "screening_policy_required": {
                    "summary": "screening policy required",
                    "description": "Synthetic error example. Load GET /policies and supply the current id and version with the required coverage.",
                    "value": {
                      "error": {
                        "code": "screening_policy_required",
                        "message": "Choose an approved organization screening policy.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "policy_entity_type_unsupported": {
                    "summary": "policy entity type unsupported",
                    "description": "Synthetic error example. Choose an approved policy with required sources for this subject type.",
                    "value": {
                      "error": {
                        "code": "policy_entity_type_unsupported",
                        "message": "This policy has no required coverage for the selected subject type.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "policy_coverage_mismatch": {
                    "summary": "policy coverage mismatch",
                    "description": "Synthetic error example. For production policy-based requests use explicit sources, include all required sources and only permitted optional sources; do not substitute a package.",
                    "value": {
                      "error": {
                        "code": "policy_coverage_mismatch",
                        "message": "Include every required source and only permitted optional sources for this policy.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "screening_policy_unavailable": {
                    "summary": "screening policy unavailable",
                    "description": "Synthetic error example. Reload the current policy before retrying. Do not substitute a different scope silently.",
                    "value": {
                      "error": {
                        "code": "screening_policy_unavailable",
                        "message": "The selected policy version is unavailable.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_coverage": {
                    "summary": "invalid coverage",
                    "description": "Synthetic error example. Check GET /sources and select coverage available to the requested environment and subject type.",
                    "value": {
                      "error": {
                        "code": "invalid_coverage",
                        "message": "Choose a supported coverage package or explicit sources.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "unsupported_entity_type": {
                    "summary": "unsupported entity type",
                    "description": "Synthetic error example. Check source capabilities and remove incompatible sources, or choose coverage for this subject type.",
                    "value": {
                      "error": {
                        "code": "unsupported_entity_type",
                        "message": "The selected source does not support this subject type. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "matching_variant_limit": {
                    "summary": "matching variant limit",
                    "description": "Synthetic error example. Provide a more precise name or identifier and retry.",
                    "value": {
                      "error": {
                        "code": "matching_variant_limit",
                        "message": "This name has too many spelling variants for complete screening. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "candidate_limit_exceeded": {
                    "summary": "candidate limit exceeded",
                    "description": "Synthetic error example. Add reliable identifying information before screening again. No all-clear result was produced.",
                    "value": {
                      "error": {
                        "code": "candidate_limit_exceeded",
                        "message": "This query has too many candidates for reliable screening. Add a precise identifier or more complete name.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "result_too_large": {
                    "summary": "result too large",
                    "description": "Synthetic error example. Use more precise screening input. Large results are rejected rather than silently truncated.",
                    "value": {
                      "error": {
                        "code": "result_too_large",
                        "message": "A retained result exceeds the response size limit. No matches were truncated or skipped.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.\n\n**usage_cap_reached** — Wait for the allowance reset or have an owner review the configured cap and plan.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "recorded_rate_limited": {
                    "summary": "The actual per-minute request limit rejects additional requests",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "00000000-0000-4000-8000-000000000001",
                        "details": {
                          "retryAfterSeconds": 60
                        }
                      }
                    }
                  },
                  "recorded_usage_cap_reached": {
                    "summary": "The configured subject allowance fails closed without charging overage",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "error": {
                        "code": "usage_cap_reached",
                        "message": "The subject allowance or configured spending cap has been reached. No overage was charged.",
                        "requestId": "00000000-0000-4000-8000-000000000001"
                      }
                    }
                  },
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "usage_cap_reached": {
                    "summary": "usage cap reached",
                    "description": "Synthetic error example. Wait for the allowance reset or have an owner review the configured cap and plan.",
                    "value": {
                      "error": {
                        "code": "usage_cap_reached",
                        "message": "The subject allowance or configured spending cap has been reached. No overage was charged.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "recorded_internal_error": {
                    "summary": "A simulated database outage returns a redacted server-error response",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "00000000-0000-4000-8000-000000000001"
                      }
                    }
                  },
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**screening_busy** — Wait for Retry-After, then retry with backoff using the same idempotency key and input.\n\n**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.\n\n**coverage_unavailable** — Do not treat this failure as no-match. Retry only when the selected coverage is available.\n\n**stale_coverage** — Wait for fresh selected coverage. Do not interpret this failure as a no-match result.\n\n**production_screening_disabled** — Wait until production screening is available; the synthetic sandbox remains separate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "recorded_production_disabled": {
                    "summary": "Production screening fails closed when disabled",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "error": {
                        "code": "production_screening_disabled",
                        "message": "Production screening is temporarily unavailable. No screening was completed.",
                        "requestId": "00000000-0000-4000-8000-000000000001"
                      }
                    }
                  },
                  "screening_busy": {
                    "summary": "screening busy",
                    "description": "Synthetic error example. Wait for Retry-After, then retry with backoff using the same idempotency key and input.",
                    "value": {
                      "error": {
                        "code": "screening_busy",
                        "message": "Screening capacity is temporarily busy. Retry with the same idempotency key.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "coverage_unavailable": {
                    "summary": "coverage unavailable",
                    "description": "Synthetic error example. Do not treat this failure as no-match. Retry only when the selected coverage is available.",
                    "value": {
                      "error": {
                        "code": "coverage_unavailable",
                        "message": "The selected coverage is temporarily unavailable. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "stale_coverage": {
                    "summary": "stale coverage",
                    "description": "Synthetic error example. Wait for fresh selected coverage. Do not interpret this failure as a no-match result.",
                    "value": {
                      "error": {
                        "code": "stale_coverage",
                        "message": "The selected coverage is stale. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "production_screening_disabled": {
                    "summary": "production screening disabled",
                    "description": "Synthetic error example. Wait until production screening is available; the synthetic sandbox remains separate.",
                    "value": {
                      "error": {
                        "code": "production_screening_disabled",
                        "message": "Production screening is temporarily unavailable. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/results": {
      "get": {
        "operationId": "get__results",
        "summary": "List retained results",
        "tags": [
          "Screening and evidence"
        ],
        "description": "Required API key scope: results:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum number of items to return. A response may contain fewer items; use its next cursor to decide whether another page exists.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Pass nextCursor from the previous page; omit for the first page. Continue until the response cursor is null. Keep the same filters between pages.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "summary",
            "schema": {
              "type": "boolean",
              "default": false
            },
            "description": "When true returns concise workspace summaries and enables the following filters; otherwise returns retained result rows."
          },
          {
            "in": "query",
            "name": "q",
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Search retained names or resource IDs."
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string",
              "enum": [
                "potential_match",
                "no_match"
              ]
            },
            "description": "Filter by screening outcome. On GET /results this is applied only with summary=true."
          },
          {
            "in": "query",
            "name": "review",
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "confirmed",
                "dismissed",
                "unreviewed"
              ]
            },
            "description": "Filter linked human decision state. unreviewed selects results without a case; it produces no items in case or audit lists. On GET /results requires summary=true."
          },
          {
            "in": "query",
            "name": "origin",
            "schema": {
              "type": "string",
              "enum": [
                "manual",
                "api",
                "batch",
                "monitor",
                "unknown"
              ]
            },
            "description": "Filter screening origin. On GET /results this is applied only with summary=true."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_summaries": {
                    "summary": "Compact synthetic screening summaries",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "items": [
                          {
                            "id": "00000000-0000-4000-8000-000000000001",
                            "status": "no_match",
                            "createdAt": "2026-09-17T12:00:00.000Z",
                            "subjectName": "Zyxwv Unrelated Example",
                            "entityType": "person",
                            "retention": "standard",
                            "expiresAt": "2026-09-17T12:00:00.000Z",
                            "origin": "manual",
                            "caseId": null,
                            "reviewDecision": null,
                            "reviewBusinessDisposition": null,
                            "matchCount": 0,
                            "batchId": null,
                            "monitorId": null
                          },
                          {
                            "id": "00000000-0000-4000-8000-000000000002",
                            "status": "potential_match",
                            "createdAt": "2026-09-17T12:00:00.000Z",
                            "subjectName": "Alex Morgan",
                            "entityType": "person",
                            "retention": "standard",
                            "expiresAt": null,
                            "origin": "manual",
                            "caseId": "00000000-0000-4000-8000-000000000003",
                            "reviewDecision": "open",
                            "reviewBusinessDisposition": "pending",
                            "matchCount": 1,
                            "batchId": null,
                            "monitorId": null
                          }
                        ],
                        "nextCursor": null
                      }
                    }
                  },
                  "recorded_page": {
                    "summary": "Retained synthetic screening results",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "items": [
                          {
                            "id": "00000000-0000-4000-8000-000000000001",
                            "status": "no_match",
                            "matches": [],
                            "coverage": [
                              {
                                "fresh": true,
                                "version": "1",
                                "sourceId": "sandbox-synthetic",
                                "retrievedAt": "2026-09-17T12:00:00.000Z"
                              }
                            ],
                            "matching": {
                              "profile": "standard",
                              "version": "review-1.3.0",
                              "partialNames": "exclude",
                              "nameThreshold": 78,
                              "retrievalVersion": "indexed-1.2.0",
                              "corroboratedNameThreshold": 75
                            },
                            "versions": {
                              "policy": "review-1.3.0",
                              "dataset": "sandbox-synthetic-v1",
                              "package": "sandbox@1",
                              "matchingEngine": "deterministic-1.3.0"
                            },
                            "warnings": [],
                            "createdAt": "2026-09-17T12:00:00.000Z",
                            "disclaimer": "Potential matches support analyst review. No match means no match in the selected sources and dataset, not legal clearance. Scores and evidence categories support review; they are not probabilities of identity or wrongdoing.",
                            "environment": "sandbox"
                          },
                          {
                            "id": "00000000-0000-4000-8000-000000000002",
                            "status": "potential_match",
                            "matches": [
                              {
                                "score": 96,
                                "record": {
                                  "id": "sandbox:person-001",
                                  "list": "Synthetic demonstration records",
                                  "names": [
                                    {
                                      "kind": "primary",
                                      "value": "Alex Morgan"
                                    },
                                    {
                                      "kind": "alias",
                                      "value": "Алекс Морган"
                                    }
                                  ],
                                  "sourceId": "sandbox-synthetic",
                                  "addresses": [],
                                  "authority": "SanctionsKit synthetic examples",
                                  "sourceUrl": "https://sanctionskit.com/demo",
                                  "birthDates": [
                                    {
                                      "value": "1984",
                                      "original": "1984",
                                      "precision": "year"
                                    }
                                  ],
                                  "entityType": "person",
                                  "extensions": {
                                    "synthetic": true
                                  },
                                  "identifiers": [
                                    {
                                      "type": "passport",
                                      "value": "DEMO-001",
                                      "issuer": "Fictional authority"
                                    }
                                  ],
                                  "designations": [
                                    {
                                      "wording": "Invented example, not a government designation.",
                                      "category": "other",
                                      "programs": [
                                        "Synthetic demonstration only"
                                      ],
                                      "legalReferences": []
                                    }
                                  ],
                                  "nationalities": []
                                },
                                "evidence": [
                                  {
                                    "field": "name",
                                    "method": "normalized_name_exact",
                                    "queryValue": "Alex Morgan",
                                    "explanation": "Name similarity is a review signal, not a probability or finding of wrongdoing.",
                                    "sourceValue": "Alex Morgan",
                                    "contribution": 96
                                  }
                                ],
                                "conflicts": [],
                                "assessment": {
                                  "name": {
                                    "method": "normalized_name_exact",
                                    "aliasKind": "primary",
                                    "similarity": 96,
                                    "aliasQuality": "unknown"
                                  },
                                  "country": {
                                    "status": "not_supplied"
                                  },
                                  "birthDate": {
                                    "status": "not_supplied"
                                  },
                                  "alertBasis": "name",
                                  "entityType": {
                                    "status": "agreement"
                                  },
                                  "reviewTier": "name_only",
                                  "identifiers": {
                                    "status": "not_supplied",
                                    "matched": 0,
                                    "conflicts": 0,
                                    "issuerUnknown": 0,
                                    "issuerAgreements": 0
                                  },
                                  "hasConflicts": false,
                                  "sameNameCandidates": 1
                                }
                              }
                            ],
                            "coverage": [
                              {
                                "fresh": true,
                                "version": "1",
                                "sourceId": "sandbox-synthetic",
                                "retrievedAt": "2026-09-17T12:00:00.000Z"
                              }
                            ],
                            "matching": {
                              "profile": "standard",
                              "version": "review-1.3.0",
                              "partialNames": "exclude",
                              "nameThreshold": 78,
                              "retrievalVersion": "indexed-1.2.0",
                              "corroboratedNameThreshold": 75
                            },
                            "versions": {
                              "policy": "review-1.3.0",
                              "dataset": "sandbox-synthetic-v1",
                              "package": "sandbox@1",
                              "matchingEngine": "deterministic-1.3.0"
                            },
                            "warnings": [],
                            "createdAt": "2026-09-17T12:00:00.000Z",
                            "disclaimer": "Potential matches support analyst review. No match means no match in the selected sources and dataset, not legal clearance. Scores and evidence categories support review; they are not probabilities of identity or wrongdoing.",
                            "environment": "sandbox",
                            "policySnapshot": {
                              "id": "00000000-0000-4000-8000-000000000003",
                              "name": "Synthetic onboarding policy",
                              "review": {
                                "approverRoles": [
                                  "owner",
                                  "admin",
                                  "analyst"
                                ],
                                "secondReviewFor": [],
                                "requireSecondReview": false
                              },
                              "purpose": "Document vendor onboarding checks",
                              "version": 1,
                              "createdAt": "2026-09-17T12:00:00.000Z",
                              "exclusions": [],
                              "environment": "sandbox",
                              "jurisdictions": [
                                "Example jurisdiction"
                              ],
                              "externalChecks": [
                                "Ownership review"
                              ],
                              "optionalSources": {},
                              "requiredSources": {},
                              "retentionTrigger": "business_event",
                              "monitoringIntervalHours": 24
                            }
                          }
                        ],
                        "nextCursor": null
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ResultsPage"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**result_too_large** — Use more precise screening input. Large results are rejected rather than silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "result_too_large": {
                    "summary": "result too large",
                    "description": "Synthetic error example. Use more precise screening input. Large results are rejected rather than silently truncated.",
                    "value": {
                      "error": {
                        "code": "result_too_large",
                        "message": "A retained result exceeds the response size limit. No matches were truncated or skipped.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/results/{id}": {
      "get": {
        "operationId": "get__results_id_",
        "summary": "Retrieve one retained screening",
        "tags": [
          "Screening and evidence"
        ],
        "description": "Required API key scope: results:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_retained": {
                    "summary": "An actual retained synthetic screening",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "id": "00000000-0000-4000-8000-000000000001",
                        "status": "potential_match",
                        "matches": [
                          {
                            "score": 96,
                            "record": {
                              "id": "sandbox:person-001",
                              "list": "Synthetic demonstration records",
                              "names": [
                                {
                                  "kind": "primary",
                                  "value": "Alex Morgan"
                                },
                                {
                                  "kind": "alias",
                                  "value": "Алекс Морган"
                                }
                              ],
                              "sourceId": "sandbox-synthetic",
                              "addresses": [],
                              "authority": "SanctionsKit synthetic examples",
                              "sourceUrl": "https://sanctionskit.com/demo",
                              "birthDates": [
                                {
                                  "value": "1984",
                                  "original": "1984",
                                  "precision": "year"
                                }
                              ],
                              "entityType": "person",
                              "extensions": {
                                "synthetic": true
                              },
                              "identifiers": [
                                {
                                  "type": "passport",
                                  "value": "DEMO-001",
                                  "issuer": "Fictional authority"
                                }
                              ],
                              "designations": [
                                {
                                  "wording": "Invented example, not a government designation.",
                                  "category": "other",
                                  "programs": [
                                    "Synthetic demonstration only"
                                  ],
                                  "legalReferences": []
                                }
                              ],
                              "nationalities": []
                            },
                            "evidence": [
                              {
                                "field": "name",
                                "method": "normalized_name_exact",
                                "queryValue": "Alex Morgan",
                                "explanation": "Name similarity is a review signal, not a probability or finding of wrongdoing.",
                                "sourceValue": "Alex Morgan",
                                "contribution": 96
                              }
                            ],
                            "conflicts": [],
                            "assessment": {
                              "name": {
                                "method": "normalized_name_exact",
                                "aliasKind": "primary",
                                "similarity": 96,
                                "aliasQuality": "unknown"
                              },
                              "country": {
                                "status": "not_supplied"
                              },
                              "birthDate": {
                                "status": "not_supplied"
                              },
                              "alertBasis": "name",
                              "entityType": {
                                "status": "agreement"
                              },
                              "reviewTier": "name_only",
                              "identifiers": {
                                "status": "not_supplied",
                                "matched": 0,
                                "conflicts": 0,
                                "issuerUnknown": 0,
                                "issuerAgreements": 0
                              },
                              "hasConflicts": false,
                              "sameNameCandidates": 1
                            }
                          }
                        ],
                        "coverage": [
                          {
                            "fresh": true,
                            "version": "1",
                            "sourceId": "sandbox-synthetic",
                            "retrievedAt": "2026-09-17T12:00:00.000Z"
                          }
                        ],
                        "matching": {
                          "profile": "standard",
                          "version": "review-1.3.0",
                          "partialNames": "exclude",
                          "nameThreshold": 78,
                          "retrievalVersion": "indexed-1.2.0",
                          "corroboratedNameThreshold": 75
                        },
                        "versions": {
                          "policy": "review-1.3.0",
                          "dataset": "sandbox-synthetic-v1",
                          "package": "sandbox@1",
                          "matchingEngine": "deterministic-1.3.0"
                        },
                        "warnings": [],
                        "createdAt": "2026-09-17T12:00:00.000Z",
                        "disclaimer": "Potential matches support analyst review. No match means no match in the selected sources and dataset, not legal clearance. Scores and evidence categories support review; they are not probabilities of identity or wrongdoing.",
                        "environment": "sandbox",
                        "policySnapshot": {
                          "id": "00000000-0000-4000-8000-000000000002",
                          "name": "Synthetic onboarding policy",
                          "review": {
                            "approverRoles": [
                              "owner",
                              "admin",
                              "analyst"
                            ],
                            "secondReviewFor": [],
                            "requireSecondReview": false
                          },
                          "purpose": "Document vendor onboarding checks",
                          "version": 1,
                          "createdAt": "2026-09-17T12:00:00.000Z",
                          "exclusions": [],
                          "environment": "sandbox",
                          "jurisdictions": [
                            "Example jurisdiction"
                          ],
                          "externalChecks": [
                            "Ownership review"
                          ],
                          "optionalSources": {},
                          "requiredSources": {},
                          "retentionTrigger": "business_event",
                          "monitoringIntervalHours": 24
                        },
                        "subject": {
                          "name": "Alex Morgan",
                          "entityType": "person",
                          "identifiers": []
                        },
                        "reference": null
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/RetainedScreeningResult"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "recorded_not_found": {
                    "summary": "An unknown retained screening is not disclosed",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Screening not found.",
                        "requestId": "00000000-0000-4000-8000-000000000001"
                      }
                    }
                  },
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Screening not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "410": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**result_expired** — Run a new screening and review its retained evidence. Expired evidence is not reconstructed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "recorded_expired": {
                    "summary": "Expired evidence cannot be retrieved",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "error": {
                        "code": "result_expired",
                        "message": "This screening evidence has expired under your retention policy.",
                        "requestId": "00000000-0000-4000-8000-000000000001"
                      }
                    }
                  },
                  "result_expired": {
                    "summary": "result expired",
                    "description": "Synthetic error example. Run a new screening and review its retained evidence. Expired evidence is not reconstructed.",
                    "value": {
                      "error": {
                        "code": "result_expired",
                        "message": "The evidence has expired. Run a new screening before reviewing it.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**result_too_large** — Use more precise screening input. Large results are rejected rather than silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "result_too_large": {
                    "summary": "result too large",
                    "description": "Synthetic error example. Use more precise screening input. Large results are rejected rather than silently truncated.",
                    "value": {
                      "error": {
                        "code": "result_too_large",
                        "message": "A retained result exceeds the response size limit. No matches were truncated or skipped.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/results/{id}/evidence": {
      "get": {
        "operationId": "get__results_id_evidence",
        "summary": "Download retained JSON evidence",
        "tags": [
          "Screening and evidence"
        ],
        "description": "Required API key scope: results:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. The response is the documented raw JSON or file content, without a data envelope. Check Content-Type before decoding.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_evidence": {
                    "summary": "Synthetic retained evidence export",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "format": "sanctionskit-evidence@1",
                      "result": {
                        "id": "00000000-0000-4000-8000-000000000001",
                        "status": "potential_match",
                        "matches": [
                          {
                            "score": 96,
                            "record": {
                              "id": "sandbox:person-001",
                              "list": "Synthetic demonstration records",
                              "names": [
                                {
                                  "kind": "primary",
                                  "value": "Alex Morgan"
                                },
                                {
                                  "kind": "alias",
                                  "value": "Алекс Морган"
                                }
                              ],
                              "sourceId": "sandbox-synthetic",
                              "addresses": [],
                              "authority": "SanctionsKit synthetic examples",
                              "sourceUrl": "https://sanctionskit.com/demo",
                              "birthDates": [
                                {
                                  "value": "1984",
                                  "original": "1984",
                                  "precision": "year"
                                }
                              ],
                              "entityType": "person",
                              "extensions": {
                                "synthetic": true
                              },
                              "identifiers": [
                                {
                                  "type": "passport",
                                  "value": "DEMO-001",
                                  "issuer": "Fictional authority"
                                }
                              ],
                              "designations": [
                                {
                                  "wording": "Invented example, not a government designation.",
                                  "category": "other",
                                  "programs": [
                                    "Synthetic demonstration only"
                                  ],
                                  "legalReferences": []
                                }
                              ],
                              "nationalities": []
                            },
                            "evidence": [
                              {
                                "field": "name",
                                "method": "normalized_name_exact",
                                "queryValue": "Alex Morgan",
                                "explanation": "Name similarity is a review signal, not a probability or finding of wrongdoing.",
                                "sourceValue": "Alex Morgan",
                                "contribution": 96
                              }
                            ],
                            "conflicts": [],
                            "assessment": {
                              "name": {
                                "method": "normalized_name_exact",
                                "aliasKind": "primary",
                                "similarity": 96,
                                "aliasQuality": "unknown"
                              },
                              "country": {
                                "status": "not_supplied"
                              },
                              "birthDate": {
                                "status": "not_supplied"
                              },
                              "alertBasis": "name",
                              "entityType": {
                                "status": "agreement"
                              },
                              "reviewTier": "name_only",
                              "identifiers": {
                                "status": "not_supplied",
                                "matched": 0,
                                "conflicts": 0,
                                "issuerUnknown": 0,
                                "issuerAgreements": 0
                              },
                              "hasConflicts": false,
                              "sameNameCandidates": 1
                            }
                          }
                        ],
                        "coverage": [
                          {
                            "fresh": true,
                            "version": "1",
                            "sourceId": "sandbox-synthetic",
                            "retrievedAt": "2026-09-17T12:00:00.000Z"
                          }
                        ],
                        "matching": {
                          "profile": "standard",
                          "version": "review-1.3.0",
                          "partialNames": "exclude",
                          "nameThreshold": 78,
                          "retrievalVersion": "indexed-1.2.0",
                          "corroboratedNameThreshold": 75
                        },
                        "versions": {
                          "policy": "review-1.3.0",
                          "dataset": "sandbox-synthetic-v1",
                          "package": "sandbox@1",
                          "matchingEngine": "deterministic-1.3.0"
                        },
                        "warnings": [],
                        "createdAt": "2026-09-17T12:00:00.000Z",
                        "disclaimer": "Potential matches support analyst review. No match means no match in the selected sources and dataset, not legal clearance. Scores and evidence categories support review; they are not probabilities of identity or wrongdoing.",
                        "environment": "sandbox",
                        "policySnapshot": {
                          "id": "00000000-0000-4000-8000-000000000002",
                          "name": "Synthetic onboarding policy",
                          "review": {
                            "approverRoles": [
                              "owner",
                              "admin",
                              "analyst"
                            ],
                            "secondReviewFor": [],
                            "requireSecondReview": false
                          },
                          "purpose": "Document vendor onboarding checks",
                          "version": 1,
                          "createdAt": "2026-09-17T12:00:00.000Z",
                          "exclusions": [],
                          "environment": "sandbox",
                          "jurisdictions": [
                            "Example jurisdiction"
                          ],
                          "externalChecks": [
                            "Ownership review"
                          ],
                          "optionalSources": {},
                          "requiredSources": {},
                          "retentionTrigger": "business_event",
                          "monitoringIntervalHours": 24
                        }
                      },
                      "retention": "standard",
                      "expires_at": null,
                      "subject": {
                        "name": "Alex Morgan",
                        "entityType": "person",
                        "identifiers": []
                      },
                      "reference": null,
                      "request": {
                        "policy": {
                          "id": "00000000-0000-4000-8000-000000000002",
                          "version": 1
                        },
                        "package": "sandbox@1",
                        "subject": {
                          "name": "Alex Morgan",
                          "entityType": "person",
                          "identifiers": []
                        },
                        "retention": "standard",
                        "counterpartyId": "00000000-0000-4000-8000-000000000003"
                      },
                      "retainedInputs": true,
                      "replayLimit": null
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ScreeningEvidence"
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Screening not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "410": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**result_expired** — Run a new screening and review its retained evidence. Expired evidence is not reconstructed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "result_expired": {
                    "summary": "result expired",
                    "description": "Synthetic error example. Run a new screening and review its retained evidence. Expired evidence is not reconstructed.",
                    "value": {
                      "error": {
                        "code": "result_expired",
                        "message": "The evidence has expired. Run a new screening before reviewing it.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**result_too_large** — Use more precise screening input. Large results are rejected rather than silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "result_too_large": {
                    "summary": "result too large",
                    "description": "Synthetic error example. Use more precise screening input. Large results are rejected rather than silently truncated.",
                    "value": {
                      "error": {
                        "code": "result_too_large",
                        "message": "A retained result exceeds the response size limit. No matches were truncated or skipped.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/batches": {
      "get": {
        "operationId": "get__batches",
        "summary": "List batches with progress",
        "tags": [
          "Batches and files"
        ],
        "description": "Required API key scope: results:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum number of items to return. A response may contain fewer items; use its next cursor to decide whether another page exists.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Pass nextCursor from the previous page; omit for the first page. Continue until the response cursor is null. Keep the same filters between pages.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_page": {
                    "summary": "A page of synthetic batches",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "items": [
                          {
                            "id": "00000000-0000-4000-8000-000000000001",
                            "environment": "sandbox",
                            "name": "Synthetic documentation batch",
                            "status": "pending",
                            "total": 1,
                            "completed": 0,
                            "failed": 0,
                            "cancelled_at": null,
                            "created_at": "2026-09-17T12:00:00.000Z"
                          }
                        ],
                        "nextCursor": null
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BatchPage"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "post__batches",
        "summary": "Accept up to 100 inline requests or an authorized private upload",
        "tags": [
          "Batches and files"
        ],
        "description": "Required API key scope: batches:write.\n\nAll batch rows require standard retention, including uploaded JSONL. Explicit minimal rows are rejected. Uploaded inputs are temporary for 24 hours; resulting screening records follow the workspace and case retention policy.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128,
              "pattern": "^[\\w:.-]{8,128}$"
            },
            "description": "Reuse for identical retries. Reuse with different input returns 409."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "JSON request body. Send Content-Type: application/json with UTF-8 encoding; fields marked required must be present. Omit optional fields unless needed. Null is accepted only where explicitly shown. Unknown properties are rejected for validated request objects. Duplicate keys and nesting beyond 32 levels are rejected. Maximum body size: 1,048,576 bytes (1 MiB).",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchRequest"
              },
              "example": {
                "name": "Synthetic example batch",
                "subjects": [
                  {
                    "subject": {
                      "name": "Alex Morgan",
                      "entityType": "person"
                    },
                    "package": "sandbox@1",
                    "retention": "standard"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Accepted for asynchronous processing. This does not establish completed work. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_accepted": {
                    "summary": "A synthetic batch queued for processing",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "id": "00000000-0000-4000-8000-000000000001",
                        "status": "pending",
                        "total": 1
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BatchAccepted"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.\n\n**idempotency_key_required** — Include an Idempotency-Key matching this operation’s documented format.\n\n**sandbox_coverage_required** — Use package sandbox@1 in the sandbox; choose approved sources or a qualified package in production.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "idempotency_key_required": {
                    "summary": "idempotency key required",
                    "description": "Synthetic error example. Include an Idempotency-Key matching this operation’s documented format.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_required",
                        "message": "Provide an Idempotency-Key of 8 to 128 URL-safe characters.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "sandbox_coverage_required": {
                    "summary": "sandbox coverage required",
                    "description": "Synthetic error example. Use package sandbox@1 in the sandbox; choose approved sources or a qualified package in production.",
                    "value": {
                      "error": {
                        "code": "sandbox_coverage_required",
                        "message": "Sandbox accepts only the explicitly synthetic sandbox@1 package.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**subscription_required** — Use the synthetic sandbox or arrange an active production subscription before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "subscription_required": {
                    "summary": "subscription required",
                    "description": "Synthetic error example. Use the synthetic sandbox or arrange an active production subscription before retrying.",
                    "value": {
                      "error": {
                        "code": "subscription_required",
                        "message": "An active subscription is required for production screening.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Counterparty not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "408": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Reconnect and retry using the same idempotency key and identical input where supported.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Reconnect and retry using the same idempotency key and identical input where supported.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body was not received within 10 seconds.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**idempotency_conflict** — Reuse a key only with identical input. Use a new key for genuinely new work.\n\n**screening_policy_changed** — Reload GET /policies and use the current version after reviewing its coverage.\n\n**upload_unavailable** — Create and complete a new authorized upload before submitting its uploadId.\n\n**counterparty_archived** — Restore the active identity or omit the optional counterparty link.\n\n**counterparty_changed** — Reload the counterparty and use its current subject; names do not automatically merge identities.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_conflict": {
                    "summary": "idempotency conflict",
                    "description": "Synthetic error example. Reuse a key only with identical input. Use a new key for genuinely new work.",
                    "value": {
                      "error": {
                        "code": "idempotency_conflict",
                        "message": "This idempotency key was used with a different request.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "screening_policy_changed": {
                    "summary": "screening policy changed",
                    "description": "Synthetic error example. Reload GET /policies and use the current version after reviewing its coverage.",
                    "value": {
                      "error": {
                        "code": "screening_policy_changed",
                        "message": "The policy has a newer version. Review its coverage before screening again.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "upload_unavailable": {
                    "summary": "upload unavailable",
                    "description": "Synthetic error example. Create and complete a new authorized upload before submitting its uploadId.",
                    "value": {
                      "error": {
                        "code": "upload_unavailable",
                        "message": "The upload is missing, expired, already used, or incomplete.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "counterparty_archived": {
                    "summary": "counterparty archived",
                    "description": "Synthetic error example. Restore the active identity or omit the optional counterparty link.",
                    "value": {
                      "error": {
                        "code": "counterparty_archived",
                        "message": "Restore this counterparty before screening it.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "counterparty_changed": {
                    "summary": "counterparty changed",
                    "description": "Synthetic error example. Reload the counterparty and use its current subject; names do not automatically merge identities.",
                    "value": {
                      "error": {
                        "code": "counterparty_changed",
                        "message": "Screening input differs from the current counterparty identity.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.\n\n**invalid_request** — Reduce the JSON request size to the documented limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Reduce the JSON request size to the documented limit.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "REQUEST_TOO_LARGE",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Use Content-Type: application/json and an uncompressed UTF-8 body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Use Content-Type: application/json and an uncompressed UTF-8 body.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Send application/json with UTF-8 encoding.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**screening_policy_required** — Load GET /policies and supply the current id and version with the required coverage.\n\n**policy_entity_type_unsupported** — Choose an approved policy with required sources for this subject type.\n\n**policy_coverage_mismatch** — For production policy-based requests use explicit sources, include all required sources and only permitted optional sources; do not substitute a package.\n\n**screening_policy_unavailable** — Reload the current policy before retrying. Do not substitute a different scope silently.\n\n**invalid_coverage** — Check GET /sources and select coverage available to the requested environment and subject type.\n\n**unsupported_entity_type** — Check source capabilities and remove incompatible sources, or choose coverage for this subject type.\n\n**matching_variant_limit** — Provide a more precise name or identifier and retry.\n\n**candidate_limit_exceeded** — Add reliable identifying information before screening again. No all-clear result was produced.\n\n**retained_screening_required** — Use standard retention or omit retention on every batch row.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "screening_policy_required": {
                    "summary": "screening policy required",
                    "description": "Synthetic error example. Load GET /policies and supply the current id and version with the required coverage.",
                    "value": {
                      "error": {
                        "code": "screening_policy_required",
                        "message": "Choose an approved organization screening policy.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "policy_entity_type_unsupported": {
                    "summary": "policy entity type unsupported",
                    "description": "Synthetic error example. Choose an approved policy with required sources for this subject type.",
                    "value": {
                      "error": {
                        "code": "policy_entity_type_unsupported",
                        "message": "This policy has no required coverage for the selected subject type.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "policy_coverage_mismatch": {
                    "summary": "policy coverage mismatch",
                    "description": "Synthetic error example. For production policy-based requests use explicit sources, include all required sources and only permitted optional sources; do not substitute a package.",
                    "value": {
                      "error": {
                        "code": "policy_coverage_mismatch",
                        "message": "Include every required source and only permitted optional sources for this policy.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "screening_policy_unavailable": {
                    "summary": "screening policy unavailable",
                    "description": "Synthetic error example. Reload the current policy before retrying. Do not substitute a different scope silently.",
                    "value": {
                      "error": {
                        "code": "screening_policy_unavailable",
                        "message": "The selected policy version is unavailable.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_coverage": {
                    "summary": "invalid coverage",
                    "description": "Synthetic error example. Check GET /sources and select coverage available to the requested environment and subject type.",
                    "value": {
                      "error": {
                        "code": "invalid_coverage",
                        "message": "Choose a supported coverage package or explicit sources.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "unsupported_entity_type": {
                    "summary": "unsupported entity type",
                    "description": "Synthetic error example. Check source capabilities and remove incompatible sources, or choose coverage for this subject type.",
                    "value": {
                      "error": {
                        "code": "unsupported_entity_type",
                        "message": "The selected source does not support this subject type. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "matching_variant_limit": {
                    "summary": "matching variant limit",
                    "description": "Synthetic error example. Provide a more precise name or identifier and retry.",
                    "value": {
                      "error": {
                        "code": "matching_variant_limit",
                        "message": "This name has too many spelling variants for complete screening. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "candidate_limit_exceeded": {
                    "summary": "candidate limit exceeded",
                    "description": "Synthetic error example. Add reliable identifying information before screening again. No all-clear result was produced.",
                    "value": {
                      "error": {
                        "code": "candidate_limit_exceeded",
                        "message": "This query has too many candidates for reliable screening. Add a precise identifier or more complete name.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "retained_screening_required": {
                    "summary": "retained screening required",
                    "description": "Synthetic error example. Use standard retention or omit retention on every batch row.",
                    "value": {
                      "error": {
                        "code": "retained_screening_required",
                        "message": "Bulk screening requires standard retention so results remain available for review.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.\n\n**usage_cap_reached** — Submit fewer subjects or wait for allowance to reset.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "usage_cap_reached": {
                    "summary": "usage cap reached",
                    "description": "Synthetic error example. Submit fewer subjects or wait for allowance to reset.",
                    "value": {
                      "error": {
                        "code": "usage_cap_reached",
                        "message": "The subject allowance or configured spending cap has been reached. No overage was charged.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.\n\n**coverage_unavailable** — Do not treat this failure as no-match. Retry only when the selected coverage is available.\n\n**stale_coverage** — Wait for fresh selected coverage. Do not interpret this failure as a no-match result.\n\n**production_screening_disabled** — Wait until production screening is available; the synthetic sandbox remains separate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "coverage_unavailable": {
                    "summary": "coverage unavailable",
                    "description": "Synthetic error example. Do not treat this failure as no-match. Retry only when the selected coverage is available.",
                    "value": {
                      "error": {
                        "code": "coverage_unavailable",
                        "message": "The selected coverage is temporarily unavailable. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "stale_coverage": {
                    "summary": "stale coverage",
                    "description": "Synthetic error example. Wait for fresh selected coverage. Do not interpret this failure as a no-match result.",
                    "value": {
                      "error": {
                        "code": "stale_coverage",
                        "message": "The selected coverage is stale. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "production_screening_disabled": {
                    "summary": "production screening disabled",
                    "description": "Synthetic error example. Wait until production screening is available; the synthetic sandbox remains separate.",
                    "value": {
                      "error": {
                        "code": "production_screening_disabled",
                        "message": "Production screening is temporarily unavailable. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/batches/{id}": {
      "get": {
        "operationId": "get__batches_id_",
        "summary": "Read batch and row outcomes",
        "tags": [
          "Batches and files"
        ],
        "description": "Required API key scope: results:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            },
            "description": "Maximum page size. Follow the returned next cursor or offset even if fewer rows are returned."
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000,
              "default": 0
            },
            "description": "Row offset. Continue using nextOffset until null."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_pending": {
                    "summary": "An accepted synthetic batch with a pending row",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "id": "00000000-0000-4000-8000-000000000001",
                        "environment": "sandbox",
                        "name": "Synthetic documentation batch",
                        "status": "pending",
                        "total": 1,
                        "completed": 0,
                        "failed": 0,
                        "cancelled_at": null,
                        "created_at": "2026-09-17T12:00:00.000Z",
                        "rows": [
                          {
                            "row_number": 1,
                            "status": "pending",
                            "screening_id": null,
                            "error": null
                          }
                        ],
                        "nextOffset": null
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BatchDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Batch not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete__batches_id_",
        "summary": "Cancel pending batch rows",
        "tags": [
          "Batches and files"
        ],
        "description": "Required API key scope: batches:write.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_cancelled": {
                    "summary": "Cancellation is safe to repeat",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "id": "00000000-0000-4000-8000-000000000001",
                        "status": "cancelled"
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BatchCancellation"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Batch not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/uploads/intent": {
      "post": {
        "operationId": "post__uploads_intent",
        "summary": "Authorize a direct private Blob upload",
        "tags": [
          "Batches and files"
        ],
        "description": "Required API key scope: batches:write.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": false,
          "description": "JSON request body. Send Content-Type: application/json with UTF-8 encoding; fields marked required must be present. Omit optional fields unless needed. Null is accepted only where explicitly shown. Unknown properties are rejected for validated request objects. Duplicate keys and nesting beyond 32 levels are rejected. Maximum body size: 1,048,576 bytes (1 MiB).",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadIntentRequest"
              },
              "example": {
                "sizeBytes": 1048576
              }
            }
          }
        },
        "responses": {
          "201": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "success": {
                    "summary": "Synthetic success example",
                    "description": "Synthetic contract example, validated against the response schema. Invented data; no live customer, provider request, payment, message or source activation.",
                    "value": {
                      "data": {
                        "id": "01234567-89ab-4cde-8f01-23456789abcd",
                        "pathname": "org/org_example/sandbox/uploads/01234567-89ab-4cde-8f01-23456789abcd.jsonl",
                        "access": "private",
                        "handleUploadUrl": "/api/v1/uploads",
                        "maxBytes": 26214400,
                        "reservedBytes": 26214400,
                        "format": "One screening request JSON object per line, at most 10000 rows."
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/UploadIntent"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**subscription_required** — Use the synthetic sandbox or arrange an active production subscription before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "subscription_required": {
                    "summary": "subscription required",
                    "description": "Synthetic error example. Use the synthetic sandbox or arrange an active production subscription before retrying.",
                    "value": {
                      "error": {
                        "code": "subscription_required",
                        "message": "An active subscription is required for production screening.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "408": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Reconnect and retry using the same idempotency key and identical input where supported.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Reconnect and retry using the same idempotency key and identical input where supported.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body was not received within 10 seconds.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.\n\n**invalid_request** — Reduce the JSON request size to the documented limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Reduce the JSON request size to the documented limit.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "REQUEST_TOO_LARGE",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Use Content-Type: application/json and an uncompressed UTF-8 body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Use Content-Type: application/json and an uncompressed UTF-8 body.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Send application/json with UTF-8 encoding.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.\n\n**upload_quota_exceeded** — Wait for expired uploads to be deleted before requesting another upload intent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "upload_quota_exceeded": {
                    "summary": "upload quota exceeded",
                    "description": "Synthetic error example. Wait for expired uploads to be deleted before requesting another upload intent.",
                    "value": {
                      "error": {
                        "code": "upload_quota_exceeded",
                        "message": "This workspace has reached its upload storage limit. Capacity becomes available after expired uploads are deleted.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/uploads": {
      "post": {
        "operationId": "post__uploads",
        "summary": "Create a client token for an authorized private batch upload",
        "tags": [
          "Batches and files"
        ],
        "description": "Required API key scope: batches:write.\n\nCall through @vercel/blob/client with the pathname from POST /uploads/intent, access private and multipart false. Upload NDJSON with one ScreeningRequest per line, up to 10000 rows. The provider-only upload-completed callback is excluded from this consumer reference.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "description": "JSON request body. Send Content-Type: application/json with UTF-8 encoding; fields marked required must be present. Omit optional fields unless needed. Null is accepted only where explicitly shown. Unknown properties are rejected for validated request objects. Duplicate keys and nesting beyond 32 levels are rejected. Maximum body size: 1,048,576 bytes (1 MiB).",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadTokenRequest"
              },
              "example": {
                "type": "blob.generate-client-token",
                "payload": {
                  "pathname": "org/example/sandbox/uploads/example.jsonl",
                  "clientPayload": null,
                  "multipart": false
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. The response is the documented raw JSON or file content, without a data envelope. Check Content-Type before decoding.",
            "content": {
              "application/json": {
                "examples": {
                  "success": {
                    "summary": "Synthetic success example",
                    "description": "Synthetic contract example, validated against the response schema. Invented data; no live customer, provider request, payment, message or source activation.",
                    "value": {
                      "type": "blob.generate-client-token",
                      "clientToken": "DOCUMENTATION_EXAMPLE_NOT_A_VALID_TOKEN"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/UploadTokenResponse"
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.\n\n**upload_intent_required** — Request an upload intent and pass its exact pathname.\n\n**invalid_upload** — Use the documented single-upload protocol; multipart must be false.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "upload_intent_required": {
                    "summary": "upload intent required",
                    "description": "Synthetic error example. Request an upload intent and pass its exact pathname.",
                    "value": {
                      "error": {
                        "code": "upload_intent_required",
                        "message": "Create an upload intent first, then use its exact pathname.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_upload": {
                    "summary": "invalid upload",
                    "description": "Synthetic error example. Use the documented single-upload protocol; multipart must be false.",
                    "value": {
                      "error": {
                        "code": "invalid_upload",
                        "message": "Batch uploads use a single bounded upload.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "408": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Reconnect and retry using the same idempotency key and identical input where supported.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Reconnect and retry using the same idempotency key and identical input where supported.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body was not received within 10 seconds.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**upload_token_expired** — Create a fresh upload intent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "upload_token_expired": {
                    "summary": "upload token expired",
                    "description": "Synthetic error example. Create a fresh upload intent.",
                    "value": {
                      "error": {
                        "code": "upload_token_expired",
                        "message": "This upload token has expired. Create a new upload intent.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Use Content-Type: application/json and an uncompressed UTF-8 body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Use Content-Type: application/json and an uncompressed UTF-8 body.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Send application/json with UTF-8 encoding.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/files/{id}": {
      "get": {
        "operationId": "get__files_id_",
        "summary": "Download a private file after tenant authorization",
        "tags": [
          "Batches and files"
        ],
        "description": "Required API key scope: results:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. The response is the documented raw JSON or file content, without a data envelope. Check Content-Type before decoding.",
            "content": {
              "application/x-ndjson": {
                "examples": {
                  "success": {
                    "summary": "Synthetic success example",
                    "description": "Synthetic contract example, validated against the response schema. Invented data; no live customer, provider request, payment, message or source activation.",
                    "value": "{\"subject\":{\"name\":\"Alex Morgan\",\"entityType\":\"person\",\"identifiers\":[],\"birthDate\":\"1984\"},\"package\":\"sandbox@1\",\"retention\":\"standard\"}\n"
                  }
                },
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "examples": {
                  "success": {
                    "summary": "Synthetic success example",
                    "description": "Synthetic contract example, validated against the response schema. Invented data; no live customer, provider request, payment, message or source activation.",
                    "value": "{\"subject\":{\"name\":\"Alex Morgan\",\"entityType\":\"person\",\"identifiers\":[],\"birthDate\":\"1984\"},\"package\":\"sandbox@1\",\"retention\":\"standard\"}\n"
                  }
                },
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/plain": {
                "examples": {
                  "success": {
                    "summary": "Synthetic success example",
                    "description": "Synthetic contract example, validated against the response schema. Invented data; no live customer, provider request, payment, message or source activation.",
                    "value": "{\"subject\":{\"name\":\"Alex Morgan\",\"entityType\":\"person\",\"identifiers\":[],\"birthDate\":\"1984\"},\"package\":\"sandbox@1\",\"retention\":\"standard\"}\n"
                  }
                },
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "File not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/monitors": {
      "get": {
        "operationId": "get__monitors",
        "summary": "List retained monitoring subjects",
        "tags": [
          "Monitoring"
        ],
        "description": "Required API key scope: results:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum number of items to return. A response may contain fewer items; use its next cursor to decide whether another page exists.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Pass nextCursor from the previous page; omit for the first page. Continue until the response cursor is null. Keep the same filters between pages.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_page": {
                    "summary": "A page of synthetic monitors",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "items": [
                          {
                            "id": "00000000-0000-4000-8000-000000000001",
                            "name": "Synthetic supplier monitoring",
                            "status": "active",
                            "last_screening_id": "00000000-0000-4000-8000-000000000002",
                            "next_run_at": "2026-09-17T12:00:00.000Z",
                            "created_at": "2026-09-17T12:00:00.000Z",
                            "revision": 1,
                            "counterparty_id": null
                          }
                        ],
                        "nextCursor": null
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MonitorPage"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "post__monitors",
        "summary": "Create a monitor with retained subject data",
        "tags": [
          "Monitoring"
        ],
        "description": "Required API key scope: monitors:write.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128,
              "pattern": "^[\\w:.-]{8,128}$"
            },
            "description": "Reuse for identical retries. Reuse with different input returns 409."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "JSON request body. Send Content-Type: application/json with UTF-8 encoding; fields marked required must be present. Omit optional fields unless needed. Null is accepted only where explicitly shown. Unknown properties are rejected for validated request objects. Duplicate keys and nesting beyond 32 levels are rejected. Maximum body size: 1,048,576 bytes (1 MiB).",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MonitorRequest"
              },
              "example": {
                "name": "Synthetic example monitor",
                "subject": {
                  "name": "Alex Morgan",
                  "entityType": "person"
                },
                "package": "sandbox@1"
              }
            }
          }
        },
        "responses": {
          "201": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_created": {
                    "summary": "A synthetic sandbox monitor created",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "id": "00000000-0000-4000-8000-000000000001",
                        "name": "Synthetic supplier monitoring",
                        "status": "active"
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MonitorCreated"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.\n\n**idempotency_key_required** — Include an Idempotency-Key matching this operation’s documented format.\n\n**sandbox_coverage_required** — Use package sandbox@1 in the sandbox; choose approved sources or a qualified package in production.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "idempotency_key_required": {
                    "summary": "idempotency key required",
                    "description": "Synthetic error example. Include an Idempotency-Key matching this operation’s documented format.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_required",
                        "message": "Provide an Idempotency-Key of 8 to 128 URL-safe characters.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "sandbox_coverage_required": {
                    "summary": "sandbox coverage required",
                    "description": "Synthetic error example. Use package sandbox@1 in the sandbox; choose approved sources or a qualified package in production.",
                    "value": {
                      "error": {
                        "code": "sandbox_coverage_required",
                        "message": "Sandbox accepts only the explicitly synthetic sandbox@1 package.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**subscription_required** — Use the synthetic sandbox or arrange an active production subscription before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "subscription_required": {
                    "summary": "subscription required",
                    "description": "Synthetic error example. Use the synthetic sandbox or arrange an active production subscription before retrying.",
                    "value": {
                      "error": {
                        "code": "subscription_required",
                        "message": "An active subscription is required for production screening.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "408": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Reconnect and retry using the same idempotency key and identical input where supported.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Reconnect and retry using the same idempotency key and identical input where supported.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body was not received within 10 seconds.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**idempotency_conflict** — Reuse a key only with identical input. Use a new key for genuinely new work.\n\n**screening_policy_changed** — Reload GET /policies and use the current version after reviewing its coverage.\n\n**monitor_limit_reached** — Remove an unused monitor or review plan allowance.\n\n**counterparty_archived** — Restore the linked counterparty before screening.\n\n**counterparty_changed** — Reload the counterparty and use its current identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_conflict": {
                    "summary": "idempotency conflict",
                    "description": "Synthetic error example. Reuse a key only with identical input. Use a new key for genuinely new work.",
                    "value": {
                      "error": {
                        "code": "idempotency_conflict",
                        "message": "This idempotency key was used with a different request.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "screening_policy_changed": {
                    "summary": "screening policy changed",
                    "description": "Synthetic error example. Reload GET /policies and use the current version after reviewing its coverage.",
                    "value": {
                      "error": {
                        "code": "screening_policy_changed",
                        "message": "The policy has a newer version. Review its coverage before screening again.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "monitor_limit_reached": {
                    "summary": "monitor limit reached",
                    "description": "Synthetic error example. Remove an unused monitor or review plan allowance.",
                    "value": {
                      "error": {
                        "code": "monitor_limit_reached",
                        "message": "The monitoring allowance has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "counterparty_archived": {
                    "summary": "counterparty archived",
                    "description": "Synthetic error example. Restore the linked counterparty before screening.",
                    "value": {
                      "error": {
                        "code": "counterparty_archived",
                        "message": "Restore this counterparty before screening it.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "counterparty_changed": {
                    "summary": "counterparty changed",
                    "description": "Synthetic error example. Reload the counterparty and use its current identity.",
                    "value": {
                      "error": {
                        "code": "counterparty_changed",
                        "message": "Screening input differs from the current counterparty identity. Reload its current subject.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.\n\n**invalid_request** — Reduce the JSON request size to the documented limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Reduce the JSON request size to the documented limit.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "REQUEST_TOO_LARGE",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Use Content-Type: application/json and an uncompressed UTF-8 body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Use Content-Type: application/json and an uncompressed UTF-8 body.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Send application/json with UTF-8 encoding.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**screening_policy_required** — Load GET /policies and supply the current id and version with the required coverage.\n\n**policy_entity_type_unsupported** — Choose an approved policy with required sources for this subject type.\n\n**policy_coverage_mismatch** — For production policy-based requests use explicit sources, include all required sources and only permitted optional sources; do not substitute a package.\n\n**screening_policy_unavailable** — Reload the current policy before retrying. Do not substitute a different scope silently.\n\n**invalid_coverage** — Check GET /sources and select coverage available to the requested environment and subject type.\n\n**unsupported_entity_type** — Check source capabilities and remove incompatible sources, or choose coverage for this subject type.\n\n**matching_variant_limit** — Provide a more precise name or identifier and retry.\n\n**candidate_limit_exceeded** — Add reliable identifying information before screening again. No all-clear result was produced.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "screening_policy_required": {
                    "summary": "screening policy required",
                    "description": "Synthetic error example. Load GET /policies and supply the current id and version with the required coverage.",
                    "value": {
                      "error": {
                        "code": "screening_policy_required",
                        "message": "Choose an approved organization screening policy.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "policy_entity_type_unsupported": {
                    "summary": "policy entity type unsupported",
                    "description": "Synthetic error example. Choose an approved policy with required sources for this subject type.",
                    "value": {
                      "error": {
                        "code": "policy_entity_type_unsupported",
                        "message": "This policy has no required coverage for the selected subject type.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "policy_coverage_mismatch": {
                    "summary": "policy coverage mismatch",
                    "description": "Synthetic error example. For production policy-based requests use explicit sources, include all required sources and only permitted optional sources; do not substitute a package.",
                    "value": {
                      "error": {
                        "code": "policy_coverage_mismatch",
                        "message": "Include every required source and only permitted optional sources for this policy.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "screening_policy_unavailable": {
                    "summary": "screening policy unavailable",
                    "description": "Synthetic error example. Reload the current policy before retrying. Do not substitute a different scope silently.",
                    "value": {
                      "error": {
                        "code": "screening_policy_unavailable",
                        "message": "The selected policy version is unavailable.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_coverage": {
                    "summary": "invalid coverage",
                    "description": "Synthetic error example. Check GET /sources and select coverage available to the requested environment and subject type.",
                    "value": {
                      "error": {
                        "code": "invalid_coverage",
                        "message": "Choose a supported coverage package or explicit sources.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "unsupported_entity_type": {
                    "summary": "unsupported entity type",
                    "description": "Synthetic error example. Check source capabilities and remove incompatible sources, or choose coverage for this subject type.",
                    "value": {
                      "error": {
                        "code": "unsupported_entity_type",
                        "message": "The selected source does not support this subject type. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "matching_variant_limit": {
                    "summary": "matching variant limit",
                    "description": "Synthetic error example. Provide a more precise name or identifier and retry.",
                    "value": {
                      "error": {
                        "code": "matching_variant_limit",
                        "message": "This name has too many spelling variants for complete screening. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "candidate_limit_exceeded": {
                    "summary": "candidate limit exceeded",
                    "description": "Synthetic error example. Add reliable identifying information before screening again. No all-clear result was produced.",
                    "value": {
                      "error": {
                        "code": "candidate_limit_exceeded",
                        "message": "This query has too many candidates for reliable screening. Add a precise identifier or more complete name.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.\n\n**coverage_unavailable** — Do not treat this failure as no-match. Retry only when the selected coverage is available.\n\n**stale_coverage** — Wait for fresh selected coverage. Do not interpret this failure as a no-match result.\n\n**production_screening_disabled** — Wait until production screening is available; the synthetic sandbox remains separate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "coverage_unavailable": {
                    "summary": "coverage unavailable",
                    "description": "Synthetic error example. Do not treat this failure as no-match. Retry only when the selected coverage is available.",
                    "value": {
                      "error": {
                        "code": "coverage_unavailable",
                        "message": "The selected coverage is temporarily unavailable. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "stale_coverage": {
                    "summary": "stale coverage",
                    "description": "Synthetic error example. Wait for fresh selected coverage. Do not interpret this failure as a no-match result.",
                    "value": {
                      "error": {
                        "code": "stale_coverage",
                        "message": "The selected coverage is stale. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "production_screening_disabled": {
                    "summary": "production screening disabled",
                    "description": "Synthetic error example. Wait until production screening is available; the synthetic sandbox remains separate.",
                    "value": {
                      "error": {
                        "code": "production_screening_disabled",
                        "message": "Production screening is temporarily unavailable. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/monitors/{id}": {
      "get": {
        "operationId": "get__monitors_id_",
        "summary": "Read one active or paused monitor",
        "tags": [
          "Monitoring"
        ],
        "description": "Required API key scope: results:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "success": {
                    "summary": "Synthetic success example",
                    "description": "Synthetic contract example, validated against the response schema. Invented data; no live customer, provider request, payment, message or source activation.",
                    "value": {
                      "data": {
                        "id": "01234567-89ab-4cde-8f01-23456789abcd",
                        "name": "Synthetic customer monitor",
                        "status": "active",
                        "last_screening_id": "01234567-89ab-4cde-8f01-23456789abcd",
                        "next_run_at": "2026-09-18T12:00:00.000Z",
                        "created_at": "2026-09-17T12:00:00.000Z",
                        "revision": 1,
                        "counterparty_id": "01234567-89ab-4cde-8f01-23456789abce"
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Monitor"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Monitor not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "patch__monitors_id_",
        "summary": "Update a monitored subject and queue a fresh screen",
        "tags": [
          "Monitoring"
        ],
        "description": "Required API key scope: monitors:write.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128,
              "pattern": "^[\\w:.-]{8,128}$"
            },
            "description": "Reuse for identical retries. Reuse with different input returns 409."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "JSON request body. Send Content-Type: application/json with UTF-8 encoding; fields marked required must be present. Omit optional fields unless needed. Null is accepted only where explicitly shown. Unknown properties are rejected for validated request objects. Duplicate keys and nesting beyond 32 levels are rejected. Maximum body size: 1,048,576 bytes (1 MiB).",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MonitorUpdate"
              },
              "example": {
                "name": "Synthetic example monitor",
                "subject": {
                  "name": "Alex Morgan",
                  "entityType": "person"
                },
                "package": "sandbox@1",
                "expectedRevision": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_updated": {
                    "summary": "A synthetic monitored subject updated",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "id": "00000000-0000-4000-8000-000000000001",
                        "name": "Updated synthetic monitoring",
                        "status": "active",
                        "revision": 2
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MonitorUpdated"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.\n\n**idempotency_key_required** — Include an Idempotency-Key matching this operation’s documented format.\n\n**sandbox_coverage_required** — Use package sandbox@1 in the sandbox; choose approved sources or a qualified package in production.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "idempotency_key_required": {
                    "summary": "idempotency key required",
                    "description": "Synthetic error example. Include an Idempotency-Key matching this operation’s documented format.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_required",
                        "message": "Provide an Idempotency-Key of 8 to 128 URL-safe characters.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "sandbox_coverage_required": {
                    "summary": "sandbox coverage required",
                    "description": "Synthetic error example. Use package sandbox@1 in the sandbox; choose approved sources or a qualified package in production.",
                    "value": {
                      "error": {
                        "code": "sandbox_coverage_required",
                        "message": "Sandbox accepts only the explicitly synthetic sandbox@1 package.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**subscription_required** — Use the synthetic sandbox or arrange an active production subscription before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "subscription_required": {
                    "summary": "subscription required",
                    "description": "Synthetic error example. Use the synthetic sandbox or arrange an active production subscription before retrying.",
                    "value": {
                      "error": {
                        "code": "subscription_required",
                        "message": "An active subscription is required for production screening.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Monitor not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "408": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Reconnect and retry using the same idempotency key and identical input where supported.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Reconnect and retry using the same idempotency key and identical input where supported.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body was not received within 10 seconds.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**idempotency_conflict** — Reuse a key only with identical input. Use a new key for genuinely new work.\n\n**screening_policy_changed** — Reload GET /policies and use the current version after reviewing its coverage.\n\n**monitor_limit_reached** — Remove an unused monitor or review plan allowance.\n\n**counterparty_archived** — Restore the linked counterparty before screening.\n\n**counterparty_changed** — Reload the counterparty and use its current identity.\n\n**monitor_changed** — Reload the monitor and use its current expectedRevision.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_conflict": {
                    "summary": "idempotency conflict",
                    "description": "Synthetic error example. Reuse a key only with identical input. Use a new key for genuinely new work.",
                    "value": {
                      "error": {
                        "code": "idempotency_conflict",
                        "message": "This idempotency key was used with a different request.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "screening_policy_changed": {
                    "summary": "screening policy changed",
                    "description": "Synthetic error example. Reload GET /policies and use the current version after reviewing its coverage.",
                    "value": {
                      "error": {
                        "code": "screening_policy_changed",
                        "message": "The policy has a newer version. Review its coverage before screening again.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "monitor_limit_reached": {
                    "summary": "monitor limit reached",
                    "description": "Synthetic error example. Remove an unused monitor or review plan allowance.",
                    "value": {
                      "error": {
                        "code": "monitor_limit_reached",
                        "message": "The monitoring allowance has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "counterparty_archived": {
                    "summary": "counterparty archived",
                    "description": "Synthetic error example. Restore the linked counterparty before screening.",
                    "value": {
                      "error": {
                        "code": "counterparty_archived",
                        "message": "Restore this counterparty before screening it.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "counterparty_changed": {
                    "summary": "counterparty changed",
                    "description": "Synthetic error example. Reload the counterparty and use its current identity.",
                    "value": {
                      "error": {
                        "code": "counterparty_changed",
                        "message": "Screening input differs from the current counterparty identity. Reload its current subject.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "monitor_changed": {
                    "summary": "monitor changed",
                    "description": "Synthetic error example. Reload the monitor and use its current expectedRevision.",
                    "value": {
                      "error": {
                        "code": "monitor_changed",
                        "message": "This monitor changed. Reload before saving.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.\n\n**invalid_request** — Reduce the JSON request size to the documented limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Reduce the JSON request size to the documented limit.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "REQUEST_TOO_LARGE",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Use Content-Type: application/json and an uncompressed UTF-8 body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Use Content-Type: application/json and an uncompressed UTF-8 body.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Send application/json with UTF-8 encoding.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**screening_policy_required** — Load GET /policies and supply the current id and version with the required coverage.\n\n**policy_entity_type_unsupported** — Choose an approved policy with required sources for this subject type.\n\n**policy_coverage_mismatch** — For production policy-based requests use explicit sources, include all required sources and only permitted optional sources; do not substitute a package.\n\n**screening_policy_unavailable** — Reload the current policy before retrying. Do not substitute a different scope silently.\n\n**invalid_coverage** — Check GET /sources and select coverage available to the requested environment and subject type.\n\n**unsupported_entity_type** — Check source capabilities and remove incompatible sources, or choose coverage for this subject type.\n\n**matching_variant_limit** — Provide a more precise name or identifier and retry.\n\n**candidate_limit_exceeded** — Add reliable identifying information before screening again. No all-clear result was produced.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "screening_policy_required": {
                    "summary": "screening policy required",
                    "description": "Synthetic error example. Load GET /policies and supply the current id and version with the required coverage.",
                    "value": {
                      "error": {
                        "code": "screening_policy_required",
                        "message": "Choose an approved organization screening policy.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "policy_entity_type_unsupported": {
                    "summary": "policy entity type unsupported",
                    "description": "Synthetic error example. Choose an approved policy with required sources for this subject type.",
                    "value": {
                      "error": {
                        "code": "policy_entity_type_unsupported",
                        "message": "This policy has no required coverage for the selected subject type.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "policy_coverage_mismatch": {
                    "summary": "policy coverage mismatch",
                    "description": "Synthetic error example. For production policy-based requests use explicit sources, include all required sources and only permitted optional sources; do not substitute a package.",
                    "value": {
                      "error": {
                        "code": "policy_coverage_mismatch",
                        "message": "Include every required source and only permitted optional sources for this policy.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "screening_policy_unavailable": {
                    "summary": "screening policy unavailable",
                    "description": "Synthetic error example. Reload the current policy before retrying. Do not substitute a different scope silently.",
                    "value": {
                      "error": {
                        "code": "screening_policy_unavailable",
                        "message": "The selected policy version is unavailable.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_coverage": {
                    "summary": "invalid coverage",
                    "description": "Synthetic error example. Check GET /sources and select coverage available to the requested environment and subject type.",
                    "value": {
                      "error": {
                        "code": "invalid_coverage",
                        "message": "Choose a supported coverage package or explicit sources.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "unsupported_entity_type": {
                    "summary": "unsupported entity type",
                    "description": "Synthetic error example. Check source capabilities and remove incompatible sources, or choose coverage for this subject type.",
                    "value": {
                      "error": {
                        "code": "unsupported_entity_type",
                        "message": "The selected source does not support this subject type. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "matching_variant_limit": {
                    "summary": "matching variant limit",
                    "description": "Synthetic error example. Provide a more precise name or identifier and retry.",
                    "value": {
                      "error": {
                        "code": "matching_variant_limit",
                        "message": "This name has too many spelling variants for complete screening. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "candidate_limit_exceeded": {
                    "summary": "candidate limit exceeded",
                    "description": "Synthetic error example. Add reliable identifying information before screening again. No all-clear result was produced.",
                    "value": {
                      "error": {
                        "code": "candidate_limit_exceeded",
                        "message": "This query has too many candidates for reliable screening. Add a precise identifier or more complete name.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.\n\n**coverage_unavailable** — Do not treat this failure as no-match. Retry only when the selected coverage is available.\n\n**stale_coverage** — Wait for fresh selected coverage. Do not interpret this failure as a no-match result.\n\n**production_screening_disabled** — Wait until production screening is available; the synthetic sandbox remains separate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "coverage_unavailable": {
                    "summary": "coverage unavailable",
                    "description": "Synthetic error example. Do not treat this failure as no-match. Retry only when the selected coverage is available.",
                    "value": {
                      "error": {
                        "code": "coverage_unavailable",
                        "message": "The selected coverage is temporarily unavailable. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "stale_coverage": {
                    "summary": "stale coverage",
                    "description": "Synthetic error example. Wait for fresh selected coverage. Do not interpret this failure as a no-match result.",
                    "value": {
                      "error": {
                        "code": "stale_coverage",
                        "message": "The selected coverage is stale. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "production_screening_disabled": {
                    "summary": "production screening disabled",
                    "description": "Synthetic error example. Wait until production screening is available; the synthetic sandbox remains separate.",
                    "value": {
                      "error": {
                        "code": "production_screening_disabled",
                        "message": "Production screening is temporarily unavailable. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete__monitors_id_",
        "summary": "Stop monitoring and remove retained monitor input",
        "tags": [
          "Monitoring"
        ],
        "description": "Required API key scope: monitors:write.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_deleted": {
                    "summary": "A synthetic monitor deleted",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "id": "00000000-0000-4000-8000-000000000001",
                        "status": "deleted"
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MonitorDeleted"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Monitor not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/monitoring": {
      "get": {
        "operationId": "get__monitoring",
        "summary": "Read monitor health, controls and estimated period capacity",
        "tags": [
          "Monitoring"
        ],
        "description": "Required API key scope: results:read.\n\nHealth follows the last successful check; an active schedule is not proof of coverage. Forecast excludes source changes, retries and future interactive or batch work and does not reserve allowance.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum number of items to return. A response may contain fewer items; use its next cursor to decide whether another page exists.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 20
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Pass nextCursor from the previous page; omit for the first page. Continue until the response cursor is null. Keep the same filters between pages.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "monitorId",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Return only items belonging to this monitor UUID."
          },
          {
            "in": "query",
            "name": "q",
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Case-insensitive substring search within monitor names."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_page": {
                    "summary": "Synthetic monitoring controls and current state",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "items": [
                          {
                            "id": "00000000-0000-4000-8000-000000000001",
                            "name": "Synthetic supplier monitoring",
                            "status": "active",
                            "request": {
                              "package": "sandbox@1",
                              "subject": {
                                "name": "Alex Morgan",
                                "entityType": "person",
                                "identifiers": []
                              },
                              "retention": "standard"
                            },
                            "counterpartyId": null,
                            "lastScreeningId": "00000000-0000-4000-8000-000000000002",
                            "nextRunAt": "2026-09-17T12:00:00.000Z",
                            "updatedAt": "2026-09-17T12:00:00.000Z",
                            "intervalHours": 24,
                            "revision": 1,
                            "lastErrorCode": null,
                            "lastAttemptAt": "2026-09-17T12:00:00.000Z",
                            "lastSuccessfulAt": "2026-09-17T12:00:00.000Z",
                            "health": "healthy"
                          }
                        ],
                        "nextCursor": null,
                        "forecast": {
                          "generatedAt": "2026-09-17T12:00:00.000Z",
                          "periodEnd": "2026-09-17T12:00:00.000Z",
                          "dailyScreenings": 1,
                          "projectedRemainingScreenings": 14,
                          "effectiveLimit": 100,
                          "used": 3,
                          "reserved": 0,
                          "remaining": 97,
                          "projectedExhaustionAt": null
                        },
                        "forecastUnavailable": null
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MonitoringPage"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/monitoring/{id}": {
      "patch": {
        "operationId": "patch__monitoring_id_",
        "summary": "Pause, resume, change cadence or queue a check now using the current revision",
        "tags": [
          "Monitoring"
        ],
        "description": "Required API key scope: monitors:write.\n\nPolicy-backed monitors use their approved cadence. Resume and immediate retries revalidate current policy and coverage. runNow queues work and does not itself establish a completed result.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128,
              "pattern": "^[\\w:.-]{8,128}$"
            },
            "description": "Reuse for identical retries. Reuse with different input returns 409."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "JSON request body. Send Content-Type: application/json with UTF-8 encoding; fields marked required must be present. Omit optional fields unless needed. Null is accepted only where explicitly shown. Unknown properties are rejected for validated request objects. Duplicate keys and nesting beyond 32 levels are rejected. Maximum body size: 65,536 bytes (64 KiB).",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MonitorControl"
              },
              "example": {
                "expectedRevision": 1,
                "status": "paused"
              }
            }
          }
        },
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_paused": {
                    "summary": "Synthetic monitoring paused",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "id": "00000000-0000-4000-8000-000000000001",
                        "updated": true
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ResourceUpdated"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.\n\n**idempotency_key_required** — Include an Idempotency-Key matching this operation’s documented format.\n\n**sandbox_coverage_required** — Use package sandbox@1 in the sandbox; choose approved sources or a qualified package in production.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "idempotency_key_required": {
                    "summary": "idempotency key required",
                    "description": "Synthetic error example. Include an Idempotency-Key matching this operation’s documented format.",
                    "value": {
                      "error": {
                        "code": "idempotency_key_required",
                        "message": "Provide an Idempotency-Key of 8 to 128 URL-safe characters.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "sandbox_coverage_required": {
                    "summary": "sandbox coverage required",
                    "description": "Synthetic error example. Use package sandbox@1 in the sandbox; choose approved sources or a qualified package in production.",
                    "value": {
                      "error": {
                        "code": "sandbox_coverage_required",
                        "message": "Sandbox accepts only the explicitly synthetic sandbox@1 package.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**subscription_required** — Use the synthetic sandbox or arrange an active production subscription before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "subscription_required": {
                    "summary": "subscription required",
                    "description": "Synthetic error example. Use the synthetic sandbox or arrange an active production subscription before retrying.",
                    "value": {
                      "error": {
                        "code": "subscription_required",
                        "message": "An active subscription is required for production screening.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Monitor not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "408": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Reconnect and retry using the same idempotency key and identical input where supported.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Reconnect and retry using the same idempotency key and identical input where supported.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body was not received within 10 seconds.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**idempotency_conflict** — Reuse a key only with identical input. Use a new key for genuinely new work.\n\n**screening_policy_changed** — Reload GET /policies and use the current version after reviewing its coverage.\n\n**monitor_paused** — Set status=active with runNow or resume the monitor first.\n\n**stale_revision** — Reload and send its current expectedRevision.\n\n**monitor_limit_reached** — Reduce active monitors or review plan allowance.\n\n**counterparty_unavailable** — Restore the linked counterparty first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_conflict": {
                    "summary": "idempotency conflict",
                    "description": "Synthetic error example. Reuse a key only with identical input. Use a new key for genuinely new work.",
                    "value": {
                      "error": {
                        "code": "idempotency_conflict",
                        "message": "This idempotency key was used with a different request.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "screening_policy_changed": {
                    "summary": "screening policy changed",
                    "description": "Synthetic error example. Reload GET /policies and use the current version after reviewing its coverage.",
                    "value": {
                      "error": {
                        "code": "screening_policy_changed",
                        "message": "The policy has a newer version. Review its coverage before screening again.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "monitor_paused": {
                    "summary": "monitor paused",
                    "description": "Synthetic error example. Set status=active with runNow or resume the monitor first.",
                    "value": {
                      "error": {
                        "code": "monitor_paused",
                        "message": "Resume this monitor before running a check.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "stale_revision": {
                    "summary": "stale revision",
                    "description": "Synthetic error example. Reload and send its current expectedRevision.",
                    "value": {
                      "error": {
                        "code": "stale_revision",
                        "message": "This monitor changed. Reload before saving.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "monitor_limit_reached": {
                    "summary": "monitor limit reached",
                    "description": "Synthetic error example. Reduce active monitors or review plan allowance.",
                    "value": {
                      "error": {
                        "code": "monitor_limit_reached",
                        "message": "The monitoring allowance has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "counterparty_unavailable": {
                    "summary": "counterparty unavailable",
                    "description": "Synthetic error example. Restore the linked counterparty first.",
                    "value": {
                      "error": {
                        "code": "counterparty_unavailable",
                        "message": "Restore the linked counterparty before resuming monitoring.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.\n\n**invalid_request** — Reduce the JSON request size to the documented limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Reduce the JSON request size to the documented limit.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "REQUEST_TOO_LARGE",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Use Content-Type: application/json and an uncompressed UTF-8 body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Use Content-Type: application/json and an uncompressed UTF-8 body.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Send application/json with UTF-8 encoding.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**screening_policy_required** — Load GET /policies and supply the current id and version with the required coverage.\n\n**policy_entity_type_unsupported** — Choose an approved policy with required sources for this subject type.\n\n**policy_coverage_mismatch** — For production policy-based requests use explicit sources, include all required sources and only permitted optional sources; do not substitute a package.\n\n**screening_policy_unavailable** — Reload the current policy before retrying. Do not substitute a different scope silently.\n\n**invalid_coverage** — Check GET /sources and select coverage available to the requested environment and subject type.\n\n**unsupported_entity_type** — Check source capabilities and remove incompatible sources, or choose coverage for this subject type.\n\n**matching_variant_limit** — Provide a more precise name or identifier and retry.\n\n**candidate_limit_exceeded** — Add reliable identifying information before screening again. No all-clear result was produced.\n\n**monitoring_policy_cadence** — Retain the policy cadence or update the approved policy before changing it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "screening_policy_required": {
                    "summary": "screening policy required",
                    "description": "Synthetic error example. Load GET /policies and supply the current id and version with the required coverage.",
                    "value": {
                      "error": {
                        "code": "screening_policy_required",
                        "message": "Choose an approved organization screening policy.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "policy_entity_type_unsupported": {
                    "summary": "policy entity type unsupported",
                    "description": "Synthetic error example. Choose an approved policy with required sources for this subject type.",
                    "value": {
                      "error": {
                        "code": "policy_entity_type_unsupported",
                        "message": "This policy has no required coverage for the selected subject type.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "policy_coverage_mismatch": {
                    "summary": "policy coverage mismatch",
                    "description": "Synthetic error example. For production policy-based requests use explicit sources, include all required sources and only permitted optional sources; do not substitute a package.",
                    "value": {
                      "error": {
                        "code": "policy_coverage_mismatch",
                        "message": "Include every required source and only permitted optional sources for this policy.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "screening_policy_unavailable": {
                    "summary": "screening policy unavailable",
                    "description": "Synthetic error example. Reload the current policy before retrying. Do not substitute a different scope silently.",
                    "value": {
                      "error": {
                        "code": "screening_policy_unavailable",
                        "message": "The selected policy version is unavailable.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_coverage": {
                    "summary": "invalid coverage",
                    "description": "Synthetic error example. Check GET /sources and select coverage available to the requested environment and subject type.",
                    "value": {
                      "error": {
                        "code": "invalid_coverage",
                        "message": "Choose a supported coverage package or explicit sources.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "unsupported_entity_type": {
                    "summary": "unsupported entity type",
                    "description": "Synthetic error example. Check source capabilities and remove incompatible sources, or choose coverage for this subject type.",
                    "value": {
                      "error": {
                        "code": "unsupported_entity_type",
                        "message": "The selected source does not support this subject type. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "matching_variant_limit": {
                    "summary": "matching variant limit",
                    "description": "Synthetic error example. Provide a more precise name or identifier and retry.",
                    "value": {
                      "error": {
                        "code": "matching_variant_limit",
                        "message": "This name has too many spelling variants for complete screening. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "candidate_limit_exceeded": {
                    "summary": "candidate limit exceeded",
                    "description": "Synthetic error example. Add reliable identifying information before screening again. No all-clear result was produced.",
                    "value": {
                      "error": {
                        "code": "candidate_limit_exceeded",
                        "message": "This query has too many candidates for reliable screening. Add a precise identifier or more complete name.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "monitoring_policy_cadence": {
                    "summary": "monitoring policy cadence",
                    "description": "Synthetic error example. Retain the policy cadence or update the approved policy before changing it.",
                    "value": {
                      "error": {
                        "code": "monitoring_policy_cadence",
                        "message": "This monitor must use the cadence in its approved screening policy.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.\n\n**coverage_unavailable** — Do not treat this failure as no-match. Retry only when the selected coverage is available.\n\n**stale_coverage** — Wait for fresh selected coverage. Do not interpret this failure as a no-match result.\n\n**production_screening_disabled** — Wait until production screening is available; the synthetic sandbox remains separate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "coverage_unavailable": {
                    "summary": "coverage unavailable",
                    "description": "Synthetic error example. Do not treat this failure as no-match. Retry only when the selected coverage is available.",
                    "value": {
                      "error": {
                        "code": "coverage_unavailable",
                        "message": "The selected coverage is temporarily unavailable. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "stale_coverage": {
                    "summary": "stale coverage",
                    "description": "Synthetic error example. Wait for fresh selected coverage. Do not interpret this failure as a no-match result.",
                    "value": {
                      "error": {
                        "code": "stale_coverage",
                        "message": "The selected coverage is stale. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "production_screening_disabled": {
                    "summary": "production screening disabled",
                    "description": "Synthetic error example. Wait until production screening is available; the synthetic sandbox remains separate.",
                    "value": {
                      "error": {
                        "code": "production_screening_disabled",
                        "message": "Production screening is temporarily unavailable. No screening was completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/monitoring/inbox": {
      "get": {
        "operationId": "get__monitoring_inbox",
        "summary": "List meaningful changes, failures and reviews that must be renewed",
        "tags": [
          "Monitoring"
        ],
        "description": "Required API key scope: results:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum number of items to return. A response may contain fewer items; use its next cursor to decide whether another page exists.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 20
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Pass nextCursor from the previous page; omit for the first page. Continue until the response cursor is null. Keep the same filters between pages.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "enum": [
                "all",
                "unread",
                "acknowledged"
              ]
            },
            "description": "Filter unread or acknowledged monitoring events; omission is all."
          },
          {
            "in": "query",
            "name": "kind",
            "schema": {
              "enum": [
                "initial_match",
                "match_added",
                "match_removed",
                "evidence_changed",
                "policy_changed",
                "baseline_unavailable",
                "screening_failed",
                "screening_overdue",
                "screening_recovered",
                "review_required"
              ]
            },
            "description": "Filter by monitoring event kind. Omit to include every kind."
          },
          {
            "in": "query",
            "name": "monitorId",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Return only items belonging to this monitor UUID."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_initial_match": {
                    "summary": "An initial synthetic monitoring match for review",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "items": [
                          {
                            "id": "00000000-0000-4000-8000-000000000001",
                            "monitorId": "00000000-0000-4000-8000-000000000002",
                            "monitorName": "Synthetic supplier monitoring",
                            "caseId": "00000000-0000-4000-8000-000000000003",
                            "screeningId": "00000000-0000-4000-8000-000000000004",
                            "previousScreeningId": null,
                            "kind": "initial_match",
                            "status": "unread",
                            "createdAt": "2026-09-17T12:00:00.000Z",
                            "acknowledgedAt": null,
                            "errorCode": null,
                            "totalChanges": 1,
                            "evidenceExpired": false,
                            "currentEvidenceAvailable": true,
                            "previousEvidenceAvailable": false,
                            "changes": [
                              {
                                "kind": "added",
                                "fields": [],
                                "recordId": "sandbox:person-001",
                                "sourceId": "sandbox-synthetic",
                                "after": {
                                  "names": [
                                    {
                                      "value": "Alex Morgan",
                                      "kind": "primary"
                                    },
                                    {
                                      "value": "Алекс Морган",
                                      "kind": "alias"
                                    }
                                  ],
                                  "identifiers": [
                                    {
                                      "type": "passport",
                                      "value": "DEMO-001",
                                      "issuer": "Fictional authority"
                                    }
                                  ],
                                  "birthDates": [
                                    {
                                      "value": "1984",
                                      "original": "1984",
                                      "precision": "year"
                                    }
                                  ],
                                  "nationalities": [],
                                  "designations": [
                                    {
                                      "wording": "Invented example, not a government designation.",
                                      "category": "other",
                                      "programs": [
                                        "Synthetic demonstration only"
                                      ],
                                      "legalReferences": []
                                    }
                                  ]
                                }
                              }
                            ]
                          }
                        ],
                        "nextCursor": null,
                        "unreadCount": 1
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MonitorEventPage"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/monitoring/inbox/{id}": {
      "get": {
        "operationId": "get__monitoring_inbox_id_",
        "summary": "Read bounded before-and-after previews from retained evidence",
        "tags": [
          "Monitoring"
        ],
        "description": "Required API key scope: results:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_detail": {
                    "summary": "A retained synthetic monitoring event",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "id": "00000000-0000-4000-8000-000000000001",
                        "monitorId": "00000000-0000-4000-8000-000000000002",
                        "monitorName": "Synthetic supplier monitoring",
                        "caseId": "00000000-0000-4000-8000-000000000003",
                        "screeningId": "00000000-0000-4000-8000-000000000004",
                        "previousScreeningId": null,
                        "kind": "initial_match",
                        "status": "unread",
                        "createdAt": "2026-09-17T12:00:00.000Z",
                        "acknowledgedAt": null,
                        "errorCode": null,
                        "totalChanges": 1,
                        "evidenceExpired": false,
                        "currentEvidenceAvailable": true,
                        "previousEvidenceAvailable": false,
                        "changes": [
                          {
                            "kind": "added",
                            "fields": [],
                            "recordId": "sandbox:person-001",
                            "sourceId": "sandbox-synthetic",
                            "after": {
                              "names": [
                                {
                                  "value": "Alex Morgan",
                                  "kind": "primary"
                                },
                                {
                                  "value": "Алекс Морган",
                                  "kind": "alias"
                                }
                              ],
                              "identifiers": [
                                {
                                  "type": "passport",
                                  "value": "DEMO-001",
                                  "issuer": "Fictional authority"
                                }
                              ],
                              "birthDates": [
                                {
                                  "value": "1984",
                                  "original": "1984",
                                  "precision": "year"
                                }
                              ],
                              "nationalities": [],
                              "designations": [
                                {
                                  "wording": "Invented example, not a government designation.",
                                  "category": "other",
                                  "programs": [
                                    "Synthetic demonstration only"
                                  ],
                                  "legalReferences": []
                                }
                              ]
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MonitorEvent"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Monitoring event not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/webhooks": {
      "get": {
        "operationId": "get__webhooks",
        "summary": "Read endpoints and recent delivery history",
        "tags": [
          "Webhooks"
        ],
        "description": "Required API key scope: webhooks:write.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_empty": {
                    "summary": "A synthetic workspace without webhook endpoints",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "endpoints": [],
                        "deliveries": []
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Webhooks"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "post__webhooks",
        "summary": "Register a public HTTPS endpoint and obtain its signing secret once",
        "tags": [
          "Webhooks"
        ],
        "description": "Required API key scope: webhooks:write.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "description": "JSON request body. Send Content-Type: application/json with UTF-8 encoding; fields marked required must be present. Omit optional fields unless needed. Null is accepted only where explicitly shown. Unknown properties are rejected for validated request objects. Duplicate keys and nesting beyond 32 levels are rejected. Maximum body size: 1,048,576 bytes (1 MiB).",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookRequest"
              },
              "example": {
                "url": "https://integrator.example.test/webhooks/sanctionskit"
              }
            }
          }
        },
        "responses": {
          "201": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "success": {
                    "summary": "Synthetic success example",
                    "description": "Synthetic contract example, validated against the response schema. Invented data; no live customer, provider request, payment, message or source activation.",
                    "value": {
                      "data": {
                        "id": "01234567-89ab-4cde-8f01-23456789abcd",
                        "environment": "sandbox",
                        "url": "https://example.test/webhooks/sanctions",
                        "secret": "DOCUMENTATION_EXAMPLE_NOT_A_VALID_SIGNING_SECRET"
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WebhookCreated"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.\n\n**invalid_webhook** — Use a public HTTPS endpoint without private or reserved destinations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_webhook": {
                    "summary": "invalid webhook",
                    "description": "Synthetic error example. Use a public HTTPS endpoint without private or reserved destinations.",
                    "value": {
                      "error": {
                        "code": "invalid_webhook",
                        "message": "Webhooks require a public HTTPS endpoint on port 443.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "408": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Reconnect and retry using the same idempotency key and identical input where supported.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Reconnect and retry using the same idempotency key and identical input where supported.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body was not received within 10 seconds.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**webhook_limit_reached** — Disable an unused endpoint before adding another.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "webhook_limit_reached": {
                    "summary": "webhook limit reached",
                    "description": "Synthetic error example. Disable an unused endpoint before adding another.",
                    "value": {
                      "error": {
                        "code": "webhook_limit_reached",
                        "message": "At most five webhook endpoints per environment are supported.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.\n\n**invalid_request** — Reduce the JSON request size to the documented limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Reduce the JSON request size to the documented limit.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "REQUEST_TOO_LARGE",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Use Content-Type: application/json and an uncompressed UTF-8 body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Use Content-Type: application/json and an uncompressed UTF-8 body.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Send application/json with UTF-8 encoding.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/webhooks/{id}": {
      "delete": {
        "operationId": "delete__webhooks_id_",
        "summary": "Disable a webhook endpoint",
        "tags": [
          "Webhooks"
        ],
        "description": "Required API key scope: webhooks:write.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "success": {
                    "summary": "Synthetic success example",
                    "description": "Synthetic contract example, validated against the response schema. Invented data; no live customer, provider request, payment, message or source activation.",
                    "value": {
                      "data": {
                        "id": "01234567-89ab-4cde-8f01-23456789abcd",
                        "environment": "sandbox",
                        "active": false
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WebhookDisabled"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Webhook endpoint not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/webhooks/{id}/retry": {
      "post": {
        "operationId": "post__webhooks_id_retry",
        "summary": "Retry a failed webhook delivery",
        "tags": [
          "Webhooks"
        ],
        "description": "Required API key scope: webhooks:write.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Failed delivery UUID from GET /webhooks deliveries, not an endpoint ID."
          }
        ],
        "responses": {
          "202": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Accepted for asynchronous processing. This does not establish completed work. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "success": {
                    "summary": "Synthetic success example",
                    "description": "Synthetic contract example, validated against the response schema. Invented data; no live customer, provider request, payment, message or source activation.",
                    "value": {
                      "data": {
                        "id": "01234567-89ab-4cde-8f01-23456789abce",
                        "environment": "sandbox",
                        "status": "pending"
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WebhookRetry"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Failed delivery not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**webhook_disabled** — Use an active endpoint; deliveries to disabled endpoints cannot be retried.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "webhook_disabled": {
                    "summary": "webhook disabled",
                    "description": "Synthetic error example. Use an active endpoint; deliveries to disabled endpoints cannot be retried.",
                    "value": {
                      "error": {
                        "code": "webhook_disabled",
                        "message": "This webhook endpoint is disabled. Failed deliveries cannot be retried.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/counterparties": {
      "get": {
        "operationId": "get__counterparties",
        "summary": "List persistent customer and vendor records",
        "tags": [
          "Counterparties"
        ],
        "description": "Required API key scope: results:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum number of items to return. A response may contain fewer items; use its next cursor to decide whether another page exists.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Pass nextCursor from the previous page; omit for the first page. Continue until the response cursor is null. Keep the same filters between pages.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Case-insensitive substring search across counterparty label, subject name, external reference and tags."
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "enum": [
                "active",
                "archived"
              ]
            },
            "description": "Filter active or archived identities; omission includes both."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_page": {
                    "summary": "A page of synthetic counterparties",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "items": [
                          {
                            "id": "00000000-0000-4000-8000-000000000001",
                            "environment": "sandbox",
                            "externalId": "DOCS-001",
                            "label": "Synthetic supplier",
                            "relationship": "vendor",
                            "subject": {
                              "name": "Alex Morgan",
                              "entityType": "person",
                              "identifiers": []
                            },
                            "tags": [
                              "documentation"
                            ],
                            "status": "active",
                            "revision": 1,
                            "createdAt": "2026-09-17T12:00:00.000Z",
                            "updatedAt": "2026-09-17T12:00:00.000Z"
                          },
                          {
                            "id": "00000000-0000-4000-8000-000000000002",
                            "environment": "sandbox",
                            "externalId": "DOCS-INTAKE-001",
                            "label": "Synthetic Intake Customer",
                            "relationship": "customer",
                            "subject": {
                              "name": "Synthetic Intake Customer",
                              "entityType": "person",
                              "identifiers": []
                            },
                            "tags": [],
                            "status": "active",
                            "revision": 1,
                            "createdAt": "2026-09-17T12:00:00.000Z",
                            "updatedAt": "2026-09-17T12:00:00.000Z"
                          }
                        ],
                        "nextCursor": null
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CounterpartyPage"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/counterparties/{id}": {
      "get": {
        "operationId": "get__counterparties_id_",
        "summary": "Read a counterparty and linked screening, case and monitor history",
        "tags": [
          "Counterparties"
        ],
        "description": "Required API key scope: results:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_detail": {
                    "summary": "A synthetic counterparty with retained history",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "counterparty": {
                          "id": "00000000-0000-4000-8000-000000000001",
                          "environment": "sandbox",
                          "externalId": "DOCS-001",
                          "label": "Synthetic supplier",
                          "relationship": "vendor",
                          "subject": {
                            "name": "Alex Morgan",
                            "entityType": "person",
                            "identifiers": []
                          },
                          "tags": [
                            "documentation"
                          ],
                          "status": "active",
                          "revision": 1,
                          "createdAt": "2026-09-17T12:00:00.000Z",
                          "updatedAt": "2026-09-17T12:00:00.000Z"
                        },
                        "screenings": [],
                        "monitors": [],
                        "cases": []
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CounterpartyDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Counterparty not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/counterparties/{id}/history": {
      "get": {
        "operationId": "get__counterparties_id_history",
        "summary": "Page through linked history including truthful expired evidence metadata",
        "tags": [
          "Counterparties"
        ],
        "description": "Required API key scope: results:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          },
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum number of items to return. A response may contain fewer items; use its next cursor to decide whether another page exists.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Pass nextCursor from the previous page; omit for the first page. Continue until the response cursor is null. Keep the same filters between pages.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "kind",
            "schema": {
              "enum": [
                "screenings",
                "cases",
                "monitors"
              ],
              "default": "screenings"
            },
            "description": "Select which linked resource history to return. The value determines the item response shape."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_screenings": {
                    "summary": "Paged retained screening history",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "items": [
                          {
                            "id": "00000000-0000-4000-8000-000000000001",
                            "created_at": "2026-09-17T12:00:00.000Z",
                            "expires_at": "2026-09-17T12:00:00.000Z",
                            "status": "potential_match",
                            "evidence_state": "available"
                          }
                        ],
                        "total": 1,
                        "nextCursor": null
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CounterpartyHistory"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Counterparty not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_cursor** — Use nextCursor from this counterparty and the same history kind.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_cursor": {
                    "summary": "invalid cursor",
                    "description": "Synthetic error example. Use nextCursor from this counterparty and the same history kind.",
                    "value": {
                      "error": {
                        "code": "invalid_cursor",
                        "message": "This history cursor does not belong to the selected counterparty.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/cases": {
      "get": {
        "operationId": "get__cases",
        "summary": "List analyst review cases",
        "tags": [
          "Review evidence"
        ],
        "description": "Required API key scope: results:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum number of items to return. A response may contain fewer items; use its next cursor to decide whether another page exists.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Pass nextCursor from the previous page; omit for the first page. Continue until the response cursor is null. Keep the same filters between pages.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "q",
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Search retained names or resource IDs."
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string",
              "enum": [
                "potential_match",
                "no_match"
              ]
            },
            "description": "Filter by screening outcome. On GET /results this is applied only with summary=true."
          },
          {
            "in": "query",
            "name": "review",
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "confirmed",
                "dismissed",
                "unreviewed"
              ]
            },
            "description": "Filter linked human decision state. unreviewed selects results without a case; it produces no items in case or audit lists. On GET /results requires summary=true."
          },
          {
            "in": "query",
            "name": "origin",
            "schema": {
              "type": "string",
              "enum": [
                "manual",
                "api",
                "batch",
                "monitor",
                "unknown"
              ]
            },
            "description": "Filter screening origin. On GET /results this is applied only with summary=true."
          },
          {
            "in": "query",
            "name": "evidence",
            "schema": {
              "type": "string",
              "enum": [
                "available",
                "expired",
                "all"
              ],
              "default": "all"
            },
            "description": "Filter using the latest case-linked screening evidence. Available requires a retained, nonempty result (including open-review protection); expired includes purged results. Defaults to all for historical compatibility. A screeningId lookup bypasses this filter."
          },
          {
            "in": "query",
            "name": "screeningId",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Find cases linked to this screening, including expired history; bypasses the evidence filter."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_page": {
                    "summary": "Synthetic review cases created by screening",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "items": [
                          {
                            "id": "00000000-0000-4000-8000-000000000001",
                            "environment": "sandbox",
                            "screening_id": "00000000-0000-4000-8000-000000000002",
                            "latest_screening_id": null,
                            "monitor_id": null,
                            "counterparty_id": "00000000-0000-4000-8000-000000000003",
                            "decision": "open",
                            "business_disposition": "pending",
                            "review_state": "open",
                            "review_started_at": "2026-09-17T12:00:00.000Z",
                            "revision": 1,
                            "assignee_id": null,
                            "priority": "normal",
                            "due_at": null,
                            "escalated_at": null,
                            "requires_second_review": false,
                            "submitted_by": null,
                            "approved_by": null,
                            "submitted_screening_id": null,
                            "superseded_by_screening_id": null,
                            "superseded_by_case_id": null,
                            "retention_policy": "calendar_years",
                            "retention_years": 10,
                            "retention_days": null,
                            "closed_at": null,
                            "retention_expires_at": null,
                            "retention_trigger": "business_event",
                            "retention_event_at": null,
                            "retention_event_actor": null,
                            "created_at": "2026-09-17T12:00:00.000Z",
                            "updated_at": "2026-09-17T12:00:00.000Z",
                            "retention_event_reason": null,
                            "subjectName": "Alex Morgan",
                            "entityType": "person",
                            "origin": "manual",
                            "status": "potential_match",
                            "matchCount": 1,
                            "evidenceAvailable": true,
                            "retention": "standard",
                            "expiresAt": null
                          }
                        ],
                        "nextCursor": null
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CasePage"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "post__cases",
        "summary": "Open a review case for an existing retained screening",
        "tags": [
          "Review evidence"
        ],
        "description": "Required API key scope: cases:write.\n\nCreates an open case for standard-retention evidence when a case was not already created automatically. Send decision=open; completed decisions require the human investigation workflow and return investigation_review_required. No Idempotency-Key contract applies to this endpoint. Before retrying an uncertain response, query GET /cases?screeningId=...; duplicate creation returns case_exists with error.details.caseId.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "description": "JSON request body. Send Content-Type: application/json with UTF-8 encoding; fields marked required must be present. Omit optional fields unless needed. Null is accepted only where explicitly shown. Unknown properties are rejected for validated request objects. Duplicate keys and nesting beyond 32 levels are rejected. Maximum body size: 1,048,576 bytes (1 MiB).",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CaseRequest"
              },
              "example": {
                "screeningId": "01234567-89ab-4cde-8f01-23456789abcd",
                "decision": "open",
                "notes": "Synthetic screening requires review."
              }
            }
          }
        },
        "responses": {
          "201": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "success": {
                    "summary": "Synthetic success example",
                    "description": "Synthetic contract example, validated against the response schema. Invented data; no live customer, provider request, payment, message or source activation.",
                    "value": {
                      "data": {
                        "id": "01234567-89ab-4cde-8f01-23456789abcd",
                        "screeningId": "01234567-89ab-4cde-8f01-23456789abcd",
                        "decision": "open",
                        "notes": "Synthetic case awaiting identity review."
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CaseCreated"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Screening not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "408": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Reconnect and retry using the same idempotency key and identical input where supported.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Reconnect and retry using the same idempotency key and identical input where supported.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body was not received within 10 seconds.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**investigation_review_required** — Use the investigation match-review, submit and approval endpoints before recording a conclusion.\n\n**case_exists** — Open the existing case and append your review there.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "investigation_review_required": {
                    "summary": "investigation review required",
                    "description": "Synthetic error example. Use the investigation match-review, submit and approval endpoints before recording a conclusion.",
                    "value": {
                      "error": {
                        "code": "investigation_review_required",
                        "message": "Use the investigation workspace to review and approve every current match.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "case_exists": {
                    "summary": "case exists",
                    "description": "Synthetic error example. Open the existing case and append your review there.",
                    "value": {
                      "error": {
                        "code": "case_exists",
                        "message": "A review case already exists for this screening. Open that case to append a decision.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "410": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**result_expired** — Run a new screening and review its retained evidence. Expired evidence is not reconstructed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "result_expired": {
                    "summary": "result expired",
                    "description": "Synthetic error example. Run a new screening and review its retained evidence. Expired evidence is not reconstructed.",
                    "value": {
                      "error": {
                        "code": "result_expired",
                        "message": "The evidence has expired. Run a new screening before reviewing it.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.\n\n**invalid_request** — Reduce the JSON request size to the documented limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Reduce the JSON request size to the documented limit.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "REQUEST_TOO_LARGE",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "415": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Use Content-Type: application/json and an uncompressed UTF-8 body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Use Content-Type: application/json and an uncompressed UTF-8 body.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Send application/json with UTF-8 encoding.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**retained_screening_required** — Create a standard-retention screening before opening a case.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "retained_screening_required": {
                    "summary": "retained screening required",
                    "description": "Synthetic error example. Create a standard-retention screening before opening a case.",
                    "value": {
                      "error": {
                        "code": "retained_screening_required",
                        "message": "Case review requires a standard-retention screening.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/cases/{id}": {
      "get": {
        "operationId": "get__cases_id_",
        "summary": "Read a case and append-only decisions",
        "tags": [
          "Review evidence"
        ],
        "description": "Required API key scope: results:read.\n\nDecision history is ordered chronologically and bounded to limit (default 25, maximum 100). Continue using nextDecisionCursor as cursor. The complete retained case archive is available separately.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          },
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum number of items to return. A response may contain fewer items; use its next cursor to decide whether another page exists.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Pass nextDecisionCursor from the previous page; omit for the first page. Continue until the response cursor is null. Keep the same filters between pages.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_detail": {
                    "summary": "A synthetic case with review history",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "id": "00000000-0000-4000-8000-000000000001",
                        "environment": "sandbox",
                        "screening_id": "00000000-0000-4000-8000-000000000002",
                        "latest_screening_id": null,
                        "decision": "open",
                        "review_state": "open",
                        "business_disposition": "pending",
                        "counterparty_id": "00000000-0000-4000-8000-000000000003",
                        "created_at": "2026-09-17T12:00:00.000Z",
                        "updated_at": "2026-09-17T12:00:00.000Z",
                        "monitor_id": null,
                        "review_started_at": "2026-09-17T12:00:00.000Z",
                        "revision": 1,
                        "assignee_id": null,
                        "priority": "normal",
                        "due_at": null,
                        "escalated_at": null,
                        "requires_second_review": false,
                        "submitted_by": null,
                        "approved_by": null,
                        "submitted_screening_id": null,
                        "superseded_by_screening_id": null,
                        "superseded_by_case_id": null,
                        "retention_policy": "calendar_years",
                        "retention_years": 10,
                        "retention_days": null,
                        "closed_at": null,
                        "retention_expires_at": null,
                        "retention_trigger": "business_event",
                        "retention_event_at": null,
                        "retention_event_actor": null,
                        "retention_event_reason": null,
                        "subjectName": "Alex Morgan",
                        "entityType": "person",
                        "origin": "manual",
                        "status": "potential_match",
                        "matchCount": 1,
                        "evidenceAvailable": true,
                        "retention": "standard",
                        "expiresAt": null,
                        "decisions": [
                          {
                            "id": "00000000-0000-4000-8000-000000000004",
                            "actor_id": "system:screening",
                            "decision": "open",
                            "business_disposition": "pending",
                            "created_at": "2026-09-17T12:00:00.000Z",
                            "appliedControls": {
                              "restrictedRoles": {
                                "approval": [],
                                "production": []
                              },
                              "screeningPolicy": {
                                "id": "00000000-0000-4000-8000-000000000005",
                                "review": {
                                  "approverRoles": [
                                    "owner",
                                    "admin",
                                    "analyst"
                                  ],
                                  "secondReviewFor": [],
                                  "requireSecondReview": false
                                },
                                "version": 1
                              },
                              "governanceRevision": 1,
                              "organizationApproval": {
                                "approverRoles": [
                                  "owner",
                                  "admin",
                                  "analyst"
                                ],
                                "secondReviewFor": [],
                                "requireSecondReview": false
                              }
                            },
                            "notes": "Potential matches require analyst review.",
                            "actor_email": null,
                            "screening_id": "00000000-0000-4000-8000-000000000002"
                          }
                        ],
                        "nextDecisionCursor": null
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CaseDetail"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Case not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/investigations/{id}": {
      "get": {
        "operationId": "get__investigations_id_",
        "summary": "Read match decisions, assignments, retained notes and attachment metadata",
        "tags": [
          "Review evidence"
        ],
        "description": "Required API key scope: results:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_open": {
                    "summary": "An open synthetic investigation",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "id": "00000000-0000-4000-8000-000000000001",
                        "screeningId": "00000000-0000-4000-8000-000000000002",
                        "counterpartyId": "00000000-0000-4000-8000-000000000003",
                        "decision": "open",
                        "revision": 1,
                        "assigneeId": null,
                        "priority": "normal",
                        "dueAt": null,
                        "escalatedAt": null,
                        "requiresSecondReview": false,
                        "reviewState": "open",
                        "businessDisposition": "pending",
                        "reviewStartedAt": "2026-09-17T12:00:00.000Z",
                        "supersededByScreeningId": null,
                        "supersededByCaseId": null,
                        "approvalRequiredByPolicy": false,
                        "approvalRequiredForActions": [],
                        "approverRoles": [
                          "owner",
                          "admin",
                          "analyst"
                        ],
                        "reviewConcern": null,
                        "policyContext": {
                          "id": "00000000-0000-4000-8000-000000000004",
                          "version": 1,
                          "name": "Synthetic onboarding policy",
                          "purpose": "Document vendor onboarding checks",
                          "exclusions": []
                        },
                        "decisionHistory": [
                          {
                            "id": "00000000-0000-4000-8000-000000000005",
                            "decision": "open",
                            "businessDisposition": "pending",
                            "rationale": "Potential matches require analyst review.",
                            "actorId": "system:screening",
                            "actorLabel": null,
                            "createdAt": "2026-09-17T12:00:00.000Z",
                            "appliedControls": {
                              "restrictedRoles": {
                                "approval": [],
                                "production": []
                              },
                              "screeningPolicy": {
                                "id": "00000000-0000-4000-8000-000000000004",
                                "review": {
                                  "approverRoles": [
                                    "owner",
                                    "admin",
                                    "analyst"
                                  ],
                                  "secondReviewFor": [],
                                  "requireSecondReview": false
                                },
                                "version": 1
                              },
                              "governanceRevision": 1,
                              "organizationApproval": {
                                "approverRoles": [
                                  "owner",
                                  "admin",
                                  "analyst"
                                ],
                                "secondReviewFor": [],
                                "requireSecondReview": false
                              }
                            },
                            "screeningId": "00000000-0000-4000-8000-000000000002"
                          }
                        ],
                        "decisionHistoryTruncated": false,
                        "checks": [
                          {
                            "label": "Ownership review",
                            "status": "outstanding",
                            "evidenceReference": "",
                            "rationale": "",
                            "actorId": null,
                            "updatedAt": null
                          }
                        ],
                        "checkHistory": [],
                        "reuseChallenges": [],
                        "submittedBy": null,
                        "approvedBy": null,
                        "matches": [
                          {
                            "id": "00000000-0000-4000-8000-000000000006",
                            "screeningId": "00000000-0000-4000-8000-000000000002",
                            "sourceId": "sandbox-synthetic",
                            "recordId": "sandbox:person-001",
                            "identityDecision": "unresolved",
                            "businessDecision": "pending",
                            "rationale": "",
                            "reusableUntil": null,
                            "reusedRuleId": null,
                            "actorId": "system:screening",
                            "updatedAt": "2026-09-17T12:00:00.000Z"
                          }
                        ],
                        "subject": {
                          "name": "Alex Morgan",
                          "entityType": "person",
                          "identifiers": []
                        },
                        "counterpartySubject": {
                          "name": "Alex Morgan",
                          "entityType": "person",
                          "identifiers": []
                        },
                        "counterpartyRevision": 2,
                        "evidence": [],
                        "corrections": [],
                        "originCorrection": null,
                        "reviewHistory": [],
                        "comments": [],
                        "attachments": [],
                        "assignees": [
                          {
                            "id": "docs-synthetic-reviewer",
                            "email": "reviewer@example.test",
                            "role": "owner"
                          }
                        ]
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Investigation"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Investigation not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.\n\n**investigation_too_large** — Use the complete segmented case archive for retained evidence.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "investigation_too_large": {
                    "summary": "investigation too large",
                    "description": "Synthetic error example. Use the complete segmented case archive for retained evidence.",
                    "value": {
                      "error": {
                        "code": "investigation_too_large",
                        "message": "This investigation exceeds the bounded response size.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/investigations/{id}/attachments/{attachmentId}": {
      "get": {
        "operationId": "get__investigations_id_attachments_attachmentId_",
        "summary": "Download a retained text attachment",
        "tags": [
          "Review evidence"
        ],
        "description": "Required API key scope: results:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          },
          {
            "in": "path",
            "name": "attachmentId",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. The response is the documented raw JSON or file content, without a data envelope. Check Content-Type before decoding.",
            "content": {
              "text/plain": {
                "examples": {
                  "success": {
                    "summary": "Synthetic success example",
                    "description": "Synthetic contract example, validated against the response schema. Invented data; no live customer, provider request, payment, message or source activation.",
                    "value": "Synthetic investigation note. Confirm the supplied identity facts before recording a decision.\n"
                  }
                },
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Investigation not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.\n\n**investigation_too_large** — Use the complete segmented case archive for retained evidence.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "investigation_too_large": {
                    "summary": "investigation too large",
                    "description": "Synthetic error example. Use the complete segmented case archive for retained evidence.",
                    "value": {
                      "error": {
                        "code": "investigation_too_large",
                        "message": "This investigation exceeds the bounded response size.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/reports": {
      "get": {
        "operationId": "get__reports",
        "summary": "Read current backlog and period screening and reviewer activity",
        "tags": [
          "Reports"
        ],
        "description": "Required API key scope: results:read.\n\nOpen, overdue, unassigned and pending-approval cases are the current backlog across all dates; screenings, completed case cohorts and human review activity use the selected period. Superseded cases are excluded from active work. Renewed reviews measure time from their latest review cycle.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "from",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "Inclusive calendar date in timeZone (UTC when omitted). Defaults to 29 calendar days before today. from must not be later than to; at most 366 calendar days per report."
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "Inclusive calendar date in timeZone (UTC when omitted). Defaults to today. from must not be later than to; at most 366 calendar days per report."
          },
          {
            "in": "query",
            "name": "timeZone",
            "schema": {
              "type": "string",
              "default": "UTC",
              "maxLength": 100
            },
            "description": "Named IANA timezone, such as America/Denver. Uses local calendar-day boundaries including daylight-saving changes. Omission preserves UTC; raw offsets are rejected."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_operations": {
                    "summary": "Operational totals from the synthetic documentation workspace",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "from": "2026-09-17",
                        "to": "2026-09-17",
                        "timeZone": "UTC",
                        "generatedAt": "2026-09-17T12:00:00.000Z",
                        "screenings": {
                          "total": 3,
                          "potentialMatches": 2,
                          "noMatches": 1,
                          "expired": 0
                        },
                        "cases": {
                          "open": 1,
                          "confirmed": 0,
                          "dismissed": 1,
                          "overdue": 0,
                          "pendingApproval": 0,
                          "unassigned": 1
                        },
                        "monitoring": {
                          "active": 0,
                          "paused": 1,
                          "overdue": 0,
                          "failed": 0,
                          "unread": 0
                        },
                        "reviews": {
                          "total": 1,
                          "reused": 0,
                          "medianHours": 0
                        },
                        "reviewers": [
                          {
                            "actorId": "docs-synthetic-reviewer",
                            "actorEmail": "reviewer@example.test",
                            "decisions": 1
                          }
                        ],
                        "sourceCoverage": [
                          {
                            "sourceId": "sandbox-synthetic",
                            "screenings": 3
                          }
                        ],
                        "expiringEvidence": [],
                        "limitations": [
                          "Screening activity and historical confirmed/dismissed case cohorts use the selected creation dates in UTC. Outstanding review work and monitoring health show the entire current portfolio, regardless of the date range.",
                          "Expired screening outcomes and source coverage are excluded from outcome and source totals. Missing retained data is not a no-match result.",
                          "Open, overdue, pending-approval and unassigned case counts include only cases with current retained screening evidence. Recorded confirmed and dismissed decisions remain in historical totals.",
                          "Review duration measures completed human decisions from the start of their review cycle, not analyst working time. Reviewer activity excludes automated case creation and reused decisions. Reviewer and expiry lists show at most 100 entries."
                        ]
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/OperationsReport"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.\n\n**invalid_date_range** — Use valid inclusive from/to calendar dates in the selected timezone, with from no later than to.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_date_range": {
                    "summary": "invalid date range",
                    "description": "Synthetic error example. Use valid inclusive from/to calendar dates in the selected timezone, with from no later than to.",
                    "value": {
                      "error": {
                        "code": "invalid_date_range",
                        "message": "Choose an inclusive date range of at most 366 days.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/reports/screenings": {
      "get": {
        "operationId": "get__reports_screenings",
        "summary": "Download a bounded screening CSV with explicit expired outcomes",
        "tags": [
          "Reports"
        ],
        "description": "Required API key scope: results:read.\n\nEvent and expiry values retain ISO UTC precision. Each data row carries the captured report dates and timezone. The download filename and X-Report-Time-Zone, X-Report-From and X-Report-To headers retain this context even for an empty export.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "from",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "Inclusive calendar date in timeZone (UTC when omitted). Defaults to 29 calendar days before today. from must not be later than to; at most 366 calendar days per report."
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "Inclusive calendar date in timeZone (UTC when omitted). Defaults to today. from must not be later than to; at most 366 calendar days per report."
          },
          {
            "in": "query",
            "name": "timeZone",
            "schema": {
              "type": "string",
              "default": "UTC",
              "maxLength": 100
            },
            "description": "Named IANA timezone, such as America/Denver. Uses local calendar-day boundaries including daylight-saving changes. Omission preserves UTC; raw offsets are rejected."
          },
          {
            "in": "query",
            "name": "format",
            "schema": {
              "type": "string",
              "enum": [
                "csv"
              ],
              "default": "csv"
            },
            "description": "Download format. Read the corresponding response Content-Type before decoding."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Report-Time-Zone": {
                "schema": {
                  "type": "string"
                },
                "description": "Captured calendar timezone for the exported date range."
              },
              "X-Report-From": {
                "schema": {
                  "type": "string",
                  "format": "date"
                },
                "description": "Inclusive first calendar date."
              },
              "X-Report-To": {
                "schema": {
                  "type": "string",
                  "format": "date"
                },
                "description": "Inclusive last calendar date."
              },
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. The response is the documented raw JSON or file content, without a data envelope. Check Content-Type before decoding.",
            "content": {
              "text/csv": {
                "examples": {
                  "success": {
                    "summary": "Synthetic success example",
                    "description": "Synthetic contract example, validated against the response schema. Invented data; no live customer, provider request, payment, message or source activation.",
                    "value": "\"Screening ID\",\"Created at (UTC)\",\"Subject (when retained)\",\"Outcome\",\"Review decision\",\"Sources checked\",\"Evidence expires (UTC)\"\r\n\"01234567-89ab-4cde-8f01-23456789abcd\",\"2026-09-17T12:00:00.000Z\",\"Alex Morgan\",\"potential_match\",\"open\",\"sandbox-synthetic\",\"2026-10-17T12:00:00.000Z\""
                  }
                },
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.\n\n**invalid_date_range** — Use valid inclusive from/to calendar dates in the selected timezone, with from no later than to.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_date_range": {
                    "summary": "invalid date range",
                    "description": "Synthetic error example. Use valid inclusive from/to calendar dates in the selected timezone, with from no later than to.",
                    "value": {
                      "error": {
                        "code": "invalid_date_range",
                        "message": "Choose an inclusive date range of at most 366 days.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.\n\n**export_too_large** — Narrow the screening date range. For a large case, retrieve every segment from the case archive endpoint.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "export_too_large": {
                    "summary": "export too large",
                    "description": "Synthetic error example. Narrow the screening date range. For a large case, retrieve every segment from the case archive endpoint.",
                    "value": {
                      "error": {
                        "code": "export_too_large",
                        "message": "This export exceeds the bounded report size. Choose a shorter date range.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/reports/cases/{id}": {
      "get": {
        "operationId": "get__reports_cases_id_",
        "summary": "Download a bounded case audit packet in JSON or PDF",
        "tags": [
          "Reports"
        ],
        "description": "Required API key scope: results:read.\n\nIncludes retained findings, decisions, external-check history, document references and text attachments. Large cases require the segmented archive route. External repository bytes are not copied. This packet is not an immutable or signed archive.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          },
          {
            "in": "query",
            "name": "format",
            "schema": {
              "enum": [
                "json",
                "pdf"
              ],
              "default": "json"
            },
            "description": "Download format. Read the corresponding response Content-Type before decoding."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. The response is the documented raw JSON or file content, without a data envelope. Check Content-Type before decoding.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_audit_packet": {
                    "summary": "An audit packet containing synthetic retained evidence",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "documents": [
                        {
                          "id": "00000000-0000-4000-8000-000000000001",
                          "title": "Synthetic ownership evidence",
                          "url": "https://repository.example.test/records/DOCS-001",
                          "repository": "Synthetic approved repository",
                          "documentVersion": "1",
                          "sha256": null,
                          "provenance": "Obtained by the synthetic reviewer from the authorized repository.",
                          "verification": "unverified",
                          "verifiedAt": null,
                          "actorId": "docs-synthetic-reviewer",
                          "createdAt": "2026-09-17T12:00:00.000Z"
                        }
                      ],
                      "format": "sanctionskit-case-audit@1",
                      "generatedAt": "2026-09-17T12:00:00.000Z",
                      "environment": "sandbox",
                      "investigation": {
                        "id": "00000000-0000-4000-8000-000000000002",
                        "screeningId": "00000000-0000-4000-8000-000000000003",
                        "counterpartyId": "00000000-0000-4000-8000-000000000004",
                        "decision": "dismissed",
                        "revision": 10,
                        "assigneeId": null,
                        "priority": "high",
                        "dueAt": null,
                        "escalatedAt": null,
                        "requiresSecondReview": false,
                        "reviewState": "approved",
                        "businessDisposition": "allow",
                        "reviewStartedAt": "2026-09-17T12:00:00.000Z",
                        "supersededByScreeningId": null,
                        "supersededByCaseId": null,
                        "approvalRequiredByPolicy": false,
                        "approvalRequiredForActions": [],
                        "approverRoles": [
                          "owner",
                          "admin",
                          "analyst"
                        ],
                        "reviewConcern": null,
                        "policyContext": {
                          "id": "00000000-0000-4000-8000-000000000005",
                          "version": 1,
                          "name": "Synthetic onboarding policy",
                          "purpose": "Document vendor onboarding checks",
                          "exclusions": []
                        },
                        "decisionHistory": [
                          {
                            "id": "00000000-0000-4000-8000-000000000006",
                            "decision": "dismissed",
                            "businessDisposition": "allow",
                            "rationale": "Synthetic documentation review completed.",
                            "actorId": "docs-synthetic-reviewer",
                            "actorLabel": "reviewer@example.test",
                            "createdAt": "2026-09-17T12:00:00.000Z",
                            "appliedControls": {
                              "restrictedRoles": {
                                "approval": [],
                                "production": []
                              },
                              "screeningPolicy": {
                                "id": "00000000-0000-4000-8000-000000000005",
                                "review": {
                                  "approverRoles": [
                                    "owner",
                                    "admin",
                                    "analyst"
                                  ],
                                  "secondReviewFor": [],
                                  "requireSecondReview": false
                                },
                                "version": 1
                              },
                              "governanceRevision": 2,
                              "organizationApproval": {
                                "approverRoles": [
                                  "owner",
                                  "admin",
                                  "analyst"
                                ],
                                "secondReviewFor": [],
                                "requireSecondReview": false
                              }
                            },
                            "screeningId": "00000000-0000-4000-8000-000000000003"
                          },
                          {
                            "id": "00000000-0000-4000-8000-000000000007",
                            "decision": "open",
                            "businessDisposition": "pending",
                            "rationale": "Potential matches require analyst review.",
                            "actorId": "system:screening",
                            "actorLabel": null,
                            "createdAt": "2026-09-17T12:00:00.000Z",
                            "appliedControls": {
                              "restrictedRoles": {
                                "approval": [],
                                "production": []
                              },
                              "screeningPolicy": {
                                "id": "00000000-0000-4000-8000-000000000005",
                                "review": {
                                  "approverRoles": [
                                    "owner",
                                    "admin",
                                    "analyst"
                                  ],
                                  "secondReviewFor": [],
                                  "requireSecondReview": false
                                },
                                "version": 1
                              },
                              "governanceRevision": 1,
                              "organizationApproval": {
                                "approverRoles": [
                                  "owner",
                                  "admin",
                                  "analyst"
                                ],
                                "secondReviewFor": [],
                                "requireSecondReview": false
                              }
                            },
                            "screeningId": "00000000-0000-4000-8000-000000000003"
                          }
                        ],
                        "decisionHistoryTruncated": false,
                        "checks": [
                          {
                            "label": "Ownership review",
                            "status": "completed_externally",
                            "evidenceReference": "Synthetic repository record DOCS-001",
                            "rationale": "Synthetic example of an independently completed ownership review.",
                            "actorId": "docs-synthetic-reviewer",
                            "updatedAt": "2026-09-17T12:00:00.000Z"
                          }
                        ],
                        "checkHistory": [
                          {
                            "id": "00000000-0000-4000-8000-000000000008",
                            "screeningId": "00000000-0000-4000-8000-000000000003",
                            "label": "Ownership review",
                            "status": "completed_externally",
                            "evidenceReference": "Synthetic repository record DOCS-001",
                            "rationale": "Synthetic example of an independently completed ownership review.",
                            "actorId": "docs-synthetic-reviewer",
                            "updatedAt": "2026-09-17T12:00:00.000Z",
                            "expiresAt": "2026-09-17T12:00:00.000Z"
                          }
                        ],
                        "reuseChallenges": [],
                        "submittedBy": "docs-synthetic-reviewer",
                        "approvedBy": "docs-synthetic-reviewer",
                        "matches": [
                          {
                            "id": "00000000-0000-4000-8000-000000000009",
                            "screeningId": "00000000-0000-4000-8000-000000000003",
                            "sourceId": "sandbox-synthetic",
                            "recordId": "sandbox:person-001",
                            "identityDecision": "different",
                            "businessDecision": "allow",
                            "rationale": "Synthetic example: retained identifying evidence belongs to a different individual.",
                            "reusableUntil": null,
                            "reusedRuleId": null,
                            "actorId": "docs-synthetic-reviewer",
                            "updatedAt": "2026-09-17T12:00:00.000Z"
                          }
                        ],
                        "subject": {
                          "name": "Alex Morgan",
                          "entityType": "person",
                          "identifiers": []
                        },
                        "evidence": [],
                        "corrections": [],
                        "originCorrection": null,
                        "reviewHistory": [],
                        "comments": [
                          {
                            "id": "00000000-0000-4000-8000-000000000010",
                            "body": "Synthetic example: identifiers require reviewer comparison.",
                            "actorId": "docs-synthetic-reviewer",
                            "createdAt": "2026-09-17T12:00:00.000Z"
                          }
                        ],
                        "attachments": []
                      },
                      "evidence": [
                        {
                          "id": "00000000-0000-4000-8000-000000000003",
                          "createdAt": "2026-09-17T12:00:00.000Z",
                          "expiresAt": "2026-09-17T12:00:00.000Z",
                          "expired": false,
                          "subject": {
                            "name": "Alex Morgan",
                            "entityType": "person",
                            "identifiers": []
                          },
                          "result": {
                            "id": "00000000-0000-4000-8000-000000000003",
                            "status": "potential_match",
                            "matches": [
                              {
                                "score": 96,
                                "record": {
                                  "id": "sandbox:person-001",
                                  "list": "Synthetic demonstration records",
                                  "names": [
                                    {
                                      "kind": "primary",
                                      "value": "Alex Morgan"
                                    },
                                    {
                                      "kind": "alias",
                                      "value": "Алекс Морган"
                                    }
                                  ],
                                  "sourceId": "sandbox-synthetic",
                                  "addresses": [],
                                  "authority": "SanctionsKit synthetic examples",
                                  "sourceUrl": "https://sanctionskit.com/demo",
                                  "birthDates": [
                                    {
                                      "value": "1984",
                                      "original": "1984",
                                      "precision": "year"
                                    }
                                  ],
                                  "entityType": "person",
                                  "extensions": {
                                    "synthetic": true
                                  },
                                  "identifiers": [
                                    {
                                      "type": "passport",
                                      "value": "DEMO-001",
                                      "issuer": "Fictional authority"
                                    }
                                  ],
                                  "designations": [
                                    {
                                      "wording": "Invented example, not a government designation.",
                                      "category": "other",
                                      "programs": [
                                        "Synthetic demonstration only"
                                      ],
                                      "legalReferences": []
                                    }
                                  ],
                                  "nationalities": []
                                },
                                "evidence": [
                                  {
                                    "field": "name",
                                    "method": "normalized_name_exact",
                                    "queryValue": "Alex Morgan",
                                    "explanation": "Name similarity is a review signal, not a probability or finding of wrongdoing.",
                                    "sourceValue": "Alex Morgan",
                                    "contribution": 96
                                  }
                                ],
                                "conflicts": [],
                                "assessment": {
                                  "name": {
                                    "method": "normalized_name_exact",
                                    "aliasKind": "primary",
                                    "similarity": 96,
                                    "aliasQuality": "unknown"
                                  },
                                  "country": {
                                    "status": "not_supplied"
                                  },
                                  "birthDate": {
                                    "status": "not_supplied"
                                  },
                                  "alertBasis": "name",
                                  "entityType": {
                                    "status": "agreement"
                                  },
                                  "reviewTier": "name_only",
                                  "identifiers": {
                                    "status": "not_supplied",
                                    "matched": 0,
                                    "conflicts": 0,
                                    "issuerUnknown": 0,
                                    "issuerAgreements": 0
                                  },
                                  "hasConflicts": false,
                                  "sameNameCandidates": 1
                                }
                              }
                            ],
                            "coverage": [
                              {
                                "fresh": true,
                                "version": "1",
                                "sourceId": "sandbox-synthetic",
                                "retrievedAt": "2026-09-17T12:00:00.000Z"
                              }
                            ],
                            "matching": {
                              "profile": "standard",
                              "version": "review-1.3.0",
                              "partialNames": "exclude",
                              "nameThreshold": 78,
                              "retrievalVersion": "indexed-1.2.0",
                              "corroboratedNameThreshold": 75
                            },
                            "versions": {
                              "policy": "review-1.3.0",
                              "dataset": "sandbox-synthetic-v1",
                              "package": "sandbox@1",
                              "matchingEngine": "deterministic-1.3.0"
                            },
                            "warnings": [],
                            "createdAt": "2026-09-17T12:00:00.000Z",
                            "disclaimer": "Potential matches support analyst review. No match means no match in the selected sources and dataset, not legal clearance. Scores and evidence categories support review; they are not probabilities of identity or wrongdoing.",
                            "environment": "sandbox",
                            "policySnapshot": {
                              "id": "00000000-0000-4000-8000-000000000005",
                              "name": "Synthetic onboarding policy",
                              "review": {
                                "approverRoles": [
                                  "owner",
                                  "admin",
                                  "analyst"
                                ],
                                "secondReviewFor": [],
                                "requireSecondReview": false
                              },
                              "purpose": "Document vendor onboarding checks",
                              "version": 1,
                              "createdAt": "2026-09-17T12:00:00.000Z",
                              "exclusions": [],
                              "environment": "sandbox",
                              "jurisdictions": [
                                "Example jurisdiction"
                              ],
                              "externalChecks": [
                                "Ownership review"
                              ],
                              "optionalSources": {},
                              "requiredSources": {},
                              "retentionTrigger": "business_event",
                              "monitoringIntervalHours": 24
                            }
                          }
                        }
                      ],
                      "decisions": [
                        {
                          "id": "00000000-0000-4000-8000-000000000007",
                          "actorId": "system:screening",
                          "decision": "open",
                          "businessDisposition": "pending",
                          "appliedControls": {
                            "restrictedRoles": {
                              "approval": [],
                              "production": []
                            },
                            "screeningPolicy": {
                              "id": "00000000-0000-4000-8000-000000000005",
                              "review": {
                                "approverRoles": [
                                  "owner",
                                  "admin",
                                  "analyst"
                                ],
                                "secondReviewFor": [],
                                "requireSecondReview": false
                              },
                              "version": 1
                            },
                            "governanceRevision": 1,
                            "organizationApproval": {
                              "approverRoles": [
                                "owner",
                                "admin",
                                "analyst"
                              ],
                              "secondReviewFor": [],
                              "requireSecondReview": false
                            }
                          },
                          "notes": "Potential matches require analyst review.",
                          "createdAt": "2026-09-17T12:00:00.000Z",
                          "screeningId": "00000000-0000-4000-8000-000000000003",
                          "evidenceExpired": false
                        },
                        {
                          "id": "00000000-0000-4000-8000-000000000006",
                          "actorId": "docs-synthetic-reviewer",
                          "decision": "dismissed",
                          "businessDisposition": "allow",
                          "appliedControls": {
                            "restrictedRoles": {
                              "approval": [],
                              "production": []
                            },
                            "screeningPolicy": {
                              "id": "00000000-0000-4000-8000-000000000005",
                              "review": {
                                "approverRoles": [
                                  "owner",
                                  "admin",
                                  "analyst"
                                ],
                                "secondReviewFor": [],
                                "requireSecondReview": false
                              },
                              "version": 1
                            },
                            "governanceRevision": 2,
                            "organizationApproval": {
                              "approverRoles": [
                                "owner",
                                "admin",
                                "analyst"
                              ],
                              "secondReviewFor": [],
                              "requireSecondReview": false
                            }
                          },
                          "notes": "Synthetic documentation review completed.",
                          "createdAt": "2026-09-17T12:00:00.000Z",
                          "screeningId": "00000000-0000-4000-8000-000000000003",
                          "evidenceExpired": false
                        }
                      ],
                      "attachments": [],
                      "holds": [
                        {
                          "id": "00000000-0000-4000-8000-000000000011",
                          "reason": "Synthetic documented preservation need.",
                          "until": null,
                          "releasedBy": "docs-synthetic-reviewer",
                          "releaseReason": "Synthetic preservation need concluded.",
                          "releasedAt": "2026-09-17T12:00:00.000Z"
                        }
                      ],
                      "limitations": [
                        "This package records retained screening evidence and review decisions; it is not a legal clearance or a certification of compliance.",
                        "Expired or deliberately unretained inputs are omitted and cannot be reconstructed. Source and policy scope are limited to each included result.",
                        "Attachment hashes help compare files; this export is not an independently signed or tamper-proof attestation."
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AuditPacket"
                }
              },
              "application/pdf": {
                "examples": {
                  "success": {
                    "summary": "Synthetic success example",
                    "description": "Synthetic contract example, validated against the response schema. Invented data; no live customer, provider request, payment, message or source activation.",
                    "value": "%PDF-1.7\n[Binary PDF audit package; choose application/json to inspect the example evidence.]"
                  }
                },
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Case not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.\n\n**export_too_large** — Narrow the screening date range. For a large case, retrieve every segment from the case archive endpoint.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "export_too_large": {
                    "summary": "export too large",
                    "description": "Synthetic error example. Narrow the screening date range. For a large case, retrieve every segment from the case archive endpoint.",
                    "value": {
                      "error": {
                        "code": "export_too_large",
                        "message": "This export exceeds the bounded report size. Choose a shorter date range.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/reports/cases/{id}/archive": {
      "get": {
        "operationId": "get__reports_cases_id_archive",
        "summary": "Export every retained case archive segment",
        "tags": [
          "Reports"
        ],
        "description": "Required API key scope: results:read.\n\nSave numbered segments in order and follow nextCursor until complete=true. The cursor pins one case revision and cutoff; a changed case returns 409 and requires a restart. Expiry still applies. External document bytes are not included. Each response uses the ordinary data envelope.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            },
            "description": "Opaque nextCursor from the preceding segment. Omit for the first segment."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_first_segment": {
                    "summary": "First retained archive segment; continue until complete is true",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "format": "sanctionskit-case-archive@1",
                        "caseId": "00000000-0000-4000-8000-000000000001",
                        "revision": 10,
                        "asOf": "2026-09-17T12:00:00.000Z",
                        "segment": 1,
                        "category": "case",
                        "records": [
                          {
                            "id": "00000000-0000-4000-8000-000000000001",
                            "organization_id": "docs-synthetic-workspace",
                            "environment": "sandbox",
                            "screening_id": "00000000-0000-4000-8000-000000000002",
                            "monitor_id": null,
                            "decision": "dismissed",
                            "created_at": "2026-09-17T12:00:00.000Z",
                            "updated_at": "2026-09-17T12:00:00.000Z",
                            "latest_screening_id": null,
                            "counterparty_id": "00000000-0000-4000-8000-000000000003",
                            "assignee_id": null,
                            "priority": "high",
                            "due_at": null,
                            "escalated_at": null,
                            "revision": 10,
                            "requires_second_review": false,
                            "review_state": "approved",
                            "submitted_by": "docs-synthetic-reviewer",
                            "approved_by": "docs-synthetic-reviewer",
                            "submitted_screening_id": "00000000-0000-4000-8000-000000000002",
                            "retention_policy": "calendar_years",
                            "retention_years": 10,
                            "retention_days": null,
                            "closed_at": "2026-09-17T12:00:00.000Z",
                            "retention_expires_at": "2026-09-17T12:00:00.000Z",
                            "business_disposition": "allow",
                            "review_started_at": "2026-09-17T12:00:00.000Z",
                            "superseded_by_screening_id": null,
                            "superseded_by_case_id": null,
                            "retention_trigger": "business_event",
                            "retention_event_at": "2026-09-17T12:00:00.000Z",
                            "retention_event_reason": "Synthetic business event for the documentation example.",
                            "retention_event_actor": "docs-synthetic-reviewer"
                          }
                        ],
                        "nextCursor": "eyJjYXNlSWQiOiIwMDAwMDAwMC0wMDAwLTQwMDAtODAwMC0wMDAwMDAwMDAwMDEiLCJlbnZpcm9ubWVudCI6InNhbmRib3giLCJyZXZpc2lvbiI6MTAsImFzT2YiOiIyMDI2LTA5LTE3VDEyOjAwOjAwLjAwMFoiLCJjYXRlZ29yeSI6InNjcmVlbmluZ3MiLCJhZnRlciI6bnVsbCwic2VnbWVudCI6Mn0",
                        "complete": false,
                        "limitations": [
                          "Keep every numbered segment through complete=true. A single segment is not the full archive.",
                          "Includes all retained case-linked records created by the archive cutoff. Expired content is represented by metadata and is never restored. If the case changes, restart the export.",
                          "External repository documents are references with reviewer-supplied provenance and hashes; original bytes are not included. Repository access and preservation remain your responsibility.",
                          "This archive is not legal clearance, an independently signed attestation, or a reproduction of a publisher database."
                        ]
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CaseArchiveSegment"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.\n\n**invalid_cursor** — Use the preceding segment nextCursor for this case and environment, without editing it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_cursor": {
                    "summary": "invalid cursor",
                    "description": "Synthetic error example. Use the preceding segment nextCursor for this case and environment, without editing it.",
                    "value": {
                      "error": {
                        "code": "invalid_cursor",
                        "message": "The archive cursor is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Case not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**archive_changed** — Restart from the first segment and keep only one complete, consistent archive.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "archive_changed": {
                    "summary": "archive changed",
                    "description": "Synthetic error example. Restart from the first segment and keep only one complete, consistent archive.",
                    "value": {
                      "error": {
                        "code": "archive_changed",
                        "message": "The case changed during export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.\n\n**archive_record_too_large** — Contact support for an authorized export of this record.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "archive_record_too_large": {
                    "summary": "archive record too large",
                    "description": "Synthetic error example. Contact support for an authorized export of this record.",
                    "value": {
                      "error": {
                        "code": "archive_record_too_large",
                        "message": "A retained record exceeds the archive segment limit.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/reports/cases/{id}/governance": {
      "get": {
        "operationId": "get__reports_cases_id_governance",
        "summary": "Read retention triggers, holds and approved external document references",
        "tags": [
          "Reports"
        ],
        "description": "Required API key scope: results:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque resource identifier owned by the authenticated organization."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_controls": {
                    "summary": "Case retention, holds and external reference metadata",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "retention": {
                          "trigger": "business_event",
                          "eventAt": "2026-09-17T12:00:00.000Z",
                          "eventReason": "Synthetic business event for the documentation example.",
                          "eventActor": "docs-synthetic-reviewer",
                          "closedAt": "2026-09-17T12:00:00.000Z",
                          "expiresAt": "2026-09-17T12:00:00.000Z"
                        },
                        "holds": [
                          {
                            "id": "00000000-0000-4000-8000-000000000001",
                            "reason": "Synthetic documented preservation need.",
                            "actorId": "docs-synthetic-reviewer",
                            "createdAt": "2026-09-17T12:00:00.000Z",
                            "until": null,
                            "releasedAt": null,
                            "releasedBy": null,
                            "releaseReason": null
                          }
                        ],
                        "documents": [
                          {
                            "id": "00000000-0000-4000-8000-000000000002",
                            "screeningId": "00000000-0000-4000-8000-000000000003",
                            "title": "Synthetic ownership evidence",
                            "url": "https://repository.example.test/records/DOCS-001",
                            "repository": "Synthetic approved repository",
                            "documentVersion": "1",
                            "sha256": null,
                            "provenance": "Obtained by the synthetic reviewer from the authorized repository.",
                            "verification": "unverified",
                            "verifiedAt": null,
                            "actorId": "docs-synthetic-reviewer",
                            "createdAt": "2026-09-17T12:00:00.000Z"
                          }
                        ],
                        "documentsTruncated": false,
                        "documentHosts": [
                          "repository.example.test"
                        ],
                        "documentRepositories": [
                          {
                            "name": "repository.example.test",
                            "url": "https://repository.example.test/"
                          }
                        ]
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CaseGovernance"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**not_found** — Check the identifier and selected environment. The resource must belong to your organization and remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "summary": "not found",
                    "description": "Synthetic error example. Check the identifier and selected environment. The resource must belong to your organization and remain available.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "Case not found.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/usage": {
      "get": {
        "operationId": "get__usage",
        "summary": "Read period allowance, used subjects and pending reservations",
        "tags": [
          "Usage"
        ],
        "description": "Required API key scope: usage:read.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "recorded_inactive_subscription": {
                    "summary": "Storage remains visible after subscription access ends; new production allowance is zero",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "environment": "production",
                        "period": "2026-09",
                        "used": 0,
                        "reserved": 0,
                        "limit": 0,
                        "planLimit": 0,
                        "spendingCap": 0,
                        "effectiveLimit": 0,
                        "remaining": 0,
                        "plan": "inactive",
                        "events": [],
                        "fileStorage": {
                          "plan": "sandbox",
                          "maxBytes": 104857600,
                          "usedBytes": 0,
                          "reservedBytes": 0,
                          "remainingBytes": 104857600,
                          "sandbox": {
                            "maxBytes": 104857600,
                            "usedBytes": 0,
                            "reservedBytes": 0,
                            "remainingBytes": 104857600
                          },
                          "maxBatchUploadBytes": 26214400,
                          "maxEvidenceAttachmentBytes": 200000
                        },
                        "monitoringForecast": null,
                        "forecastUnavailable": "subscription_required"
                      }
                    }
                  },
                  "recorded_sandbox": {
                    "summary": "Synthetic sandbox usage is not billed",
                    "description": "Recorded from the real application handler against an isolated synthetic database. IDs, times and nonfunctional temporary secrets are normalized. No customer data or live provider request.",
                    "value": {
                      "data": {
                        "environment": "sandbox",
                        "period": "2026-09",
                        "used": 3,
                        "reserved": 0,
                        "limit": 100,
                        "planLimit": 100,
                        "spendingCap": 0,
                        "effectiveLimit": 100,
                        "remaining": 97,
                        "plan": "sandbox",
                        "events": [
                          {
                            "kind": "screening",
                            "subjects": 3
                          }
                        ],
                        "fileStorage": {
                          "plan": "sandbox",
                          "maxBytes": 104857600,
                          "usedBytes": 0,
                          "reservedBytes": 0,
                          "remainingBytes": 104857600,
                          "sandbox": {
                            "maxBytes": 104857600,
                            "usedBytes": 0,
                            "reservedBytes": 0,
                            "remainingBytes": 104857600
                          },
                          "maxBatchUploadBytes": 26214400,
                          "maxEvidenceAttachmentBytes": 200000
                        },
                        "monitoringForecast": {
                          "generatedAt": "2026-09-17T12:00:00.000Z",
                          "periodEnd": "2026-09-17T12:00:00.000Z",
                          "dailyScreenings": 0,
                          "projectedRemainingScreenings": 14,
                          "effectiveLimit": 100,
                          "used": 3,
                          "reserved": 0,
                          "remaining": 97,
                          "projectedExhaustionAt": null
                        },
                        "forecastUnavailable": null
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Usage"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "402": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**subscription_required** — Use the synthetic sandbox or arrange an active production subscription before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "subscription_required": {
                    "summary": "subscription required",
                    "description": "Synthetic error example. Use the synthetic sandbox or arrange an active production subscription before retrying.",
                    "value": {
                      "error": {
                        "code": "subscription_required",
                        "message": "An active subscription is required for production screening.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/audit": {
      "get": {
        "operationId": "get__audit",
        "summary": "List retained human review decisions",
        "tags": [
          "Review evidence"
        ],
        "description": "Required API key scope: results:read.\n\nRead append-only human decision history, newest first. Filter by q or review and follow nextCursor. Notes are replaced with [removed under retention policy] after expiry; evidenceAvailable describes the linked evidence and does not reverse an earlier human decision.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum number of items to return. A response may contain fewer items; use its next cursor to decide whether another page exists.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Pass nextCursor from the previous page; omit for the first page. Continue until the response cursor is null. Keep the same filters between pages.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "q",
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Search retained names or resource IDs."
          },
          {
            "in": "query",
            "name": "review",
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "confirmed",
                "dismissed",
                "unreviewed"
              ]
            },
            "description": "Filter linked human decision state. unreviewed selects results without a case; it produces no items in case or audit lists. On GET /results requires summary=true."
          }
        ],
        "responses": {
          "200": {
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated request correlation identifier.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "description": "Successful response. JSON object with the required data key. All properties marked required are present, including keys whose value may be null. Unmarked properties can be omitted; clients should tolerate additional response properties.",
            "content": {
              "application/json": {
                "examples": {
                  "success": {
                    "summary": "Synthetic success example",
                    "description": "Synthetic contract example, validated against the response schema. Invented data; no live customer, provider request, payment, message or source activation.",
                    "value": {
                      "data": {
                        "items": [
                          {
                            "id": "01234567-89ab-4cde-8f01-23456789abce",
                            "caseId": "01234567-89ab-4cde-8f01-23456789abcd",
                            "actorId": "user_example",
                            "actorEmail": "reviewer@example.test",
                            "businessDisposition": "pending",
                            "decision": "open",
                            "appliedControls": null,
                            "notes": "Synthetic case awaiting identity review.",
                            "createdAt": "2026-09-17T12:00:00.000Z",
                            "screeningId": "01234567-89ab-4cde-8f01-23456789abcd",
                            "subjectName": "Alex Morgan",
                            "evidenceAvailable": true
                          }
                        ],
                        "nextCursor": null
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/AuditPage"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**invalid_request** — Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_request": {
                    "summary": "invalid request",
                    "description": "Synthetic error example. Correct the request fields, resource identifiers, JSON body or query parameters before retrying.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request is invalid.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "Bearer authentication challenge."
              }
            },
            "description": "**authentication_required** — Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.\n\n**invalid_api_key** — Use an active key for the intended environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "authentication_required": {
                    "summary": "authentication required",
                    "description": "Synthetic error example. Send Authorization: Bearer with a valid API key. An omitted header can produce authentication_required; invalid supplied credentials produce invalid_api_key.",
                    "value": {
                      "error": {
                        "code": "authentication_required",
                        "message": "Sign in to continue.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "invalid_api_key": {
                    "summary": "invalid api key",
                    "description": "Synthetic error example. Use an active key for the intended environment.",
                    "value": {
                      "error": {
                        "code": "invalid_api_key",
                        "message": "The API key is invalid, expired, or revoked.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**permission_denied** — Ask an organization owner to grant the required role or API-key scope.\n\n**insufficient_scope** — Use a key with the scope stated in this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "permission_denied": {
                    "summary": "permission denied",
                    "description": "Synthetic error example. Ask an organization owner to grant the required role or API-key scope.",
                    "value": {
                      "error": {
                        "code": "permission_denied",
                        "message": "Your role does not allow this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  },
                  "insufficient_scope": {
                    "summary": "insufficient scope",
                    "description": "Synthetic error example. Use a key with the scope stated in this operation.",
                    "value": {
                      "error": {
                        "code": "insufficient_scope",
                        "message": "The API key does not grant this action.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "Comma-separated supported HTTP methods."
              }
            },
            "description": "**method_not_allowed** — Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "summary": "method not allowed",
                    "description": "Synthetic error example. Use a method in the Allow response header. OPTIONS lists supported methods; HEAD follows GET authorization and returns no body.",
                    "value": {
                      "error": {
                        "code": "method_not_allowed",
                        "message": "This method is not supported for this endpoint.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "413": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**response_too_large** — Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "response_too_large": {
                    "summary": "response too large",
                    "description": "Synthetic error example. Reduce the requested page size or use the documented segmented case archive. No evidence is silently truncated.",
                    "value": {
                      "error": {
                        "code": "response_too_large",
                        "message": "This response exceeds the size limit. Request a smaller page or a segmented export.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**rate_limited** — Wait for the request window to reset and retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "summary": "rate limited",
                    "description": "Synthetic error example. Wait for the request window to reset and retry with backoff.",
                    "value": {
                      "error": {
                        "code": "rate_limited",
                        "message": "The per-minute request limit has been reached.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              }
            },
            "description": "**internal_error** — Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "summary": "internal error",
                    "description": "Synthetic error example. Retry with backoff. For writes reuse the same idempotency key and identical input; include requestId when contacting support.",
                    "value": {
                      "error": {
                        "code": "internal_error",
                        "message": "The request could not be completed.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": "Server-generated correlation identifier, also returned in error.requestId."
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "When present, a delay in seconds or an HTTP-date before which the client should not retry. Service-unavailable responses default to a one-second delay unless another safe value is supplied. A usage allowance error may require quota recovery instead of retrying."
              }
            },
            "description": "**temporarily_unavailable** — Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "summary": "temporarily unavailable",
                    "description": "Synthetic error example. Honor Retry-After when present and retry with bounded backoff. Follow this endpoint’s retry contract; preserve the same key and input for idempotent writes. Contact support with requestId if the failure persists.",
                    "value": {
                      "error": {
                        "code": "temporarily_unavailable",
                        "message": "The service is temporarily unavailable. Retry shortly.",
                        "requestId": "01234567-89ab-4cde-8f01-23456789abcd"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AppliedMatchingPolicy": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "profile": {
            "type": "string",
            "enum": [
              "standard",
              "focused"
            ]
          },
          "nameThreshold": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "corroboratedNameThreshold": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "retrievalVersion": {
            "type": "string"
          },
          "partialNames": {
            "type": "string",
            "enum": [
              "review",
              "exclude"
            ]
          }
        },
        "required": [
          "version",
          "profile",
          "nameThreshold",
          "corroboratedNameThreshold",
          "retrievalVersion"
        ],
        "additionalProperties": false,
        "description": "Effective matching profile, partial-name policy and retrieval version retained at screening, including no-match results. Historical results can omit this snapshot. Partial names are excluded unless an approved policy explicitly enables review. Scores are not population-calibrated probabilities."
      },
      "MatchAssessment": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "similarity": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "method": {
                    "type": "string"
                  },
                  "aliasKind": {
                    "type": "string",
                    "enum": [
                      "primary",
                      "alias"
                    ]
                  },
                  "aliasQuality": {
                    "type": "string",
                    "enum": [
                      "strong",
                      "weak",
                      "unknown"
                    ]
                  }
                },
                "required": [
                  "similarity",
                  "method",
                  "aliasKind",
                  "aliasQuality"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "identifiers": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "agreement",
                  "conflict",
                  "not_supplied",
                  "unavailable",
                  "not_comparable"
                ]
              },
              "matched": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "issuerAgreements": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "issuerUnknown": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "conflicts": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "status",
              "matched",
              "issuerAgreements",
              "issuerUnknown",
              "conflicts"
            ],
            "additionalProperties": false
          },
          "birthDate": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "agreement",
                  "conflict",
                  "not_supplied",
                  "unavailable",
                  "not_comparable"
                ]
              },
              "precision": {
                "type": "string",
                "enum": [
                  "year",
                  "month",
                  "day"
                ]
              }
            },
            "required": [
              "status"
            ],
            "additionalProperties": false
          },
          "country": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "agreement",
                  "conflict",
                  "not_supplied",
                  "unavailable",
                  "not_comparable"
                ]
              }
            },
            "required": [
              "status"
            ],
            "additionalProperties": false
          },
          "entityType": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "agreement",
                  "conflict",
                  "not_supplied",
                  "unavailable",
                  "not_comparable"
                ]
              }
            },
            "required": [
              "status"
            ],
            "additionalProperties": false
          },
          "reviewTier": {
            "type": "string",
            "enum": [
              "identifier",
              "corroborated",
              "conflicting",
              "name_only"
            ]
          },
          "alertBasis": {
            "type": "string",
            "enum": [
              "identifier",
              "name",
              "name_and_birth_date",
              "partial_name"
            ]
          },
          "hasConflicts": {
            "type": "boolean"
          },
          "sameNameCandidates": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "name",
          "identifiers",
          "birthDate",
          "country",
          "entityType",
          "reviewTier",
          "alertBasis",
          "hasConflicts",
          "sameNameCandidates"
        ],
        "additionalProperties": false,
        "description": "Retained name similarity, identity comparison states and review evidence tier. Contains no copied subject values. Missing information, conflicts and partial dates remain distinct; an evidence tier is not a finding of identity or wrongdoing."
      },
      "Subject": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 300,
            "description": "Name to compare with publisher records. Leading and trailing whitespace is removed; provide the fullest reliable name available."
          },
          "entityType": {
            "default": "person",
            "type": "string",
            "enum": [
              "person",
              "organization",
              "vessel",
              "aircraft",
              "other"
            ],
            "description": "Type of subject. Defaults to person when omitted. Every selected source must support this type."
          },
          "identifiers": {
            "default": [],
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80,
                  "description": "Identifier scheme, such as passport, national_id, registration, lei, imo or mmsi. Matching normalizes supported scheme aliases."
                },
                "value": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "description": "Identifier value. Send the original value; scheme-specific normalization is applied during matching."
                },
                "issuer": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100,
                  "description": "Optional issuing authority or country. Omit when unknown; do not send null."
                }
              },
              "required": [
                "type",
                "value"
              ],
              "additionalProperties": false
            },
            "description": "Typed identifiers used for exact matching, such as passport, national_id, registration, lei, imo or mmsi. Defaults to an empty array. Use the publisher’s identifier scheme; custom scheme names are accepted."
          },
          "birthDate": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!0000)\\d{4}$"
              },
              {
                "type": "string",
                "pattern": "^(?!0000)\\d{4}-(0[1-9]|1[0-2])$"
              },
              {
                "type": "string",
                "allOf": [
                  {
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  {
                    "pattern": "^(?!0000)"
                  }
                ]
              }
            ],
            "description": "Known date or partial date: YYYY, YYYY-MM or YYYY-MM-DD. Preserve known precision; do not invent a month or day. Year 0000 and invalid dates are rejected."
          },
          "country": {
            "type": "string",
            "minLength": 2,
            "maxLength": 100,
            "description": "Known country name or code used as supporting identity evidence. It is not a source-selection or geographic coverage filter."
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "ScreeningRequest": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "subject": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 2,
                "maxLength": 300,
                "description": "Name to compare with publisher records. Leading and trailing whitespace is removed; provide the fullest reliable name available."
              },
              "entityType": {
                "default": "person",
                "type": "string",
                "enum": [
                  "person",
                  "organization",
                  "vessel",
                  "aircraft",
                  "other"
                ],
                "description": "Type of subject. Defaults to person when omitted. Every selected source must support this type."
              },
              "identifiers": {
                "default": [],
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80,
                      "description": "Identifier scheme, such as passport, national_id, registration, lei, imo or mmsi. Matching normalizes supported scheme aliases."
                    },
                    "value": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "description": "Identifier value. Send the original value; scheme-specific normalization is applied during matching."
                    },
                    "issuer": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100,
                      "description": "Optional issuing authority or country. Omit when unknown; do not send null."
                    }
                  },
                  "required": [
                    "type",
                    "value"
                  ],
                  "additionalProperties": false
                },
                "description": "Typed identifiers used for exact matching, such as passport, national_id, registration, lei, imo or mmsi. Defaults to an empty array. Use the publisher’s identifier scheme; custom scheme names are accepted."
              },
              "birthDate": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^(?!0000)\\d{4}$"
                  },
                  {
                    "type": "string",
                    "pattern": "^(?!0000)\\d{4}-(0[1-9]|1[0-2])$"
                  },
                  {
                    "type": "string",
                    "allOf": [
                      {
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                      },
                      {
                        "pattern": "^(?!0000)"
                      }
                    ]
                  }
                ],
                "description": "Known date or partial date: YYYY, YYYY-MM or YYYY-MM-DD. Preserve known precision; do not invent a month or day. Year 0000 and invalid dates are rejected."
              },
              "country": {
                "type": "string",
                "minLength": 2,
                "maxLength": 100,
                "description": "Known country name or code used as supporting identity evidence. It is not a source-selection or geographic coverage filter."
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false,
            "description": "Identity to screen. name is required; entityType defaults to person and identifiers defaults to an empty array."
          },
          "counterpartyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "description": "Optional existing active counterparty UUID in the same organization and environment. The submitted subject must match its current identity; this does not create a counterparty."
          },
          "policy": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Policy UUID from GET /policies."
              },
              "version": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "description": "Exact approved policy version from GET /policies. Reload the policy if that version is no longer available."
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false,
            "description": "Approved organization policy reference. Required when GET /policies returns requirePolicy=true. A supplied policy must be current and compatible with the subject and requested coverage.",
            "x-required-when": "GET /policies returns requirePolicy=true for the current API key environment."
          },
          "reference": {
            "type": "string",
            "maxLength": 160,
            "description": "Optional caller reference (up to 160 characters). It is retained with standard evidence and returned by GET /results/{id}; it is null in minimal-retention retrieval."
          },
          "sources": {
            "minItems": 1,
            "maxItems": 512,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            },
            "description": "Explicit source IDs from GET /sources. Provide sources or package, exactly one. Every selected source must be available, fresh and support the subject type; unavailable coverage fails closed."
          },
          "package": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "description": "One versioned coverage package, mutually exclusive with sources. Sandbox accepts only sandbox@1. Use only a package available to the selected environment; no implicit global coverage is applied."
          },
          "retention": {
            "default": "standard",
            "type": "string",
            "enum": [
              "standard",
              "minimal"
            ],
            "description": "standard retains inputs and evidence under organization/case policy. minimal is available only for individual API-key screenings, lasts 24 hours, omits submitted inputs, and cannot create a review case. Governance requirements can require standard. Defaults to standard."
          }
        },
        "required": [
          "subject"
        ],
        "additionalProperties": false,
        "oneOf": [
          {
            "required": [
              "sources"
            ],
            "not": {
              "required": [
                "package"
              ]
            }
          },
          {
            "required": [
              "package"
            ],
            "not": {
              "required": [
                "sources"
              ]
            }
          }
        ],
        "description": "Single subject input. Exactly one of sources or package is required. Only subject is unconditionally required; coverage and approved policy also have conditional requirements described below."
      },
      "BatchRequest": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Human-readable batch label. Leading and trailing whitespace is removed."
          },
          "subjects": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ScreeningRequest"
                },
                {
                  "type": "object",
                  "properties": {
                    "retention": {
                      "const": "standard"
                    }
                  }
                }
              ]
            },
            "description": "One to 100 complete ScreeningRequest objects. Each row chooses its own coverage and must use standard retention (or omit retention). Supply subjects or uploadId, exactly one."
          },
          "uploadId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "description": "UUID returned by POST /uploads/intent after its private NDJSON upload has completed and passed validation. The file must be ready, unexpired and unused. Mutually exclusive with subjects; uploaded files support up to 10,000 request rows."
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "oneOf": [
          {
            "required": [
              "subjects"
            ],
            "not": {
              "required": [
                "uploadId"
              ]
            }
          },
          {
            "required": [
              "uploadId"
            ],
            "not": {
              "required": [
                "subjects"
              ]
            }
          }
        ],
        "description": "Batch input. Exactly one of subjects or uploadId is required in addition to name. Every row uses standard retention."
      },
      "MonitorRequest": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Human-readable monitor label. Creation queues an initial check; the response is not a completed screening."
          },
          "counterpartyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "description": "Optional existing active counterparty UUID in the same organization and environment. The submitted subject must match its current identity; this does not create a counterparty."
          },
          "policy": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Policy UUID from GET /policies."
              },
              "version": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "description": "Exact approved policy version from GET /policies. Reload the policy if that version is no longer available."
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false,
            "description": "Approved organization policy reference. Required when GET /policies returns requirePolicy=true. A supplied policy must be current and compatible with the subject and requested coverage.",
            "x-required-when": "GET /policies returns requirePolicy=true for the current API key environment."
          },
          "subject": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 2,
                "maxLength": 300,
                "description": "Name to compare with publisher records. Leading and trailing whitespace is removed; provide the fullest reliable name available."
              },
              "entityType": {
                "default": "person",
                "type": "string",
                "enum": [
                  "person",
                  "organization",
                  "vessel",
                  "aircraft",
                  "other"
                ],
                "description": "Type of subject. Defaults to person when omitted. Every selected source must support this type."
              },
              "identifiers": {
                "default": [],
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80,
                      "description": "Identifier scheme, such as passport, national_id, registration, lei, imo or mmsi. Matching normalizes supported scheme aliases."
                    },
                    "value": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "description": "Identifier value. Send the original value; scheme-specific normalization is applied during matching."
                    },
                    "issuer": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100,
                      "description": "Optional issuing authority or country. Omit when unknown; do not send null."
                    }
                  },
                  "required": [
                    "type",
                    "value"
                  ],
                  "additionalProperties": false
                },
                "description": "Typed identifiers used for exact matching, such as passport, national_id, registration, lei, imo or mmsi. Defaults to an empty array. Use the publisher’s identifier scheme; custom scheme names are accepted."
              },
              "birthDate": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^(?!0000)\\d{4}$"
                  },
                  {
                    "type": "string",
                    "pattern": "^(?!0000)\\d{4}-(0[1-9]|1[0-2])$"
                  },
                  {
                    "type": "string",
                    "allOf": [
                      {
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                      },
                      {
                        "pattern": "^(?!0000)"
                      }
                    ]
                  }
                ],
                "description": "Known date or partial date: YYYY, YYYY-MM or YYYY-MM-DD. Preserve known precision; do not invent a month or day. Year 0000 and invalid dates are rejected."
              },
              "country": {
                "type": "string",
                "minLength": 2,
                "maxLength": 100,
                "description": "Known country name or code used as supporting identity evidence. It is not a source-selection or geographic coverage filter."
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false,
            "description": "Identity to screen. name is required; entityType defaults to person and identifiers defaults to an empty array."
          },
          "sources": {
            "minItems": 1,
            "maxItems": 512,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            },
            "description": "Explicit source IDs from GET /sources. Provide sources or package, exactly one. Every selected source must be available, fresh and support the subject type; unavailable coverage fails closed."
          },
          "package": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "description": "One versioned coverage package, mutually exclusive with sources. Sandbox accepts only sandbox@1. Use only a package available to the selected environment; no implicit global coverage is applied."
          }
        },
        "required": [
          "name",
          "subject"
        ],
        "additionalProperties": false,
        "oneOf": [
          {
            "required": [
              "sources"
            ],
            "not": {
              "required": [
                "package"
              ]
            }
          },
          {
            "required": [
              "package"
            ],
            "not": {
              "required": [
                "sources"
              ]
            }
          }
        ],
        "description": "Retained monitor input. Exactly one of sources or package is required. Monitoring always retains inputs; there is no retention property."
      },
      "CaseRequest": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "decision": {
            "type": "string",
            "enum": [
              "open"
            ],
            "description": "Must be open when creating a case. Completed decisions require the human investigation workflow and return investigation_review_required here.",
            "const": "open"
          },
          "notes": {
            "type": "string",
            "minLength": 1,
            "maxLength": 5000,
            "description": "Nonempty opening rationale, trimmed before validation. Retained under the case policy."
          },
          "screeningId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "description": "UUID of a retained standard screening in this organization and environment. An existing case returns case_exists; minimal or expired evidence cannot be used."
          },
          "expectedUpdatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "description": "Legacy optional timestamp accepted and echoed by creation. It is not a concurrency guard for a new case; omit it."
          }
        },
        "required": [
          "decision",
          "notes",
          "screeningId"
        ],
        "additionalProperties": false,
        "description": "Open a case for retained evidence. decision must be open; the API cannot complete the human investigation or independent approval workflow."
      },
      "MonitorUpdate": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Complete replacement monitor label. PATCH requires the full name, subject and coverage, not only changed fields."
          },
          "counterpartyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "description": "Optional existing active counterparty UUID in the same organization and environment. The submitted subject must match its current identity; this does not create a counterparty."
          },
          "policy": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "Policy UUID from GET /policies."
              },
              "version": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "description": "Exact approved policy version from GET /policies. Reload the policy if that version is no longer available."
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false,
            "description": "Approved organization policy reference. Required when GET /policies returns requirePolicy=true. A supplied policy must be current and compatible with the subject and requested coverage.",
            "x-required-when": "GET /policies returns requirePolicy=true for the current API key environment."
          },
          "subject": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 2,
                "maxLength": 300,
                "description": "Name to compare with publisher records. Leading and trailing whitespace is removed; provide the fullest reliable name available."
              },
              "entityType": {
                "default": "person",
                "type": "string",
                "enum": [
                  "person",
                  "organization",
                  "vessel",
                  "aircraft",
                  "other"
                ],
                "description": "Type of subject. Defaults to person when omitted. Every selected source must support this type."
              },
              "identifiers": {
                "default": [],
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80,
                      "description": "Identifier scheme, such as passport, national_id, registration, lei, imo or mmsi. Matching normalizes supported scheme aliases."
                    },
                    "value": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "description": "Identifier value. Send the original value; scheme-specific normalization is applied during matching."
                    },
                    "issuer": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100,
                      "description": "Optional issuing authority or country. Omit when unknown; do not send null."
                    }
                  },
                  "required": [
                    "type",
                    "value"
                  ],
                  "additionalProperties": false
                },
                "description": "Typed identifiers used for exact matching, such as passport, national_id, registration, lei, imo or mmsi. Defaults to an empty array. Use the publisher’s identifier scheme; custom scheme names are accepted."
              },
              "birthDate": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^(?!0000)\\d{4}$"
                  },
                  {
                    "type": "string",
                    "pattern": "^(?!0000)\\d{4}-(0[1-9]|1[0-2])$"
                  },
                  {
                    "type": "string",
                    "allOf": [
                      {
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                      },
                      {
                        "pattern": "^(?!0000)"
                      }
                    ]
                  }
                ],
                "description": "Known date or partial date: YYYY, YYYY-MM or YYYY-MM-DD. Preserve known precision; do not invent a month or day. Year 0000 and invalid dates are rejected."
              },
              "country": {
                "type": "string",
                "minLength": 2,
                "maxLength": 100,
                "description": "Known country name or code used as supporting identity evidence. It is not a source-selection or geographic coverage filter."
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false,
            "description": "Identity to screen. name is required; entityType defaults to person and identifiers defaults to an empty array."
          },
          "sources": {
            "minItems": 1,
            "maxItems": 512,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            },
            "description": "Explicit source IDs from GET /sources. Provide sources or package, exactly one. Every selected source must be available, fresh and support the subject type; unavailable coverage fails closed."
          },
          "package": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "description": "One versioned coverage package, mutually exclusive with sources. Sandbox accepts only sandbox@1. Use only a package available to the selected environment; no implicit global coverage is applied."
          },
          "expectedRevision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991,
            "description": "Current revision from GET /monitors/{id} or GET /monitoring. The update fails with monitor_changed if another edit occurred; reload before applying your change."
          }
        },
        "required": [
          "name",
          "subject",
          "expectedRevision"
        ],
        "additionalProperties": false,
        "oneOf": [
          {
            "required": [
              "sources"
            ],
            "not": {
              "required": [
                "package"
              ]
            }
          },
          {
            "required": [
              "package"
            ],
            "not": {
              "required": [
                "sources"
              ]
            }
          }
        ],
        "description": "Full replacement identity and coverage, guarded by expectedRevision. Exactly one of sources or package is required."
      },
      "MonitorControl": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expectedRevision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991,
            "description": "Current revision from GET /monitoring. A stale value returns stale_revision; reload before applying your change."
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "paused"
            ],
            "description": "Set paused to stop scheduled work or active to resume. Resume revalidates policy, coverage, counterparty and monitor allowance."
          },
          "intervalHours": {
            "anyOf": [
              {
                "type": "number",
                "const": 6
              },
              {
                "type": "number",
                "const": 24
              },
              {
                "type": "number",
                "const": 168
              }
            ],
            "description": "Supported schedule interval in hours: 6, 24 or 168. Policy-backed monitors must keep their approved policy cadence."
          },
          "runNow": {
            "type": "boolean",
            "const": true,
            "description": "When true, queue a fresh check for an active monitor. Omit if not requested; false is not accepted. The response confirms queued control work, not a completed screening."
          }
        },
        "required": [
          "expectedRevision"
        ],
        "additionalProperties": false,
        "anyOf": [
          {
            "required": [
              "status"
            ]
          },
          {
            "required": [
              "intervalHours"
            ]
          },
          {
            "required": [
              "runNow"
            ]
          }
        ],
        "description": "Revision-guarded controls. In addition to expectedRevision, supply at least one of status, intervalHours or runNow."
      },
      "WebhookRequest": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri",
            "description": "HTTPS endpoint that receives signed events. Public DNS resolution and destination restrictions apply; local/private addresses and redirects are rejected. At most five active endpoints per environment."
          }
        },
        "required": [
          "url"
        ],
        "additionalProperties": false
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "description": "Failure envelope for every documented non-2xx API response. No data property is returned. Switch on error.code; messages may change.",
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "requestId"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "Machine-readable failure code. See this operation’s status-specific examples for codes and recovery."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation. Do not parse this text to control application behavior."
              },
              "requestId": {
                "type": "string",
                "format": "uuid",
                "description": "Server correlation ID, also returned in X-Request-Id. Include this ID in support requests."
              },
              "details": {
                "description": "Optional JSON details for client and validation failures. Validation failures return an array of { path, message } issues; other 4xx codes may return a code-specific object. Server failures omit details. Never assume this key is present.",
                "anyOf": [
                  {
                    "type": "array",
                    "maxItems": 50,
                    "items": {
                      "type": "object",
                      "required": [
                        "path",
                        "message"
                      ],
                      "properties": {
                        "path": {
                          "type": "string",
                          "maxLength": 160,
                          "description": "Dot-separated invalid field path, including array indexes."
                        },
                        "message": {
                          "type": "string",
                          "maxLength": 300,
                          "description": "Validation problem for this field."
                        }
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": true
                  },
                  {
                    "type": [
                      "string",
                      "number",
                      "boolean",
                      "null"
                    ]
                  }
                ]
              },
              "detailsTruncated": {
                "type": "boolean",
                "description": "True when only the first 50 validation issues are returned. Validation paths and messages are bounded."
              }
            }
          }
        }
      },
      "SourceNotice": {
        "type": "object",
        "required": [
          "text",
          "sourceUrl",
          "termsUrl"
        ],
        "properties": {
          "text": {
            "type": "string",
            "description": "Required publisher attribution and reuse notices captured when screening runs."
          },
          "sourceUrl": {
            "type": "string",
            "format": "uri"
          },
          "termsUrl": {
            "type": "string",
            "format": "uri"
          },
          "licenseUrl": {
            "type": "string",
            "format": "uri",
            "description": "Only included for a reviewed explicit license instrument."
          },
          "databaseDownloadUrl": {
            "type": "string",
            "format": "uri-reference",
            "description": "Free complete derivative database for the exact immutable source version, where required. A relative path resolves against this API origin."
          }
        }
      },
      "Coverage": {
        "type": "object",
        "required": [
          "sourceId",
          "version",
          "retrievedAt",
          "fresh"
        ],
        "properties": {
          "sourceId": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time"
          },
          "publishedAt": {
            "oneOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ],
            "description": "Authority-supplied publication date (YYYY-MM-DD) or RFC 3339 timestamp, preserving the precision supplied by the publisher. A date-only value does not imply midnight or a timezone. Omitted when no genuine publication date or timestamp is supplied."
          },
          "fresh": {
            "type": "boolean"
          },
          "sourceNotice": {
            "$ref": "#/components/schemas/SourceNotice",
            "description": "Included in new production screening results, including no-match results. Absent from synthetic sandbox coverage and older retained evidence; historical evidence is not rewritten."
          }
        }
      },
      "SourceRecord": {
        "type": "object",
        "required": [
          "id",
          "sourceId",
          "authority",
          "list",
          "sourceUrl",
          "entityType",
          "names",
          "identifiers",
          "birthDates",
          "addresses",
          "nationalities",
          "designations",
          "extensions"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "sourceId": {
            "type": "string"
          },
          "authority": {
            "type": "string"
          },
          "list": {
            "type": "string"
          },
          "sourceUrl": {
            "type": "string"
          },
          "entityType": {
            "type": "string",
            "enum": [
              "person",
              "organization",
              "vessel",
              "aircraft",
              "other"
            ]
          },
          "names": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "value",
                "kind"
              ],
              "properties": {
                "value": {
                  "type": "string"
                },
                "kind": {
                  "enum": [
                    "primary",
                    "alias"
                  ]
                },
                "quality": {
                  "enum": [
                    "strong",
                    "weak",
                    "unknown"
                  ]
                },
                "script": {
                  "type": "string"
                },
                "provenance": {
                  "$ref": "#/components/schemas/SourceProvenance"
                }
              }
            }
          },
          "identifiers": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "type",
                "value"
              ],
              "properties": {
                "type": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                },
                "issuer": {
                  "type": "string"
                },
                "provenance": {
                  "$ref": "#/components/schemas/SourceProvenance"
                }
              }
            }
          },
          "birthDates": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "value",
                "precision",
                "original"
              ],
              "properties": {
                "value": {
                  "type": "string"
                },
                "precision": {
                  "enum": [
                    "day",
                    "month",
                    "year",
                    "range",
                    "unknown"
                  ]
                },
                "original": {
                  "type": "string"
                }
              }
            }
          },
          "addresses": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "text": {
                  "type": "string"
                },
                "country": {
                  "type": "string"
                },
                "provenance": {
                  "$ref": "#/components/schemas/SourceProvenance"
                }
              }
            }
          },
          "nationalities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "designations": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "category",
                "programs",
                "legalReferences"
              ],
              "properties": {
                "category": {
                  "enum": [
                    "financial_sanctions",
                    "export_control",
                    "debarment",
                    "other"
                  ]
                },
                "programs": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "legalReferences": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "wording": {
                  "type": "string"
                },
                "effectiveDate": {
                  "type": "string"
                }
              }
            }
          },
          "dataThrough": {
            "type": "string",
            "format": "date",
            "description": "Inclusive publisher data-availability deadline; not a legal end date."
          },
          "screeningPeriods": {
            "type": "array",
            "maxItems": 1000,
            "description": "Inclusive UTC date intervals for current screening. Omitted means no date filter; an empty array excludes the record from current screening.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "through": {
                  "type": "string",
                  "format": "date"
                }
              }
            }
          },
          "publicContext": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "type": "object",
              "required": [
                "label",
                "value"
              ],
              "additionalProperties": false,
              "properties": {
                "label": {
                  "type": "string",
                  "maxLength": 100
                },
                "value": {
                  "type": "string",
                  "maxLength": 2000
                }
              }
            }
          },
          "extensions": {
            "type": "object",
            "additionalProperties": true,
            "description": "Source-specific published extensions. Keys and value shapes vary by source; preserve unknown values without assuming a fixed schema."
          }
        }
      },
      "SourceList": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "id",
            "name",
            "authority",
            "availability",
            "capabilities",
            "rightsStatus",
            "category"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "authority": {
              "type": "string"
            },
            "availability": {
              "enum": [
                "available",
                "disabled"
              ]
            },
            "capabilities": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "category": {
              "enum": [
                "financial_sanctions",
                "export_control",
                "debarment",
                "regulatory_enforcement",
                "public_office",
                "reference",
                "other",
                "mixed"
              ]
            },
            "rightsStatus": {
              "enum": [
                "approved",
                "review_required",
                "restricted"
              ]
            },
            "jurisdiction": {
              "type": "string"
            },
            "homepage": {
              "type": "string"
            },
            "downloadUrl": {
              "type": "string"
            },
            "format": {
              "type": "string"
            },
            "attribution": {
              "type": "string"
            },
            "termsUrl": {
              "type": "string"
            },
            "disabledReason": {
              "type": "string"
            },
            "refreshHours": {
              "type": "integer",
              "minimum": 0
            },
            "parserVersion": {
              "type": "string"
            },
            "fresh": {
              "type": "boolean"
            },
            "qualification": {
              "type": "object",
              "properties": {
                "implemented": {
                  "type": "boolean"
                },
                "fixtureTested": {
                  "type": "boolean"
                },
                "liveFetchTested": {
                  "type": "boolean"
                },
                "rightsApproved": {
                  "type": "boolean"
                },
                "activated": {
                  "type": "boolean"
                },
                "liveFetchedAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "blockers": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "implemented",
                "fixtureTested",
                "liveFetchTested",
                "rightsApproved",
                "activated",
                "blockers"
              ]
            },
            "currentVersion": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "source_id": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "last_checked_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "published_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string"
                    },
                    "rights_approved": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "source_id",
                    "id",
                    "retrieved_at",
                    "status",
                    "rights_approved"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "lastImport": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "source_id": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "retrieved_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "last_checked_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "published_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string"
                    },
                    "rights_approved": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "source_id",
                    "id",
                    "retrieved_at",
                    "status",
                    "rights_approved"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        }
      },
      "ScreeningResult": {
        "type": "object",
        "required": [
          "id",
          "environment",
          "status",
          "createdAt",
          "matches",
          "coverage",
          "versions",
          "disclaimer"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Screening UUID; use it to retrieve retained result/evidence and locate linked review cases."
          },
          "environment": {
            "enum": [
              "sandbox",
              "production"
            ],
            "description": "Environment owned by the API key. Sandbox evidence is synthetic."
          },
          "status": {
            "enum": [
              "potential_match",
              "no_match"
            ],
            "description": "potential_match requires review of candidates; no_match means no returned candidates within the selected coverage and matching rules. Neither is a business approval or legal clearance."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Screening creation timestamp in ISO 8601 UTC."
          },
          "matches": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "record",
                "score",
                "evidence",
                "conflicts"
              ],
              "properties": {
                "record": {
                  "$ref": "#/components/schemas/SourceRecord"
                },
                "score": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100,
                  "description": "Legacy composite review score retained for compatibility. Use assessment.name.similarity for name similarity and assessment for corroboration and conflicts. Not a probability of identity or wrongdoing."
                },
                "assessment": {
                  "$ref": "#/components/schemas/MatchAssessment"
                },
                "evidence": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "field",
                      "queryValue",
                      "sourceValue",
                      "method",
                      "contribution",
                      "explanation"
                    ],
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "queryValue": {
                        "type": "string"
                      },
                      "sourceValue": {
                        "type": "string"
                      },
                      "method": {
                        "type": "string"
                      },
                      "contribution": {
                        "type": "number"
                      },
                      "explanation": {
                        "type": "string"
                      }
                    }
                  }
                },
                "conflicts": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            },
            "description": "Candidate records with field evidence and conflicts. Always an array; empty for no_match. No silent truncation is performed."
          },
          "coverage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Coverage"
            },
            "description": "Exact source versions used, including freshness and retained publisher notices. Always present, including no_match."
          },
          "versions": {
            "type": "object",
            "required": [
              "dataset",
              "matchingEngine",
              "policy"
            ],
            "properties": {
              "dataset": {
                "type": "string"
              },
              "matchingEngine": {
                "type": "string"
              },
              "policy": {
                "type": "string"
              },
              "package": {
                "type": "string"
              }
            },
            "description": "Dataset, matching engine and policy versions used for this result. package is included only for package-based coverage."
          },
          "disclaimer": {
            "type": "string",
            "description": "Interpretation limits supplied with this result; preserve them when presenting or exporting evidence."
          },
          "policySnapshot": {
            "$ref": "#/components/schemas/ScreeningPolicySnapshot",
            "description": "Immutable organization policy applied at screening time, when one was selected. Omitted when no organization policy applied."
          },
          "matching": {
            "$ref": "#/components/schemas/AppliedMatchingPolicy",
            "description": "Applied Standard or Focused alert profile, comparison thresholds, partial-name policy and retrieval version. Saved with new results, including no-match results; omitted on historical results without this evidence. Set matching.partialNames to review on an approved screening policy to include weaker token-prefix and missing-name-part evidence. Omission or exclude preserves complete-name matching. Select sensitivity through a versioned policy, not an arbitrary request-level cutoff."
          },
          "warnings": {
            "type": "array",
            "description": "Input limitations without copied subject values. A one-word person name produces limited_name_information; legitimate single-word names are accepted. Preserve this warning with no-match outcomes and retained evidence. Historical results may omit it.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "code",
                "message"
              ],
              "properties": {
                "code": {
                  "enum": [
                    "limited_name_information"
                  ]
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        },
        "description": "Result returned by POST /screenings and plain GET /results items. Its required fields are always present. A successful result is either potential_match or no_match; failures use the Error envelope instead."
      },
      "AppliedDecisionControls": {
        "type": "object",
        "properties": {
          "governanceRevision": {
            "type": "integer",
            "minimum": 1
          },
          "organizationApproval": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "requireSecondReview": {
                "default": false,
                "type": "boolean"
              },
              "secondReviewFor": {
                "default": [],
                "maxItems": 4,
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "same_identity",
                    "allow",
                    "restrict",
                    "escalate"
                  ]
                }
              },
              "approverRoles": {
                "default": [
                  "owner",
                  "admin",
                  "analyst"
                ],
                "minItems": 1,
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "owner",
                    "admin",
                    "analyst"
                  ]
                }
              }
            },
            "additionalProperties": false,
            "required": [
              "requireSecondReview",
              "secondReviewFor",
              "approverRoles"
            ]
          },
          "restrictedRoles": {
            "type": "object",
            "properties": {
              "approval": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "analyst",
                    "developer",
                    "viewer"
                  ]
                }
              },
              "production": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "analyst",
                    "developer",
                    "viewer"
                  ]
                }
              }
            },
            "required": [
              "approval",
              "production"
            ],
            "additionalProperties": false
          },
          "screeningPolicy": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "review": {
                    "$schema": "https://json-schema.org/draft/2020-12/schema",
                    "type": "object",
                    "properties": {
                      "requireSecondReview": {
                        "default": false,
                        "type": "boolean"
                      },
                      "secondReviewFor": {
                        "default": [],
                        "maxItems": 4,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "same_identity",
                            "allow",
                            "restrict",
                            "escalate"
                          ]
                        }
                      },
                      "approverRoles": {
                        "default": [
                          "owner",
                          "admin",
                          "analyst"
                        ],
                        "minItems": 1,
                        "maxItems": 3,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "owner",
                            "admin",
                            "analyst"
                          ]
                        }
                      }
                    },
                    "additionalProperties": false,
                    "required": [
                      "requireSecondReview",
                      "secondReviewFor",
                      "approverRoles"
                    ]
                  }
                },
                "required": [
                  "id",
                  "version",
                  "review"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "governanceRevision",
          "organizationApproval",
          "restrictedRoles",
          "screeningPolicy"
        ],
        "additionalProperties": false,
        "description": "Immutable decision-time approval configuration. A null appliedControls value on a decision means no historic snapshot is available; current settings are never substituted. Notification recipients and document hosts are excluded."
      },
      "ScreeningPolicySnapshot": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 120
          },
          "purpose": {
            "type": "string",
            "minLength": 3,
            "maxLength": 1000
          },
          "jurisdictions": {
            "minItems": 1,
            "maxItems": 30,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 2,
              "maxLength": 100
            }
          },
          "matching": {
            "type": "object",
            "properties": {
              "profile": {
                "type": "string",
                "enum": [
                  "standard",
                  "focused"
                ]
              },
              "partialNames": {
                "type": "string",
                "enum": [
                  "review",
                  "exclude"
                ]
              }
            },
            "required": [
              "profile"
            ],
            "additionalProperties": false
          },
          "requiredSources": {
            "default": {},
            "type": "object",
            "propertyNames": {
              "type": "string",
              "enum": [
                "person",
                "organization",
                "vessel",
                "aircraft",
                "other"
              ]
            },
            "additionalProperties": {
              "maxItems": 512,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              }
            }
          },
          "optionalSources": {
            "default": {},
            "type": "object",
            "propertyNames": {
              "type": "string",
              "enum": [
                "person",
                "organization",
                "vessel",
                "aircraft",
                "other"
              ]
            },
            "additionalProperties": {
              "maxItems": 512,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              }
            }
          },
          "exclusions": {
            "default": [],
            "maxItems": 30,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 3,
              "maxLength": 500
            }
          },
          "externalChecks": {
            "default": [],
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 3,
              "maxLength": 200
            }
          },
          "externalCheckGuidance": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string",
                  "minLength": 3,
                  "maxLength": 200
                },
                "instructions": {
                  "type": "string",
                  "minLength": 3,
                  "maxLength": 2000
                },
                "evidenceExample": {
                  "type": "string",
                  "minLength": 3,
                  "maxLength": 1000
                }
              },
              "required": [
                "label",
                "instructions"
              ],
              "additionalProperties": false
            }
          },
          "review": {
            "default": {},
            "type": "object",
            "properties": {
              "requireSecondReview": {
                "default": false,
                "type": "boolean"
              },
              "secondReviewFor": {
                "default": [],
                "maxItems": 4,
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "same_identity",
                    "allow",
                    "restrict",
                    "escalate"
                  ]
                }
              },
              "approverRoles": {
                "default": [
                  "owner",
                  "admin",
                  "analyst"
                ],
                "minItems": 1,
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "owner",
                    "admin",
                    "analyst"
                  ]
                }
              }
            },
            "additionalProperties": false
          },
          "monitoringIntervalHours": {
            "default": 24,
            "anyOf": [
              {
                "type": "number",
                "const": 6
              },
              {
                "type": "number",
                "const": 24
              },
              {
                "type": "number",
                "const": 168
              }
            ]
          },
          "retentionTrigger": {
            "default": "review_completed",
            "type": "string",
            "enum": [
              "review_completed",
              "relationship_ended",
              "business_event"
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "name",
          "purpose",
          "jurisdictions",
          "requiredSources",
          "optionalSources",
          "exclusions",
          "externalChecks",
          "review",
          "monitoringIntervalHours",
          "retentionTrigger",
          "id",
          "version",
          "environment",
          "createdAt"
        ],
        "additionalProperties": false
      },
      "PolicyList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScreeningPolicySnapshot"
            }
          },
          "requirePolicy": {
            "type": "boolean"
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "requirePolicy",
          "nextCursor"
        ]
      },
      "CounterpartyHistory": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/CounterpartyScreeningHistory"
                },
                {
                  "$ref": "#/components/schemas/CounterpartyCaseHistory"
                },
                {
                  "$ref": "#/components/schemas/CounterpartyMonitorHistory"
                }
              ]
            }
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "total",
          "nextCursor"
        ]
      },
      "MonitoringForecast": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "periodEnd": {
            "type": "string",
            "format": "date-time"
          },
          "dailyScreenings": {
            "type": "number",
            "minimum": 0
          },
          "projectedRemainingScreenings": {
            "type": "integer",
            "minimum": 0
          },
          "effectiveLimit": {
            "type": "integer",
            "minimum": 0
          },
          "used": {
            "type": "integer",
            "minimum": 0
          },
          "reserved": {
            "type": "integer",
            "minimum": 0
          },
          "remaining": {
            "type": "integer",
            "minimum": 0
          },
          "projectedExhaustionAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "generatedAt",
          "periodEnd",
          "dailyScreenings",
          "projectedRemainingScreenings",
          "effectiveLimit",
          "used",
          "reserved",
          "remaining",
          "projectedExhaustionAt"
        ]
      },
      "CaseGovernance": {
        "type": "object",
        "properties": {
          "retention": {
            "type": "object",
            "properties": {
              "trigger": {
                "type": "string",
                "enum": [
                  "review_completed",
                  "relationship_ended",
                  "business_event"
                ]
              },
              "eventAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "eventReason": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "eventActor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "closedAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "expiresAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "trigger",
              "eventAt",
              "eventReason",
              "eventActor",
              "closedAt",
              "expiresAt"
            ]
          },
          "holds": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "reason": {
                  "type": "string"
                },
                "actorId": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "until": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "releasedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "releasedBy": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "releaseReason": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "reason",
                "actorId",
                "createdAt",
                "until",
                "releasedAt",
                "releasedBy",
                "releaseReason"
              ]
            }
          },
          "documents": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "screeningId": {
                  "type": "string",
                  "format": "uuid"
                },
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "repository": {
                  "type": "string"
                },
                "documentVersion": {
                  "type": "string"
                },
                "sha256": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "provenance": {
                  "type": "string"
                },
                "verification": {
                  "type": "string",
                  "enum": [
                    "unverified",
                    "reviewer_verified"
                  ]
                },
                "verifiedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "actorId": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "screeningId",
                "title",
                "url",
                "repository",
                "documentVersion",
                "sha256",
                "provenance",
                "verification",
                "verifiedAt",
                "actorId",
                "createdAt"
              ]
            }
          },
          "documentsTruncated": {
            "type": "boolean"
          },
          "documentHosts": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "documentRepositories": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                }
              },
              "required": [
                "name",
                "url"
              ]
            }
          }
        },
        "required": [
          "retention",
          "holds",
          "documents",
          "documentsTruncated",
          "documentHosts",
          "documentRepositories"
        ]
      },
      "CaseArchiveSegment": {
        "type": "object",
        "properties": {
          "format": {
            "const": "sanctionskit-case-archive@1"
          },
          "caseId": {
            "type": "string",
            "format": "uuid"
          },
          "revision": {
            "type": "integer",
            "minimum": 0
          },
          "asOf": {
            "type": "string",
            "format": "date-time"
          },
          "segment": {
            "type": "integer",
            "minimum": 0
          },
          "category": {
            "type": "string",
            "enum": [
              "case",
              "screenings",
              "decisions",
              "reviews",
              "reviewHistory",
              "comments",
              "attachments",
              "findings",
              "corrections",
              "checks",
              "documents",
              "holds",
              "reuseRules",
              "audit"
            ]
          },
          "records": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ArchiveCase"
                },
                {
                  "$ref": "#/components/schemas/ArchiveScreening"
                },
                {
                  "$ref": "#/components/schemas/ArchiveDecision"
                },
                {
                  "$ref": "#/components/schemas/ArchiveReview"
                },
                {
                  "$ref": "#/components/schemas/ArchiveReviewHistory"
                },
                {
                  "$ref": "#/components/schemas/ArchiveComment"
                },
                {
                  "$ref": "#/components/schemas/ArchiveAttachment"
                },
                {
                  "$ref": "#/components/schemas/ArchiveFinding"
                },
                {
                  "$ref": "#/components/schemas/ArchiveCorrection"
                },
                {
                  "$ref": "#/components/schemas/ArchiveCheck"
                },
                {
                  "$ref": "#/components/schemas/ArchiveDocument"
                },
                {
                  "$ref": "#/components/schemas/ArchiveHold"
                },
                {
                  "$ref": "#/components/schemas/ArchiveReuseRule"
                },
                {
                  "$ref": "#/components/schemas/ArchiveAuditEvent"
                },
                {
                  "$ref": "#/components/schemas/ArchiveExpiredRecord"
                }
              ]
            },
            "description": "Record shape follows category: case → ArchiveCase, screenings → ArchiveScreening, decisions → ArchiveDecision, reviews → ArchiveReview, reviewHistory → ArchiveReviewHistory, comments → ArchiveComment, attachments → ArchiveAttachment, findings → ArchiveFinding, corrections → ArchiveCorrection, checks → ArchiveCheck, documents → ArchiveDocument, holds → ArchiveHold, reuseRules → ArchiveReuseRule, audit → ArchiveAuditEvent. Expired content is replaced by ArchiveExpiredRecord. Non-case segments contain at most 25 records and may be empty while advancing to the next category."
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "complete": {
            "type": "boolean"
          },
          "limitations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "format",
          "caseId",
          "revision",
          "asOf",
          "segment",
          "category",
          "records",
          "nextCursor",
          "complete",
          "limitations"
        ]
      },
      "ScreeningEvidence": {
        "type": "object",
        "properties": {
          "format": {
            "const": "sanctionskit-evidence@1"
          },
          "result": {
            "$ref": "#/components/schemas/ScreeningResult"
          },
          "retention": {
            "type": "string",
            "enum": [
              "standard",
              "minimal"
            ]
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "description": "Null while evidence is protected by an open review, unrecorded retention trigger or indefinite hold; inspect case governance."
          },
          "subject": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Subject"
              },
              {
                "type": "null"
              }
            ],
            "description": "Retained subject; null for minimal retention or when no subject was retained."
          },
          "reference": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Retained caller reference; null for minimal retention or if absent."
          },
          "request": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScreeningRequest"
              },
              {
                "type": "null"
              }
            ],
            "description": "Retained complete request; null for minimal retention or when inputs were not retained."
          },
          "retainedInputs": {
            "type": "boolean",
            "description": "Whether both subject and request inputs were retained. A false value means full historical input replay is unavailable."
          },
          "replayLimit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Explanation of replay limitations for minimal retention; otherwise null."
          }
        },
        "required": [
          "format",
          "result",
          "retention",
          "expires_at",
          "subject",
          "reference",
          "request",
          "retainedInputs",
          "replayLimit"
        ]
      },
      "RetainedScreeningResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ScreeningResult"
          },
          {
            "type": "object",
            "properties": {
              "subject": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Subject"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reference": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "subject",
              "reference"
            ]
          }
        ],
        "description": "GET /results/{id} adds the retained subject and reference to the original result. Both keys are always present here and are null for minimal retention. POST /screenings and GET /results list items return ScreeningResult without these additions."
      },
      "ScreeningSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "potential_match",
              "no_match"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "subjectName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "entityType": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention": {
            "type": "string",
            "enum": [
              "standard",
              "minimal"
            ]
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "origin": {
            "type": "string"
          },
          "caseId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "reviewDecision": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "open",
                  "confirmed",
                  "dismissed"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "reviewBusinessDisposition": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "pending",
                  "allow",
                  "restrict",
                  "escalate"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "matchCount": {
            "type": "integer",
            "minimum": 0
          },
          "batchId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "monitorId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "status",
          "createdAt",
          "subjectName",
          "entityType",
          "retention",
          "expiresAt",
          "origin",
          "caseId",
          "reviewDecision",
          "reviewBusinessDisposition",
          "matchCount",
          "batchId",
          "monitorId"
        ]
      },
      "ResultsPage": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ScreeningResult"
                }
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "items",
              "nextCursor"
            ]
          },
          {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ScreeningSummary"
                }
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "items",
              "nextCursor"
            ]
          }
        ]
      },
      "FileStorage": {
        "type": "object",
        "properties": {
          "plan": {
            "type": "string"
          },
          "maxBytes": {
            "type": "integer",
            "minimum": 0
          },
          "usedBytes": {
            "type": "integer",
            "minimum": 0
          },
          "reservedBytes": {
            "type": "integer",
            "minimum": 0
          },
          "remainingBytes": {
            "type": "integer",
            "minimum": 0
          },
          "sandbox": {
            "type": "object",
            "properties": {
              "maxBytes": {
                "type": "integer",
                "minimum": 0
              },
              "usedBytes": {
                "type": "integer",
                "minimum": 0
              },
              "reservedBytes": {
                "type": "integer",
                "minimum": 0
              },
              "remainingBytes": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "maxBytes",
              "usedBytes",
              "reservedBytes",
              "remainingBytes"
            ]
          },
          "maxBatchUploadBytes": {
            "type": "integer",
            "minimum": 0
          },
          "maxEvidenceAttachmentBytes": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "plan",
          "maxBytes",
          "usedBytes",
          "reservedBytes",
          "remainingBytes",
          "sandbox",
          "maxBatchUploadBytes",
          "maxEvidenceAttachmentBytes"
        ]
      },
      "Usage": {
        "type": "object",
        "properties": {
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "period": {
            "type": "string"
          },
          "used": {
            "type": "integer",
            "minimum": 0
          },
          "reserved": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 0
          },
          "planLimit": {
            "type": "integer",
            "minimum": 0
          },
          "spendingCap": {
            "type": "integer",
            "minimum": 0
          },
          "effectiveLimit": {
            "type": "integer",
            "minimum": 0
          },
          "remaining": {
            "type": "integer",
            "minimum": 0
          },
          "plan": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string"
                },
                "subjects": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "required": [
                "kind",
                "subjects"
              ]
            }
          },
          "fileStorage": {
            "$ref": "#/components/schemas/FileStorage"
          },
          "monitoringForecast": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MonitoringForecast"
              },
              {
                "type": "null"
              }
            ]
          },
          "forecastUnavailable": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "environment",
          "period",
          "used",
          "reserved",
          "limit",
          "planLimit",
          "spendingCap",
          "effectiveLimit",
          "remaining",
          "plan",
          "events",
          "fileStorage",
          "monitoringForecast",
          "forecastUnavailable"
        ]
      },
      "BatchAccepted": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Accepted batch UUID. Poll GET /batches/{id} for processing progress."
          },
          "status": {
            "type": "string",
            "enum": [
              "importing",
              "pending"
            ],
            "description": "pending for inline rows; importing for an uploaded file. Idempotent replay returns the original acceptance state."
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "description": "Inline row count; zero for uploads until asynchronous import establishes the count."
          }
        },
        "required": [
          "id",
          "status",
          "total"
        ]
      },
      "Batch": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "importing",
              "pending",
              "processing",
              "completed",
              "cancelled",
              "failed"
            ]
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "completed": {
            "type": "integer",
            "minimum": 0
          },
          "failed": {
            "type": "integer",
            "minimum": 0
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "cancelled_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "environment",
          "status",
          "total",
          "completed",
          "failed",
          "created_at",
          "cancelled_at"
        ]
      },
      "BatchPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Batch"
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ]
      },
      "BatchDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "importing",
              "pending",
              "processing",
              "completed",
              "cancelled",
              "failed"
            ]
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "completed": {
            "type": "integer",
            "minimum": 0
          },
          "failed": {
            "type": "integer",
            "minimum": 0
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "cancelled_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "row_number": {
                  "type": "integer",
                  "minimum": 1
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "completed",
                    "failed",
                    "cancelled"
                  ]
                },
                "screening_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "error": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "row_number",
                "status",
                "screening_id",
                "error"
              ]
            },
            "description": "Current row outcomes for this page, ordered by one-based row_number. A failed row contains error; retrieve completed evidence using screening_id."
          },
          "nextOffset": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "description": "Pass this integer as the next offset. Null means all currently counted rows were returned; an importing batch may not have its final total yet."
          }
        },
        "required": [
          "id",
          "name",
          "environment",
          "status",
          "total",
          "completed",
          "failed",
          "created_at",
          "cancelled_at",
          "rows",
          "nextOffset"
        ]
      },
      "BatchCancellation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "completed",
              "cancelled",
              "failed"
            ]
          }
        },
        "required": [
          "id",
          "status"
        ]
      },
      "UploadIntentRequest": {
        "type": "object",
        "properties": {
          "sizeBytes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 26214400,
            "description": "Exact UTF-8 byte size of the NDJSON upload. Maximum 26,214,400 bytes (25 MiB). Omission reserves the full maximum for legacy clients. The entire body may also be omitted."
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "UploadIntent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "pathname": {
            "type": "string"
          },
          "access": {
            "const": "private"
          },
          "handleUploadUrl": {
            "const": "/api/v1/uploads"
          },
          "maxBytes": {
            "type": "integer",
            "minimum": 0
          },
          "reservedBytes": {
            "type": "integer",
            "minimum": 0
          },
          "format": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "pathname",
          "access",
          "handleUploadUrl",
          "maxBytes",
          "reservedBytes",
          "format"
        ]
      },
      "UploadTokenRequest": {
        "type": "object",
        "properties": {
          "type": {
            "const": "blob.generate-client-token",
            "description": "Fixed client-token request discriminator."
          },
          "payload": {
            "type": "object",
            "properties": {
              "pathname": {
                "type": "string",
                "description": "Exact pathname from POST /uploads/intent; it is bound to your organization and key environment."
              },
              "clientPayload": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Client metadata field used by the upload protocol. Send null when no metadata is needed."
              },
              "multipart": {
                "const": false,
                "description": "Must be false: only a single bounded private upload is supported."
              }
            },
            "required": [
              "pathname",
              "clientPayload",
              "multipart"
            ],
            "description": "Provider client-token payload. Use the exact pathname from the authorized upload intent."
          }
        },
        "required": [
          "type",
          "payload"
        ]
      },
      "UploadTokenResponse": {
        "type": "object",
        "properties": {
          "type": {
            "const": "blob.generate-client-token"
          },
          "clientToken": {
            "type": "string",
            "description": "Short-lived private upload token. Treat it as a secret and pass it only to the authorized upload client; do not log it."
          }
        },
        "required": [
          "type",
          "clientToken"
        ]
      },
      "MonitorPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "active",
                    "paused"
                  ]
                },
                "last_screening_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "next_run_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "revision": {
                  "type": "integer",
                  "minimum": 0
                },
                "counterparty_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "status",
                "last_screening_id",
                "next_run_at",
                "created_at",
                "revision",
                "counterparty_id"
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ]
      },
      "Monitor": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "paused"
            ]
          },
          "last_screening_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "next_run_at": {
            "type": "string",
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "revision": {
            "type": "integer",
            "minimum": 0
          },
          "counterparty_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "status",
          "last_screening_id",
          "next_run_at",
          "created_at",
          "revision",
          "counterparty_id"
        ]
      },
      "MonitorCreated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "const": "active"
          }
        },
        "required": [
          "id",
          "name",
          "status"
        ]
      },
      "MonitorUpdated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "paused"
            ]
          },
          "revision": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "id",
          "name",
          "status",
          "revision"
        ]
      },
      "ResourceUpdated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "updated": {
            "const": true
          }
        },
        "required": [
          "id",
          "updated"
        ]
      },
      "MonitorDeleted": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "const": "deleted"
          }
        },
        "required": [
          "id",
          "status"
        ]
      },
      "CasePage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CaseSummary"
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ]
      },
      "CaseDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "environment": {
            "type": "string"
          },
          "screening_id": {
            "type": "string",
            "format": "uuid"
          },
          "monitor_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "decision": {
            "type": "string"
          },
          "business_disposition": {
            "type": "string"
          },
          "review_started_at": {
            "type": "string",
            "format": "date-time"
          },
          "superseded_by_screening_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "superseded_by_case_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "latest_screening_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "counterparty_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "assignee_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "priority": {
            "type": "string"
          },
          "due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "escalated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "revision": {
            "type": "integer"
          },
          "requires_second_review": {
            "type": "boolean"
          },
          "review_state": {
            "type": "string"
          },
          "submitted_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "approved_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "submitted_screening_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_policy": {
            "type": "string"
          },
          "retention_years": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "closed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_trigger": {
            "type": "string"
          },
          "retention_event_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_event_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_event_actor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "subjectName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "entityType": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "origin": {
            "type": "string"
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "potential_match",
                  "no_match"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "matchCount": {
            "type": "integer",
            "minimum": 0
          },
          "evidenceAvailable": {
            "type": "boolean"
          },
          "retention": {
            "type": "string",
            "enum": [
              "standard",
              "minimal"
            ]
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "decisions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "actor_id": {
                  "type": "string"
                },
                "decision": {
                  "type": "string",
                  "enum": [
                    "open",
                    "confirmed",
                    "dismissed"
                  ]
                },
                "business_disposition": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "allow",
                    "restrict",
                    "escalate"
                  ]
                },
                "appliedControls": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/AppliedDecisionControls"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "notes": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "actor_email": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "screening_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "actor_id",
                "decision",
                "business_disposition",
                "appliedControls",
                "notes",
                "created_at",
                "actor_email",
                "screening_id"
              ]
            }
          },
          "nextDecisionCursor": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "environment",
          "screening_id",
          "monitor_id",
          "decision",
          "business_disposition",
          "review_started_at",
          "superseded_by_screening_id",
          "superseded_by_case_id",
          "created_at",
          "updated_at",
          "latest_screening_id",
          "counterparty_id",
          "assignee_id",
          "priority",
          "due_at",
          "escalated_at",
          "revision",
          "requires_second_review",
          "review_state",
          "submitted_by",
          "approved_by",
          "submitted_screening_id",
          "retention_policy",
          "retention_years",
          "retention_days",
          "closed_at",
          "retention_expires_at",
          "retention_trigger",
          "retention_event_at",
          "retention_event_reason",
          "retention_event_actor",
          "subjectName",
          "entityType",
          "origin",
          "status",
          "matchCount",
          "evidenceAvailable",
          "retention",
          "expiresAt",
          "decisions",
          "nextDecisionCursor"
        ]
      },
      "CaseCreated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "screeningId": {
            "type": "string",
            "format": "uuid"
          },
          "decision": {
            "const": "open"
          },
          "notes": {
            "type": "string"
          },
          "expectedUpdatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "screeningId",
          "decision",
          "notes"
        ]
      },
      "Webhooks": {
        "type": "object",
        "properties": {
          "endpoints": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "environment": {
                  "type": "string",
                  "enum": [
                    "sandbox",
                    "production"
                  ]
                },
                "url": {
                  "type": "string"
                },
                "active": {
                  "type": "boolean"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "environment",
                "url",
                "active",
                "created_at"
              ]
            }
          },
          "deliveries": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "environment": {
                  "type": "string",
                  "enum": [
                    "sandbox",
                    "production"
                  ]
                },
                "endpoint_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "event_id": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "attempts": {
                  "type": "integer",
                  "minimum": 0
                },
                "next_attempt_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "last_status": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "environment",
                "endpoint_id",
                "event_id",
                "status",
                "attempts",
                "next_attempt_at",
                "last_status",
                "created_at"
              ]
            }
          }
        },
        "required": [
          "endpoints",
          "deliveries"
        ]
      },
      "WebhookCreated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "url": {
            "type": "string"
          },
          "secret": {
            "type": "string",
            "description": "Signing secret shown only at creation. Store securely and use it to verify webhook signatures; list operations never return it."
          }
        },
        "required": [
          "id",
          "environment",
          "url",
          "secret"
        ]
      },
      "WebhookDisabled": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "active": {
            "const": false
          }
        },
        "required": [
          "id",
          "environment",
          "active"
        ]
      },
      "WebhookRetry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "status": {
            "const": "pending"
          }
        },
        "required": [
          "id",
          "environment",
          "status"
        ]
      },
      "Counterparty": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "label": {
            "type": "string"
          },
          "externalId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "relationship": {
            "type": "string",
            "enum": [
              "customer",
              "vendor",
              "employee",
              "other"
            ]
          },
          "subject": {
            "$ref": "#/components/schemas/Subject"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "archived"
            ]
          },
          "revision": {
            "type": "integer",
            "minimum": 0
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "environment",
          "label",
          "externalId",
          "relationship",
          "subject",
          "tags",
          "status",
          "revision",
          "createdAt",
          "updatedAt"
        ]
      },
      "CounterpartyPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Counterparty"
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ]
      },
      "CounterpartyDetail": {
        "type": "object",
        "properties": {
          "counterparty": {
            "$ref": "#/components/schemas/Counterparty"
          },
          "screenings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "potential_match",
                    "no_match",
                    "expired"
                  ]
                },
                "evidence_state": {
                  "type": "string",
                  "enum": [
                    "available",
                    "expired"
                  ]
                }
              },
              "required": [
                "id",
                "created_at",
                "status",
                "evidence_state"
              ]
            }
          },
          "monitors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "active",
                    "paused",
                    "deleted"
                  ]
                },
                "last_screening_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "next_run_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "name",
                "status",
                "last_screening_id",
                "next_run_at"
              ]
            }
          },
          "cases": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "decision": {
                  "type": "string",
                  "enum": [
                    "open",
                    "confirmed",
                    "dismissed"
                  ]
                },
                "business_disposition": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "allow",
                    "restrict",
                    "escalate"
                  ]
                },
                "review_state": {
                  "type": "string"
                },
                "screening_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "latest_screening_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "created_at",
                "decision",
                "business_disposition",
                "review_state",
                "screening_id",
                "latest_screening_id"
              ]
            }
          }
        },
        "required": [
          "counterparty",
          "screenings",
          "monitors",
          "cases"
        ],
        "description": "Saved identity plus up to 100 rows for each related resource collection. Use /counterparties/{id}/history to paginate the complete history."
      },
      "Investigation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "screeningId": {
            "type": "string",
            "format": "uuid"
          },
          "counterpartyId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "decision": {
            "type": "string",
            "enum": [
              "open",
              "confirmed",
              "dismissed"
            ]
          },
          "revision": {
            "type": "integer",
            "minimum": 0
          },
          "assigneeId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "priority": {
            "type": "string",
            "enum": [
              "low",
              "normal",
              "high",
              "urgent"
            ]
          },
          "dueAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "escalatedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "requiresSecondReview": {
            "type": "boolean"
          },
          "reviewState": {
            "type": "string",
            "enum": [
              "open",
              "pending_approval",
              "approved",
              "superseded"
            ]
          },
          "businessDisposition": {
            "type": "string",
            "enum": [
              "pending",
              "allow",
              "restrict",
              "escalate"
            ]
          },
          "reviewStartedAt": {
            "type": "string",
            "format": "date-time"
          },
          "supersededByScreeningId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "supersededByCaseId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "approvalRequiredByPolicy": {
            "type": "boolean"
          },
          "approvalRequiredForActions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "approverRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "reviewConcern": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "policyContext": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "name": {
                    "type": "string"
                  },
                  "purpose": {
                    "type": "string"
                  },
                  "exclusions": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "id",
                  "version",
                  "name",
                  "purpose",
                  "exclusions"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "decisionHistory": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "screeningId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "decision": {
                  "type": "string",
                  "enum": [
                    "open",
                    "confirmed",
                    "dismissed"
                  ]
                },
                "businessDisposition": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "pending",
                        "allow",
                        "restrict",
                        "escalate"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "rationale": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "actorId": {
                  "type": "string"
                },
                "actorLabel": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "appliedControls": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/AppliedDecisionControls"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "screeningId",
                "decision",
                "businessDisposition",
                "rationale",
                "actorId",
                "actorLabel",
                "createdAt",
                "appliedControls"
              ]
            }
          },
          "decisionHistoryTruncated": {
            "type": "boolean"
          },
          "checks": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "instructions": {
                  "type": "string"
                },
                "evidenceExample": {
                  "type": "string"
                },
                "reviewConcern": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "outstanding",
                    "completed_externally",
                    "not_applicable"
                  ]
                },
                "evidenceReference": {
                  "type": "string"
                },
                "rationale": {
                  "type": "string"
                },
                "actorId": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updatedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "label",
                "status",
                "evidenceReference",
                "rationale",
                "actorId",
                "updatedAt"
              ]
            }
          },
          "checkHistory": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "screeningId": {
                  "type": "string",
                  "format": "uuid"
                },
                "label": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "outstanding",
                    "completed_externally",
                    "not_applicable"
                  ]
                },
                "evidenceReference": {
                  "type": "string"
                },
                "rationale": {
                  "type": "string"
                },
                "actorId": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "expiresAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "screeningId",
                "label",
                "status",
                "evidenceReference",
                "rationale",
                "actorId",
                "updatedAt",
                "expiresAt"
              ]
            }
          },
          "reuseChallenges": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "ruleId": {
                  "type": "string"
                },
                "originCaseId": {
                  "type": "string"
                },
                "challengedByCaseId": {
                  "type": "string"
                },
                "actorId": {
                  "type": "string"
                },
                "revokedAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "affectedCaseIds": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "ruleId",
                "originCaseId",
                "challengedByCaseId",
                "actorId",
                "revokedAt",
                "affectedCaseIds"
              ]
            }
          },
          "submittedBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "approvedBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "matches": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "screeningId": {
                  "type": "string",
                  "format": "uuid"
                },
                "sourceId": {
                  "type": "string"
                },
                "recordId": {
                  "type": "string"
                },
                "identityDecision": {
                  "type": "string",
                  "enum": [
                    "unresolved",
                    "same",
                    "different"
                  ]
                },
                "businessDecision": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "allow",
                    "restrict",
                    "escalate"
                  ]
                },
                "rationale": {
                  "type": "string"
                },
                "reusableUntil": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "reusedRuleId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "actorId": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "reuse": {
                  "type": "object",
                  "properties": {
                    "caseId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "screeningId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "approvedBy": {
                      "type": "string"
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "revokedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "caseId",
                    "screeningId",
                    "approvedBy",
                    "expiresAt",
                    "revokedAt"
                  ]
                }
              },
              "required": [
                "id",
                "screeningId",
                "sourceId",
                "recordId",
                "identityDecision",
                "businessDecision",
                "rationale",
                "reusableUntil",
                "reusedRuleId",
                "actorId",
                "updatedAt"
              ]
            }
          },
          "subject": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Subject"
              },
              {
                "type": "null"
              }
            ]
          },
          "counterpartySubject": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Subject"
              },
              {
                "type": "null"
              }
            ]
          },
          "counterpartyRevision": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "originCorrection": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "caseId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "screeningId": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "caseId",
                  "screeningId"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "evidence": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "screeningId": {
                  "type": "string",
                  "format": "uuid"
                },
                "sourceId": {
                  "type": "string"
                },
                "recordId": {
                  "type": "string"
                },
                "field": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                },
                "sourceReference": {
                  "type": "string"
                },
                "verification": {
                  "type": "string",
                  "enum": [
                    "unverified",
                    "verified"
                  ]
                },
                "comparison": {
                  "type": "string",
                  "enum": [
                    "agrees",
                    "conflicts",
                    "unknown"
                  ]
                },
                "notes": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                },
                "actorId": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "expiresAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "screeningId",
                "sourceId",
                "recordId",
                "field",
                "value",
                "sourceReference",
                "verification",
                "comparison",
                "notes",
                "content",
                "actorId",
                "createdAt",
                "expiresAt"
              ]
            }
          },
          "corrections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "screeningId": {
                  "type": "string",
                  "format": "uuid"
                },
                "resultScreeningId": {
                  "type": "string",
                  "format": "uuid"
                },
                "resultCaseId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "before": {
                  "$ref": "#/components/schemas/Subject"
                },
                "after": {
                  "$ref": "#/components/schemas/Subject"
                },
                "reason": {
                  "type": "string"
                },
                "actorId": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "expiresAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "screeningId",
                "resultScreeningId",
                "resultCaseId",
                "before",
                "after",
                "reason",
                "actorId",
                "createdAt",
                "expiresAt"
              ]
            }
          },
          "reviewHistory": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "screeningId": {
                  "type": "string",
                  "format": "uuid"
                },
                "sourceId": {
                  "type": "string"
                },
                "recordId": {
                  "type": "string"
                },
                "review": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "screeningId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceId": {
                      "type": "string"
                    },
                    "recordId": {
                      "type": "string"
                    },
                    "identityDecision": {
                      "type": "string"
                    },
                    "businessDecision": {
                      "type": "string"
                    },
                    "rationale": {
                      "type": "string"
                    },
                    "reusableUntil": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "reusedRuleId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "actorId": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "id",
                    "screeningId",
                    "sourceId",
                    "recordId",
                    "identityDecision",
                    "businessDecision",
                    "rationale",
                    "reusableUntil",
                    "reusedRuleId",
                    "actorId",
                    "updatedAt"
                  ]
                },
                "replacedBy": {
                  "type": "string"
                },
                "reason": {
                  "type": "string",
                  "enum": [
                    "decision_updated",
                    "evidence_added",
                    "subject_corrected",
                    "rule_challenged"
                  ]
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "expiresAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "screeningId",
                "sourceId",
                "recordId",
                "review",
                "replacedBy",
                "reason",
                "createdAt",
                "expiresAt"
              ]
            }
          },
          "comments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "body": {
                  "type": "string"
                },
                "actorId": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "body",
                "actorId",
                "createdAt"
              ]
            }
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "title": {
                  "type": "string"
                },
                "sha256": {
                  "type": "string"
                },
                "size": {
                  "type": "integer",
                  "minimum": 0
                },
                "actorId": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "expiresAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "title",
                "sha256",
                "size",
                "actorId",
                "createdAt",
                "expiresAt"
              ]
            }
          },
          "assignees": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "email": {
                  "type": "string"
                },
                "role": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "email",
                "role"
              ]
            }
          }
        },
        "required": [
          "id",
          "screeningId",
          "counterpartyId",
          "decision",
          "revision",
          "assigneeId",
          "priority",
          "dueAt",
          "escalatedAt",
          "requiresSecondReview",
          "reviewState",
          "businessDisposition",
          "reviewStartedAt",
          "supersededByScreeningId",
          "supersededByCaseId",
          "approvalRequiredByPolicy",
          "approvalRequiredForActions",
          "approverRoles",
          "reviewConcern",
          "policyContext",
          "decisionHistory",
          "decisionHistoryTruncated",
          "checks",
          "checkHistory",
          "reuseChallenges",
          "submittedBy",
          "approvedBy",
          "matches",
          "subject",
          "counterpartySubject",
          "counterpartyRevision",
          "originCorrection",
          "evidence",
          "corrections",
          "reviewHistory",
          "comments",
          "attachments",
          "assignees"
        ]
      },
      "MonitoringPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "active",
                    "paused"
                  ]
                },
                "request": {
                  "$ref": "#/components/schemas/ScreeningRequest"
                },
                "counterpartyId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lastScreeningId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "nextRunAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "intervalHours": {
                  "type": "integer",
                  "enum": [
                    6,
                    24,
                    168
                  ]
                },
                "revision": {
                  "type": "integer",
                  "minimum": 0
                },
                "lastErrorCode": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Public code for the last failed check, or null. Use documented business codes for recovery; temporary service failures use temporarily_unavailable and other unclassified failures use screening_failed. A missing error code is not proof of a completed check: inspect health and lastSuccessfulAt."
                },
                "lastAttemptAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lastSuccessfulAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "health": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "healthy",
                    "overdue",
                    "failed",
                    "paused"
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "status",
                "request",
                "counterpartyId",
                "lastScreeningId",
                "nextRunAt",
                "updatedAt",
                "intervalHours",
                "revision",
                "lastErrorCode",
                "lastAttemptAt",
                "lastSuccessfulAt",
                "health"
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "forecast": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MonitoringForecast"
              },
              {
                "type": "null"
              }
            ]
          },
          "forecastUnavailable": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor",
          "forecast",
          "forecastUnavailable"
        ]
      },
      "MonitorEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "monitorId": {
            "type": "string",
            "format": "uuid"
          },
          "monitorName": {
            "type": "string"
          },
          "caseId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "screeningId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "previousScreeningId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "initial_match",
              "match_added",
              "match_removed",
              "evidence_changed",
              "policy_changed",
              "baseline_unavailable",
              "screening_failed",
              "screening_overdue",
              "screening_recovered",
              "review_required"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "unread",
              "acknowledged"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "acknowledgedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "errorCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Public screening failure code, or null when the event does not represent an error. Infrastructure details are not returned; temporarily_unavailable and screening_failed are generic fallbacks. Unknown future codes must remain a failed or incomplete check, never no_match."
          },
          "totalChanges": {
            "type": "integer",
            "minimum": 0,
            "description": "Total saved changes before preview limits."
          },
          "evidenceExpired": {
            "type": "boolean",
            "description": "True if linked current or prior evidence is unavailable under retention; missing preview content is not proof of no change."
          },
          "currentEvidenceAvailable": {
            "type": "boolean"
          },
          "previousEvidenceAvailable": {
            "type": "boolean"
          },
          "changes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "sourceId": {
                  "type": "string"
                },
                "recordId": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "added",
                    "removed",
                    "changed"
                  ]
                },
                "fields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "before": {
                  "$ref": "#/components/schemas/MonitorRecordPreview",
                  "description": "Prior retained evidence preview; omitted when the record did not exist or prior evidence is unavailable."
                },
                "after": {
                  "$ref": "#/components/schemas/MonitorRecordPreview",
                  "description": "Current retained evidence preview; omitted when the record no longer exists or current evidence is unavailable."
                }
              },
              "required": [
                "sourceId",
                "recordId",
                "kind",
                "fields"
              ]
            },
            "description": "Bounded change previews: at most 10 per list item or 25 on detail. Use linked retained screening IDs for complete evidence."
          }
        },
        "required": [
          "id",
          "monitorId",
          "monitorName",
          "caseId",
          "screeningId",
          "previousScreeningId",
          "kind",
          "status",
          "createdAt",
          "acknowledgedAt",
          "errorCode",
          "totalChanges",
          "evidenceExpired",
          "currentEvidenceAvailable",
          "previousEvidenceAvailable",
          "changes"
        ]
      },
      "MonitorEventPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MonitorEvent"
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "unreadCount": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "items",
          "nextCursor",
          "unreadCount"
        ]
      },
      "OperationsReport": {
        "type": "object",
        "properties": {
          "timeZone": {
            "type": "string",
            "description": "Captured calendar timezone used for this report range."
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "screenings": {
            "type": "object",
            "properties": {
              "total": {
                "type": "integer",
                "minimum": 0
              },
              "potentialMatches": {
                "type": "integer",
                "minimum": 0
              },
              "noMatches": {
                "type": "integer",
                "minimum": 0
              },
              "expired": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "total",
              "potentialMatches",
              "noMatches",
              "expired"
            ]
          },
          "cases": {
            "type": "object",
            "properties": {
              "open": {
                "type": "integer",
                "minimum": 0
              },
              "confirmed": {
                "type": "integer",
                "minimum": 0
              },
              "dismissed": {
                "type": "integer",
                "minimum": 0
              },
              "overdue": {
                "type": "integer",
                "minimum": 0
              },
              "pendingApproval": {
                "type": "integer",
                "minimum": 0
              },
              "unassigned": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "open",
              "confirmed",
              "dismissed",
              "overdue",
              "pendingApproval",
              "unassigned"
            ]
          },
          "monitoring": {
            "type": "object",
            "properties": {
              "active": {
                "type": "integer",
                "minimum": 0
              },
              "paused": {
                "type": "integer",
                "minimum": 0
              },
              "overdue": {
                "type": "integer",
                "minimum": 0
              },
              "failed": {
                "type": "integer",
                "minimum": 0
              },
              "unread": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "active",
              "paused",
              "overdue",
              "failed",
              "unread"
            ]
          },
          "reviews": {
            "type": "object",
            "properties": {
              "total": {
                "type": "integer",
                "minimum": 0
              },
              "reused": {
                "type": "integer",
                "minimum": 0
              },
              "medianHours": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "total",
              "reused",
              "medianHours"
            ]
          },
          "reviewers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "actorId": {
                  "type": "string"
                },
                "actorEmail": {
                  "type": "string"
                },
                "decisions": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "required": [
                "actorId",
                "decisions"
              ]
            }
          },
          "sourceCoverage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "sourceId": {
                  "type": "string"
                },
                "screenings": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "required": [
                "sourceId",
                "screenings"
              ]
            }
          },
          "expiringEvidence": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "screeningId": {
                  "type": "string",
                  "format": "uuid"
                },
                "expiresAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "caseId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "screeningId",
                "expiresAt",
                "caseId"
              ]
            }
          },
          "limitations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "timeZone",
          "from",
          "to",
          "generatedAt",
          "screenings",
          "cases",
          "monitoring",
          "reviews",
          "reviewers",
          "sourceCoverage",
          "expiringEvidence",
          "limitations"
        ]
      },
      "AuditPacket": {
        "type": "object",
        "properties": {
          "format": {
            "const": "sanctionskit-case-audit@1"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "investigation": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "screeningId": {
                "type": "string",
                "format": "uuid"
              },
              "counterpartyId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "decision": {
                "type": "string",
                "enum": [
                  "open",
                  "confirmed",
                  "dismissed"
                ]
              },
              "revision": {
                "type": "integer",
                "minimum": 0
              },
              "assigneeId": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "priority": {
                "type": "string"
              },
              "dueAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "escalatedAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "requiresSecondReview": {
                "type": "boolean"
              },
              "reviewState": {
                "type": "string",
                "enum": [
                  "open",
                  "pending_approval",
                  "approved",
                  "superseded"
                ]
              },
              "businessDisposition": {
                "type": "string",
                "enum": [
                  "pending",
                  "allow",
                  "restrict",
                  "escalate"
                ]
              },
              "reviewStartedAt": {
                "type": "string",
                "format": "date-time"
              },
              "supersededByScreeningId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "supersededByCaseId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "approvalRequiredByPolicy": {
                "type": "boolean"
              },
              "approvalRequiredForActions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "approverRoles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "reviewConcern": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "policyContext": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "version": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "name": {
                        "type": "string"
                      },
                      "purpose": {
                        "type": "string"
                      },
                      "exclusions": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "id",
                      "version",
                      "name",
                      "purpose",
                      "exclusions"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "decisionHistory": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "screeningId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "decision": {
                      "type": "string",
                      "enum": [
                        "open",
                        "confirmed",
                        "dismissed"
                      ]
                    },
                    "businessDisposition": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "pending",
                            "allow",
                            "restrict",
                            "escalate"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rationale": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "actorId": {
                      "type": "string"
                    },
                    "actorLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "appliedControls": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/AppliedDecisionControls"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "screeningId",
                    "decision",
                    "businessDisposition",
                    "rationale",
                    "actorId",
                    "actorLabel",
                    "createdAt",
                    "appliedControls"
                  ]
                }
              },
              "decisionHistoryTruncated": {
                "type": "boolean"
              },
              "checks": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "type": "string"
                    },
                    "instructions": {
                      "type": "string"
                    },
                    "evidenceExample": {
                      "type": "string"
                    },
                    "reviewConcern": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "outstanding",
                        "completed_externally",
                        "not_applicable"
                      ]
                    },
                    "evidenceReference": {
                      "type": "string"
                    },
                    "rationale": {
                      "type": "string"
                    },
                    "actorId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "label",
                    "status",
                    "evidenceReference",
                    "rationale",
                    "actorId",
                    "updatedAt"
                  ]
                }
              },
              "checkHistory": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "screeningId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "label": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "outstanding",
                        "completed_externally",
                        "not_applicable"
                      ]
                    },
                    "evidenceReference": {
                      "type": "string"
                    },
                    "rationale": {
                      "type": "string"
                    },
                    "actorId": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "screeningId",
                    "label",
                    "status",
                    "evidenceReference",
                    "rationale",
                    "actorId",
                    "updatedAt",
                    "expiresAt"
                  ]
                }
              },
              "reuseChallenges": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "ruleId": {
                      "type": "string"
                    },
                    "originCaseId": {
                      "type": "string"
                    },
                    "challengedByCaseId": {
                      "type": "string"
                    },
                    "actorId": {
                      "type": "string"
                    },
                    "revokedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "affectedCaseIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "ruleId",
                    "originCaseId",
                    "challengedByCaseId",
                    "actorId",
                    "revokedAt",
                    "affectedCaseIds"
                  ]
                }
              },
              "submittedBy": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "approvedBy": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "matches": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "screeningId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceId": {
                      "type": "string"
                    },
                    "recordId": {
                      "type": "string"
                    },
                    "identityDecision": {
                      "type": "string"
                    },
                    "businessDecision": {
                      "type": "string"
                    },
                    "rationale": {
                      "type": "string"
                    },
                    "reusableUntil": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "reusedRuleId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "actorId": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "id",
                    "screeningId",
                    "sourceId",
                    "recordId",
                    "identityDecision",
                    "businessDecision",
                    "rationale",
                    "reusableUntil",
                    "reusedRuleId",
                    "actorId",
                    "updatedAt"
                  ]
                }
              },
              "subject": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Subject"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "originCorrection": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "caseId": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "screeningId": {
                        "type": "string",
                        "format": "uuid"
                      }
                    },
                    "required": [
                      "caseId",
                      "screeningId"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "evidence": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "screeningId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceId": {
                      "type": "string"
                    },
                    "recordId": {
                      "type": "string"
                    },
                    "field": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    },
                    "sourceReference": {
                      "type": "string"
                    },
                    "verification": {
                      "type": "string",
                      "enum": [
                        "unverified",
                        "verified"
                      ]
                    },
                    "comparison": {
                      "type": "string",
                      "enum": [
                        "agrees",
                        "conflicts",
                        "unknown"
                      ]
                    },
                    "notes": {
                      "type": "string"
                    },
                    "content": {
                      "type": "string"
                    },
                    "actorId": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "screeningId",
                    "sourceId",
                    "recordId",
                    "field",
                    "value",
                    "sourceReference",
                    "verification",
                    "comparison",
                    "notes",
                    "content",
                    "actorId",
                    "createdAt",
                    "expiresAt"
                  ]
                }
              },
              "corrections": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "screeningId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "resultScreeningId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "resultCaseId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "before": {
                      "$ref": "#/components/schemas/Subject"
                    },
                    "after": {
                      "$ref": "#/components/schemas/Subject"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "actorId": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "screeningId",
                    "resultScreeningId",
                    "resultCaseId",
                    "before",
                    "after",
                    "reason",
                    "actorId",
                    "createdAt",
                    "expiresAt"
                  ]
                }
              },
              "reviewHistory": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "screeningId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceId": {
                      "type": "string"
                    },
                    "recordId": {
                      "type": "string"
                    },
                    "review": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "screeningId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "sourceId": {
                          "type": "string"
                        },
                        "recordId": {
                          "type": "string"
                        },
                        "identityDecision": {
                          "type": "string"
                        },
                        "businessDecision": {
                          "type": "string"
                        },
                        "rationale": {
                          "type": "string"
                        },
                        "reusableUntil": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "reusedRuleId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "actorId": {
                          "type": "string"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "id",
                        "screeningId",
                        "sourceId",
                        "recordId",
                        "identityDecision",
                        "businessDecision",
                        "rationale",
                        "reusableUntil",
                        "reusedRuleId",
                        "actorId",
                        "updatedAt"
                      ]
                    },
                    "replacedBy": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "enum": [
                        "decision_updated",
                        "evidence_added",
                        "subject_corrected",
                        "rule_challenged"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "screeningId",
                    "sourceId",
                    "recordId",
                    "review",
                    "replacedBy",
                    "reason",
                    "createdAt",
                    "expiresAt"
                  ]
                }
              },
              "comments": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "body": {
                      "type": "string"
                    },
                    "actorId": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "id",
                    "body",
                    "actorId",
                    "createdAt"
                  ]
                }
              },
              "attachments": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "title": {
                      "type": "string"
                    },
                    "sha256": {
                      "type": "string"
                    },
                    "size": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "actorId": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "title",
                    "sha256",
                    "size",
                    "actorId",
                    "createdAt",
                    "expiresAt"
                  ]
                }
              }
            },
            "required": [
              "id",
              "screeningId",
              "counterpartyId",
              "decision",
              "revision",
              "assigneeId",
              "priority",
              "dueAt",
              "escalatedAt",
              "requiresSecondReview",
              "reviewState",
              "businessDisposition",
              "reviewStartedAt",
              "supersededByScreeningId",
              "supersededByCaseId",
              "approvalRequiredByPolicy",
              "approvalRequiredForActions",
              "approverRoles",
              "reviewConcern",
              "policyContext",
              "decisionHistory",
              "decisionHistoryTruncated",
              "checks",
              "checkHistory",
              "reuseChallenges",
              "submittedBy",
              "approvedBy",
              "matches",
              "subject",
              "originCorrection",
              "evidence",
              "corrections",
              "reviewHistory",
              "comments",
              "attachments"
            ]
          },
          "evidence": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "expiresAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "expired": {
                  "type": "boolean"
                },
                "subject": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Subject"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "result": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ScreeningResult"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "createdAt",
                "expiresAt",
                "expired",
                "subject",
                "result"
              ]
            }
          },
          "decisions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "actorId": {
                  "type": "string"
                },
                "decision": {
                  "type": "string"
                },
                "businessDisposition": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "allow",
                    "restrict",
                    "escalate"
                  ]
                },
                "appliedControls": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/AppliedDecisionControls"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "notes": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "screeningId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "evidenceExpired": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "actorId",
                "decision",
                "businessDisposition",
                "appliedControls",
                "notes",
                "createdAt",
                "screeningId",
                "evidenceExpired"
              ]
            }
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "title": {
                  "type": "string"
                },
                "sha256": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "title",
                "sha256",
                "content",
                "createdAt"
              ]
            }
          },
          "documents": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "repository": {
                  "type": "string"
                },
                "documentVersion": {
                  "type": "string"
                },
                "sha256": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "provenance": {
                  "type": "string"
                },
                "verification": {
                  "type": "string",
                  "enum": [
                    "unverified",
                    "reviewer_verified"
                  ]
                },
                "verifiedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "actorId": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "title",
                "url",
                "repository",
                "documentVersion",
                "sha256",
                "provenance",
                "verification",
                "verifiedAt",
                "actorId",
                "createdAt"
              ]
            }
          },
          "holds": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "reason": {
                  "type": "string"
                },
                "until": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "releasedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "releasedBy": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "releaseReason": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "reason",
                "until",
                "releasedAt"
              ]
            }
          },
          "limitations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "format",
          "generatedAt",
          "environment",
          "investigation",
          "evidence",
          "decisions",
          "attachments",
          "documents",
          "holds",
          "limitations"
        ]
      },
      "AuditPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "caseId": {
                  "type": "string",
                  "format": "uuid"
                },
                "actorId": {
                  "type": "string"
                },
                "actorEmail": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "decision": {
                  "type": "string",
                  "enum": [
                    "open",
                    "confirmed",
                    "dismissed"
                  ]
                },
                "businessDisposition": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "allow",
                    "restrict",
                    "escalate"
                  ]
                },
                "appliedControls": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/AppliedDecisionControls"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "notes": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "screeningId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "subjectName": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "evidenceAvailable": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "caseId",
                "actorId",
                "actorEmail",
                "decision",
                "businessDisposition",
                "appliedControls",
                "notes",
                "createdAt",
                "screeningId",
                "subjectName",
                "evidenceAvailable"
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ]
      },
      "CounterpartyScreeningHistory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "potential_match",
              "no_match",
              "expired"
            ]
          },
          "evidence_state": {
            "type": "string",
            "enum": [
              "available",
              "expired"
            ]
          }
        },
        "required": [
          "id",
          "created_at",
          "expires_at",
          "status",
          "evidence_state"
        ],
        "description": "Counterparty history item when kind=screenings. Expired status is metadata, not a reconstructed result."
      },
      "CounterpartyCaseHistory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "decision": {
            "type": "string",
            "enum": [
              "open",
              "confirmed",
              "dismissed"
            ]
          },
          "business_disposition": {
            "type": "string",
            "enum": [
              "pending",
              "allow",
              "restrict",
              "escalate"
            ]
          },
          "review_state": {
            "type": "string"
          },
          "screening_id": {
            "type": "string",
            "format": "uuid"
          },
          "latest_screening_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "created_at",
          "decision",
          "business_disposition",
          "review_state",
          "screening_id",
          "latest_screening_id"
        ],
        "description": "Counterparty history item when kind=cases."
      },
      "CounterpartyMonitorHistory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "paused",
              "deleted"
            ]
          },
          "last_screening_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "next_run_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "created_at",
          "name",
          "status",
          "last_screening_id",
          "next_run_at"
        ],
        "description": "Counterparty history item when kind=monitors. Deleted monitors remain visible as history."
      },
      "SourceProvenance": {
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "string"
          },
          "recordId": {
            "type": "string"
          },
          "field": {
            "type": "string"
          },
          "rawValue": {
            "type": "string"
          }
        },
        "required": [
          "sourceId",
          "recordId",
          "field"
        ],
        "description": "Publisher field attribution. rawValue is optional; when present it preserves the original published value."
      },
      "MonitorRecordPreview": {
        "type": "object",
        "properties": {
          "names": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "value",
                "kind"
              ],
              "properties": {
                "value": {
                  "type": "string"
                },
                "kind": {
                  "enum": [
                    "primary",
                    "alias"
                  ]
                },
                "quality": {
                  "enum": [
                    "strong",
                    "weak",
                    "unknown"
                  ]
                },
                "script": {
                  "type": "string"
                },
                "provenance": {
                  "$ref": "#/components/schemas/SourceProvenance"
                }
              }
            }
          },
          "identifiers": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "type",
                "value"
              ],
              "properties": {
                "type": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                },
                "issuer": {
                  "type": "string"
                },
                "provenance": {
                  "$ref": "#/components/schemas/SourceProvenance"
                }
              }
            }
          },
          "birthDates": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "value",
                "precision",
                "original"
              ],
              "properties": {
                "value": {
                  "type": "string"
                },
                "precision": {
                  "enum": [
                    "day",
                    "month",
                    "year",
                    "range",
                    "unknown"
                  ]
                },
                "original": {
                  "type": "string"
                }
              }
            }
          },
          "nationalities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "designations": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "category",
                "programs",
                "legalReferences"
              ],
              "properties": {
                "category": {
                  "enum": [
                    "financial_sanctions",
                    "export_control",
                    "debarment",
                    "other"
                  ]
                },
                "programs": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "legalReferences": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "wording": {
                  "type": "string"
                },
                "effectiveDate": {
                  "type": "string"
                }
              }
            }
          }
        },
        "required": [
          "names",
          "identifiers",
          "birthDates",
          "nationalities",
          "designations"
        ],
        "description": "Bounded publisher-record preview. Each collection contains at most three entries; names, identifiers and designation text are shortened. Read the linked retained result for full evidence."
      },
      "ArchiveCase": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "screening_id": {
            "type": "string",
            "format": "uuid"
          },
          "monitor_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "decision": {
            "type": "string"
          },
          "business_disposition": {
            "type": "string"
          },
          "review_started_at": {
            "type": "string",
            "format": "date-time"
          },
          "superseded_by_screening_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "superseded_by_case_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "latest_screening_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "counterparty_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "assignee_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "priority": {
            "type": "string"
          },
          "due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "escalated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "revision": {
            "type": "integer"
          },
          "requires_second_review": {
            "type": "boolean"
          },
          "review_state": {
            "type": "string"
          },
          "submitted_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "approved_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "submitted_screening_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_policy": {
            "type": "string"
          },
          "retention_years": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "closed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_trigger": {
            "type": "string"
          },
          "retention_event_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_event_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_event_actor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "organization_id",
          "environment",
          "screening_id",
          "monitor_id",
          "decision",
          "business_disposition",
          "review_started_at",
          "superseded_by_screening_id",
          "superseded_by_case_id",
          "created_at",
          "updated_at",
          "latest_screening_id",
          "counterparty_id",
          "assignee_id",
          "priority",
          "due_at",
          "escalated_at",
          "revision",
          "requires_second_review",
          "review_state",
          "submitted_by",
          "approved_by",
          "submitted_screening_id",
          "retention_policy",
          "retention_years",
          "retention_days",
          "closed_at",
          "retention_expires_at",
          "retention_trigger",
          "retention_event_at",
          "retention_event_reason",
          "retention_event_actor"
        ],
        "description": "Retained record for archive category case. Keys retain their stored snake_case spelling. Nullable columns are included with null values. Expired records use ArchiveExpiredRecord instead; holdings can omit expired reason text."
      },
      "ArchiveScreening": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "subject": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Subject"
              },
              {
                "type": "null"
              }
            ]
          },
          "request": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScreeningRequest"
              },
              {
                "type": "null"
              }
            ]
          },
          "result": {
            "$ref": "#/components/schemas/ScreeningResult"
          },
          "dataset_id": {
            "type": "string"
          },
          "retention": {
            "type": "string"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "counterparty_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "organization_id",
          "environment",
          "subject",
          "request",
          "result",
          "dataset_id",
          "retention",
          "expires_at",
          "retention_expires_at",
          "created_at",
          "counterparty_id"
        ],
        "description": "Retained record for archive category screenings. Keys retain their stored snake_case spelling. Nullable columns are included with null values. Expired records use ArchiveExpiredRecord instead; holdings can omit expired reason text."
      },
      "ArchiveDecision": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string"
          },
          "case_id": {
            "type": "string",
            "format": "uuid"
          },
          "actor_id": {
            "type": "string"
          },
          "decision": {
            "type": "string"
          },
          "business_disposition": {
            "type": "string"
          },
          "review_started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "applied_controls": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AppliedDecisionControls"
              },
              {
                "type": "null"
              }
            ]
          },
          "notes": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "organization_id",
          "case_id",
          "actor_id",
          "decision",
          "business_disposition",
          "review_started_at",
          "applied_controls",
          "notes",
          "created_at",
          "expires_at"
        ],
        "description": "Retained record for archive category decisions. Keys retain their stored snake_case spelling. Nullable columns are included with null values. Expired records use ArchiveExpiredRecord instead; holdings can omit expired reason text."
      },
      "ArchiveReview": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "case_id": {
            "type": "string",
            "format": "uuid"
          },
          "screening_id": {
            "type": "string",
            "format": "uuid"
          },
          "source_id": {
            "type": "string"
          },
          "record_id": {
            "type": "string"
          },
          "identity_decision": {
            "type": "string"
          },
          "business_decision": {
            "type": "string"
          },
          "rationale": {
            "type": "string"
          },
          "reusable_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "reused_rule_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "actor_id": {
            "type": "string"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "organization_id",
          "environment",
          "case_id",
          "screening_id",
          "source_id",
          "record_id",
          "identity_decision",
          "business_decision",
          "rationale",
          "reusable_until",
          "reused_rule_id",
          "actor_id",
          "updated_at",
          "expires_at"
        ],
        "description": "Retained record for archive category reviews. Keys retain their stored snake_case spelling. Nullable columns are included with null values. Expired records use ArchiveExpiredRecord instead; holdings can omit expired reason text."
      },
      "ArchiveReviewHistory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "case_id": {
            "type": "string",
            "format": "uuid"
          },
          "screening_id": {
            "type": "string",
            "format": "uuid"
          },
          "source_id": {
            "type": "string"
          },
          "record_id": {
            "type": "string"
          },
          "review": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "screeningId": {
                "type": "string",
                "format": "uuid"
              },
              "sourceId": {
                "type": "string"
              },
              "recordId": {
                "type": "string"
              },
              "identityDecision": {
                "type": "string",
                "enum": [
                  "unresolved",
                  "same",
                  "different"
                ]
              },
              "businessDecision": {
                "type": "string",
                "enum": [
                  "pending",
                  "allow",
                  "restrict",
                  "escalate"
                ]
              },
              "rationale": {
                "type": "string"
              },
              "reusableUntil": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reusedRuleId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "actorId": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time"
              },
              "reuse": {
                "type": "object",
                "properties": {
                  "caseId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "screeningId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "approvedBy": {
                    "type": "string"
                  },
                  "expiresAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "revokedAt": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "caseId",
                  "screeningId",
                  "approvedBy",
                  "expiresAt",
                  "revokedAt"
                ]
              }
            },
            "required": [
              "id",
              "screeningId",
              "sourceId",
              "recordId",
              "identityDecision",
              "businessDecision",
              "rationale",
              "reusableUntil",
              "reusedRuleId",
              "actorId",
              "updatedAt"
            ]
          },
          "replaced_by": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "organization_id",
          "environment",
          "case_id",
          "screening_id",
          "source_id",
          "record_id",
          "review",
          "replaced_by",
          "reason",
          "created_at",
          "expires_at"
        ],
        "description": "Retained record for archive category reviewHistory. Keys retain their stored snake_case spelling. Nullable columns are included with null values. Expired records use ArchiveExpiredRecord instead; holdings can omit expired reason text."
      },
      "ArchiveComment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "case_id": {
            "type": "string",
            "format": "uuid"
          },
          "screening_id": {
            "type": "string",
            "format": "uuid"
          },
          "body": {
            "type": "string"
          },
          "actor_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "organization_id",
          "environment",
          "case_id",
          "screening_id",
          "body",
          "actor_id",
          "created_at",
          "expires_at"
        ],
        "description": "Retained record for archive category comments. Keys retain their stored snake_case spelling. Nullable columns are included with null values. Expired records use ArchiveExpiredRecord instead; holdings can omit expired reason text."
      },
      "ArchiveAttachment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "case_id": {
            "type": "string",
            "format": "uuid"
          },
          "screening_id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "sha256": {
            "type": "string"
          },
          "size": {
            "type": "integer"
          },
          "actor_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "organization_id",
          "environment",
          "case_id",
          "screening_id",
          "title",
          "content",
          "sha256",
          "size",
          "actor_id",
          "created_at",
          "expires_at"
        ],
        "description": "Retained record for archive category attachments. Keys retain their stored snake_case spelling. Nullable columns are included with null values. Expired records use ArchiveExpiredRecord instead; holdings can omit expired reason text."
      },
      "ArchiveFinding": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "case_id": {
            "type": "string",
            "format": "uuid"
          },
          "screening_id": {
            "type": "string",
            "format": "uuid"
          },
          "source_id": {
            "type": "string"
          },
          "record_id": {
            "type": "string"
          },
          "field": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "source_reference": {
            "type": "string"
          },
          "verification": {
            "type": "string"
          },
          "comparison": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "actor_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "organization_id",
          "environment",
          "case_id",
          "screening_id",
          "source_id",
          "record_id",
          "field",
          "value",
          "source_reference",
          "verification",
          "comparison",
          "notes",
          "content",
          "actor_id",
          "created_at",
          "expires_at"
        ],
        "description": "Retained record for archive category findings. Keys retain their stored snake_case spelling. Nullable columns are included with null values. Expired records use ArchiveExpiredRecord instead; holdings can omit expired reason text."
      },
      "ArchiveCorrection": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "case_id": {
            "type": "string",
            "format": "uuid"
          },
          "screening_id": {
            "type": "string",
            "format": "uuid"
          },
          "result_screening_id": {
            "type": "string",
            "format": "uuid"
          },
          "result_case_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "before_subject": {
            "$ref": "#/components/schemas/Subject"
          },
          "after_subject": {
            "$ref": "#/components/schemas/Subject"
          },
          "reason": {
            "type": "string"
          },
          "actor_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "organization_id",
          "environment",
          "case_id",
          "screening_id",
          "result_screening_id",
          "result_case_id",
          "before_subject",
          "after_subject",
          "reason",
          "actor_id",
          "created_at",
          "expires_at"
        ],
        "description": "Retained record for archive category corrections. Keys retain their stored snake_case spelling. Nullable columns are included with null values. Expired records use ArchiveExpiredRecord instead; holdings can omit expired reason text."
      },
      "ArchiveCheck": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "case_id": {
            "type": "string",
            "format": "uuid"
          },
          "screening_id": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "evidence_reference": {
            "type": "string"
          },
          "rationale": {
            "type": "string"
          },
          "actor_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "organization_id",
          "environment",
          "case_id",
          "screening_id",
          "label",
          "status",
          "evidence_reference",
          "rationale",
          "actor_id",
          "created_at",
          "expires_at"
        ],
        "description": "Retained record for archive category checks. Keys retain their stored snake_case spelling. Nullable columns are included with null values. Expired records use ArchiveExpiredRecord instead; holdings can omit expired reason text."
      },
      "ArchiveDocument": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "case_id": {
            "type": "string",
            "format": "uuid"
          },
          "screening_id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "repository": {
            "type": "string"
          },
          "document_version": {
            "type": "string"
          },
          "sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "provenance": {
            "type": "string"
          },
          "verification": {
            "type": "string"
          },
          "verified_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "actor_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "organization_id",
          "environment",
          "case_id",
          "screening_id",
          "title",
          "url",
          "repository",
          "document_version",
          "sha256",
          "provenance",
          "verification",
          "verified_at",
          "actor_id",
          "created_at",
          "expires_at"
        ],
        "description": "Retained record for archive category documents. Keys retain their stored snake_case spelling. Nullable columns are included with null values. Expired records use ArchiveExpiredRecord instead; holdings can omit expired reason text."
      },
      "ArchiveHold": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "case_id": {
            "type": "string",
            "format": "uuid"
          },
          "screening_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "reason": {
            "type": "string"
          },
          "actor_id": {
            "type": "string"
          },
          "until_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "released_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "released_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "release_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "organization_id",
          "environment",
          "case_id",
          "screening_ids",
          "actor_id",
          "until_at",
          "released_at",
          "released_by",
          "created_at"
        ],
        "description": "Retained record for archive category holds. Keys retain their stored snake_case spelling. Nullable columns are included with null values. Expired records use ArchiveExpiredRecord instead; holdings can omit expired reason text."
      },
      "ArchiveReuseRule": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "counterparty_id": {
            "type": "string",
            "format": "uuid"
          },
          "case_id": {
            "type": "string",
            "format": "uuid"
          },
          "screening_id": {
            "type": "string",
            "format": "uuid"
          },
          "source_id": {
            "type": "string"
          },
          "record_id": {
            "type": "string"
          },
          "fingerprint": {
            "type": "string"
          },
          "rationale": {
            "type": "string"
          },
          "approved_by": {
            "type": "string"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "revoked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "revoked_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "revoked_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "challenged_case_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "affected_case_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "organization_id",
          "environment",
          "counterparty_id",
          "case_id",
          "screening_id",
          "source_id",
          "record_id",
          "fingerprint",
          "rationale",
          "approved_by",
          "expires_at",
          "revoked_at",
          "revoked_by",
          "revoked_reason",
          "challenged_case_id",
          "affected_case_ids",
          "created_at"
        ],
        "description": "Retained record for archive category reuseRules. Keys retain their stored snake_case spelling. Nullable columns are included with null values. Expired records use ArchiveExpiredRecord instead; holdings can omit expired reason text."
      },
      "ArchiveAuditEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string"
          },
          "actor_id": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "resource_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "details": {
            "description": "Retained category-specific JSON value; keys may vary by event or historical version."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "organization_id",
          "actor_id",
          "action",
          "resource_id",
          "details",
          "created_at",
          "expires_at"
        ],
        "description": "Retained record for archive category audit. Keys retain their stored snake_case spelling. Nullable columns are included with null values. Expired records use ArchiveExpiredRecord instead; holdings can omit expired reason text."
      },
      "ArchiveExpiredRecord": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "expired": {
            "const": true
          },
          "decision": {
            "type": "string"
          },
          "business_disposition": {
            "type": "string"
          },
          "actor_id": {
            "type": "string"
          },
          "applied_controls": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AppliedDecisionControls"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "created_at",
          "expires_at",
          "expired"
        ],
        "description": "Expired archive content is replaced by this metadata. Review records use their last updated time as created_at. Decisions additionally retain decision, business_disposition, actor_id and applied_controls. No subject or evidence is reconstructed."
      },
      "CaseSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "environment": {
            "type": "string"
          },
          "screening_id": {
            "type": "string",
            "format": "uuid"
          },
          "monitor_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "decision": {
            "type": "string"
          },
          "business_disposition": {
            "type": "string"
          },
          "review_started_at": {
            "type": "string",
            "format": "date-time"
          },
          "superseded_by_screening_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "superseded_by_case_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "latest_screening_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "counterparty_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "assignee_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "priority": {
            "type": "string"
          },
          "due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "escalated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "revision": {
            "type": "integer"
          },
          "requires_second_review": {
            "type": "boolean"
          },
          "review_state": {
            "type": "string"
          },
          "submitted_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "approved_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "submitted_screening_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_policy": {
            "type": "string"
          },
          "retention_years": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "closed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_trigger": {
            "type": "string"
          },
          "retention_event_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_event_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_event_actor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "subjectName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "entityType": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "origin": {
            "type": "string"
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "potential_match",
                  "no_match"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "matchCount": {
            "type": "integer",
            "minimum": 0
          },
          "evidenceAvailable": {
            "type": "boolean"
          },
          "retention": {
            "type": "string",
            "enum": [
              "standard",
              "minimal"
            ]
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "environment",
          "screening_id",
          "monitor_id",
          "decision",
          "business_disposition",
          "review_started_at",
          "superseded_by_screening_id",
          "superseded_by_case_id",
          "created_at",
          "updated_at",
          "latest_screening_id",
          "counterparty_id",
          "assignee_id",
          "priority",
          "due_at",
          "escalated_at",
          "revision",
          "requires_second_review",
          "review_state",
          "submitted_by",
          "approved_by",
          "submitted_screening_id",
          "retention_policy",
          "retention_years",
          "retention_days",
          "closed_at",
          "retention_expires_at",
          "retention_trigger",
          "retention_event_at",
          "retention_event_reason",
          "retention_event_actor",
          "subjectName",
          "entityType",
          "origin",
          "status",
          "matchCount",
          "evidenceAvailable",
          "retention",
          "expiresAt"
        ],
        "description": "Case queue projection including current linked screening metadata, review ownership, supersession and retention state. Nullable keys remain present. status may be null after evidence expires; inspect evidenceAvailable."
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "sk_test_... or sk_live_..."
      }
    }
  },
  "x-docs-revision": "d6483686a13b3002d3f86eaeeb44f206ad3f14a52fab6008f330d267761461a6"
}
