---
title: "Read Rule Versions"
method: GET
path: "/admin/notifications/rules/{rule_key}/versions"
tags: ["admin", "notification-rules"]
---

# Read Rule Versions

`GET /admin/notifications/rules/{rule_key}/versions`

## Request

- Base URL: `https://api-docs.upsmith.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.upsmith.com/admin/notifications/rules/{rule_key}/versions`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

## Path parameters

- `rule_key` string, required

## Query parameters

- `organization_id` string, required

## Headers

- `organization-id` string, nullable
- `timezone` string
- `x-user-id` string, nullable
- `x-actor-email` string, nullable
- `x-request-source` string, nullable
- `x-operation-id` string, nullable
- `x-commit-message` string, nullable
- `x-confirmation-id` string, nullable
- `x-chat-id` string, nullable

## Response `200`

Successful Response

- RuleAdminVersionResponse[]
  - `activated_by_user_id` string, nullable
  - `activated_at` string, date-time, nullable
  - `deactivated_by_user_id` string, nullable
  - `deactivated_at` string, date-time, nullable
  - `version` integer, required
  - `is_active` boolean, required
  - `created_by_user_id` string, nullable, required
  - `created_at` string, date-time, required
  - `maintenance` RuleMaintenanceEntry[]
    - `reason` string, required
    - `user_id` string, required
    - `user_name` string, nullable
    - `at` string, date-time, nullable
    - `removed` integer
    - `deactivated` boolean
    - `restored_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

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