---
title: "The rules of a framework"
method: GET
path: "/v1/compliance/frameworks/{documentId}/rules"
tags: ["Compliance"]
---

# The rules of a framework

`GET /v1/compliance/frameworks/{documentId}/rules`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/compliance/frameworks/{documentId}/rules`
- Auth: HTTP bearer

The framework's stored rules in order. These are the editable rules derived from the framework's text, not the fields captured from it. A document without a framework row returns an empty list.

## Path parameters

- `documentId` string, uuid, required

## Response `200`

The framework's rules.

- object
  - `data` ComplianceRule[]
    - `id` string, uuid
    - `document_id` string, uuid: The framework document.
    - `position` integer
    - `rule_code` string, nullable
    - `text` string
    - `obligation` 'must' | 'should' | 'may'
    - `section` string, nullable
    - `applies_to` string, nullable
    - `condition` string, nullable
    - `threshold` string, nullable
    - `testable` boolean
    - `source_quote` string, nullable: The framework's own words the rule rests on.
    - `source_fields` string[], nullable: Names of the captured fields the rule comes from; null when unknown.
    - `origin` 'ai' | 'edited' | 'manual': `ai` as generated, `edited` once a person changed it, `manual` when a person wrote it.
    - `updated_at` string, date-time

## Other responses

- `400`: The request is invalid.

## Changes

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

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/compliance/frameworks/:documentId/rules/get.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)
