---
title: "GET /api/automation-rules/fields"
method: GET
path: "/api/automation-rules/fields"
tags: ["Automation Rules"]
---

# GET /api/automation-rules/fields

`GET /api/automation-rules/fields`

The condition-field catalog: which fields a rule may filter on, how they are grouped, and which operators each one allows. Seeded data — the condition builder renders itself from this, so adding a field never needs a frontend release.

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required
    - `fields` object[], required
      - `fieldKey` string, required
      - `fieldGroup` string, required
      - `label` string, required
      - `resourceType` string, required
      - `dataType` 'text' | 'text[]' | 'uuid' | 'numeric' | 'date', required
      - `operators` string[], required
      - `referenceSource` 'companies' | 'style_properties:brands' | 'style_properties:seasons' | 'materials' | 'order_tags' | 'order_types' | 'order_line_units', required
      - `sortOrder` integer, required

## Other responses

- `401` — Default Response
- `403` — Default Response

## Changes

> 21 revisions in range; 1 not diffed.

- **2026-08-24** `60f934498ae2` — 1 info
  - added the required property `data/fields/items/referenceSource` to the response with the `200` status
- **2026-08-12** `ac2cf3c5eae2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/retraced/apis/api-reference/changes/api/automation-rules/fields/get.md)

---

[API](https://skmtc.dev/retraced/apis/api-reference.md) · [All operations](https://skmtc.dev/retraced/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/retraced/api-reference/revisions/1df37791a1bb/schema)
