---
title: "Get a rule set"
method: GET
path: "/v1/programs/{program_id}/rule-sets/{rule_set_id}"
tags: ["Rule Sets"]
---

# Get a rule set

`GET /v1/programs/{program_id}/rule-sets/{rule_set_id}`

## Request

- Base URL: `https://api.scrip.dev`
- URL: `https://api.scrip.dev/v1/programs/{program_id}/rule-sets/{rule_set_id}`
- Auth: HTTP bearer

Retrieve a program-owned rule set by its stable ID. The key is immutable, and the resource has no delete or archive operation.

## Path parameters

- `program_id` string, uuid, required
- `rule_set_id` string, uuid, required

## Response `200`

Rule-set details

- RuleSetResponse: A rule set: an ordered group of rules in a program.
  - `created_at` string, date-time: When this rule set was created.
  - `id` string, uuid: The id of the rule set. Use it in `rule_set_id` fields and paths.
  - `key` string: Immutable program-scoped key.
  - `name` string: Operator-facing display name.
  - `order` integer: Execution position among participating sets; lower executes first. This does not control participation, stacking, replacement, or suppression.
  - `program_id` string, uuid: Program that owns this rule set.
  - `rule_configuration_version` integer: Resulting program rule-configuration revision. Present on mutation responses.
  - `updated_at` string, date-time: When this rule set was last modified.

## Other responses

- `400`: Invalid ID (code: validation_error)
- `401`: The API key is missing or not valid. See [Authentication](https://docs.scrip.dev/authentication).
- `404`: Rule set not found in program (code: rule_set_not_found)
- `429`: Too many requests. Wait the number of seconds in the `Retry-After` header, then retry. See [Limits and durations](https://docs.scrip.dev/limits#rate-limits).
- `500`: Something failed on Scrip's side. Retry the request, and quote `request_id` if it keeps failing. [Errors](https://docs.scrip.dev/errors) lists every code, and the [API introduction](https://docs.scrip.dev/api-reference/introduction) describes the error format.

---

[API](https://skmtc.dev/scrip/apis/scrip-api.md) · [All operations](https://skmtc.dev/scrip/apis/scrip-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scrip/apis/scrip-api/revisions/c52d35da8d97?raw)
