Skip to main content
GET
Get the complete rule configuration
Returns one consistent program snapshot containing every rule set and its ACTIVE and SUSPENDED rules. Archived rules are excluded. Pass the returned rule_configuration_version as expected_rule_configuration_version on move, reorder, and rollback requests (or base_rule_configuration_version on preview); a stale value rejects the write. This endpoint is safer for planning than combining separate list calls.
See Read the current configuration for planning changes from one version.

Authorizations

Authorization
string
header
default:sk_...
required

Send your API key as Authorization: Bearer <key>.

Path Parameters

program_id
string<uuid>
required

The program's id.

Response

The program's rule sets and rules, and the current rule_configuration_version

A program's complete rule configuration and its version.

program_id
string<uuid>

Program whose configuration was read.

Example:

"8f14e45f-ceea-4e70-9df8-2a7d1b3c9f01"

rule_configuration_version
integer

Program rule-configuration version. Pass it to version-guarded writes to reject conflicting edits.

Example:

4

rule_sets
object[]

Rule sets in execution order, each with its ACTIVE and SUSPENDED rules in local order.