Skip to content

Feature Request: Expose available list condition types via API (GET /lists/condition_options) #1446

@Benechi

Description

@Benechi

Problem

There is no endpoint to discover what filter condition types, comparison operators, or settings options are valid when building list rules. The schema exists in the UI but is entirely undocumented and inaccessible via the API.

Proposed Solution

Add a read-only GET /lists/condition_options (or /list_rule_schema) endpoint returning all available definition_class types, their supported comparison operators, and valid settings structures.

Why It Matters

  • Building tools that programmatically create or validate lists is impossible without knowing what filter conditions are valid
  • When PCO adds new filter types (new app integrations, new field types), there is no way to discover them via API — they can only be noticed manually in the UI
  • This is a prerequisite for AI-assisted list creation — a model needs to know what's structurally possible before it can suggest or construct valid filter logic. PCO's own beta AI list builder in the UI is constrained by the same missing schema exposure on the client side

Current Workaround

Reverse-engineer the schema by reading conditions off existing lists — which only surfaces types already in use, misses comparisons not yet tried, reveals nothing about valid settings structures, and is completely blind to new filter types added in future PCO updates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions