POST /v1/documents/submit (Company Key) — multipart/form-data
| Field | Type | Required | Description |
|---|---|---|---|
files | File[] | Yes | First = parent doc, rest = appendices |
businessEntityId | string | XOR | Creates new compliance review |
complianceReviewId | string | XOR | Appends to existing review |
complianceFrameworkId | string | With businessEntityId | Framework to use (from GET /v1/compliance-frameworks) |
controlId | string | With businessEntityId | Control to use (from GET /v1/compliance-frameworks, nested in framework) |
selectedControlItemIds | JSON string | No | Subset of control items to evaluate |
selectedControlClusterIds | string | Optional | JSON array of cluster ULIDs. All non-obsolete items within those clusters are included. Unioned with selectedControlItemIds if both are provided. |
auditLanguageId | string | No | Language for analysis output |
isConsolidated | bool | No | Default: false |
selectedControlClusterIds, selectedControlItemIds, or both to narrow the analysis scope:
- Both provided → union of cluster items and individual items
- Clusters only → all non-obsolete items within those clusters
- Items only → only those specific items
- Neither → all non-obsolete items across the entire control (default)
422.
Response (200):
- Max 50MB per file
- Supported formats: PDF, DOCX, XLSX, PPTX
-
businessEntityIdandcomplianceReviewIdare mutually exclusive — provide exactly one