---
title: "The workspace's rules"
method: GET
path: "/v1/doc-gen/rules"
tags: ["Document Generation"]
---

# The workspace's rules

`GET /v1/doc-gen/rules`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/doc-gen/rules`
- Auth: HTTP bearer

Rules derive one value from a row, the entered values and the day; a field with a `rule` source reads one by name.

## Response `200`

Rules ordered by name.

- object
  - `data` DocGenRule[]
    - `name` string, required
    - `description` string
    - `definition` object, required: The rule, a JSON object whose shape depends on the rule kind (seven kinds). An unreadable definition yields no value when the rule is evaluated.

## Changes

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

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/doc-gen/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)
