---
title: "Make existing workspace documents frameworks"
method: POST
path: "/v1/compliance/frameworks/from-documents"
tags: ["Compliance"]
---

# Make existing workspace documents frameworks

`POST /v1/compliance/frameworks/from-documents`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/compliance/frameworks/from-documents`
- Auth: HTTP bearer

Tags each document as a framework and starts reading its requirements, as an upload on the Frameworks tab would. A document that is already a framework is read again. Rule generation follows a completed reading on its own. With the `external` decider, each reading waits as a task for the workspace's agent. Frameworks start OFF.

## Request body

- object
  - `document_ids` string[], required

## Response `201`

One framework view per document, in the order given (duplicates removed).

- object
  - `data` ComplianceFramework[]
    - `document_id` string, uuid
    - `status` 'pending' | 'processing' | 'waiting' | 'completed' | 'error': The reading of the framework's requirements. `waiting`: the reading waits for the workspace's own agent (decider `external`). A `processing` row older than the staleness limit reads `error`.
    - `active` boolean: Whether the framework's rules are in force (ON). Off by default.
    - `framework_name` string, nullable
    - `rule_count` integer: Items extracted from the framework (its captured fields), not the stored rules.
    - `error` string, nullable
    - `extracted_at` string, date-time, nullable
    - `updated_at` string, date-time
    - `rules_status` 'none' | 'generating' | 'waiting' | 'ready' | 'error': Rule generation: `waiting` means it waits for the workspace's own agent.
    - `rules_error` string, nullable
    - `rules_decided_by` string, nullable: The external agent's label when it derived the rules.
    - `decided_by` string, nullable: The external agent's label when it read the requirements.
    - `generated_rule_count` integer: Rules currently stored (generated, then edited or deleted by people).
    - `summary` string, nullable: One or two sentences describing the document. Null when the view is returned after a change.

## Other responses

- `400`: The request is invalid.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.

## Changes

- **2026-10-28** `0a485a46163e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/compliance/frameworks/from-documents/post.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
