---
title: "Get policy version history"
method: GET
path: "/api/v1/system-policies/{id}/versions"
tags: ["System Policies"]
deprecated: true
---

# Get policy version history

`GET /api/v1/system-policies/{id}/versions`

## Request

- Base URL: `https://agent.getaxonflow.com`
- URL: `https://agent.getaxonflow.com/api/v1/system-policies/{id}/versions`
- Auth: none declared
- TypeScript: <https://skmtc.dev/getaxonflow/apis/axonflow-agent-api/docs/api/v1/system-policies/:id/versions/get.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

Returns the version history for a policy.

**Edition limits:**
- Community: Last 5 versions
- Enterprise: Unlimited history

## Path parameters

- `id` string, uuid, required

## Headers

- `Authorization` string

## Response `200`

Version history

- PolicyVersionsResponse: Version history for a policy
  - `policy_id` string: Policy UUID
  - `versions` PolicyVersion[]
    - `id` string, uuid
    - `policy_id` string
    - `version` integer
    - `snapshot` object: Complete policy state at this version
    - `change_type` 'created' | 'updated' | 'deleted' | 'enabled' | 'disabled'
    - `change_summary` string
    - `changed_by` string
    - `changed_at` string, date-time
  - `count` integer: Number of versions returned

## Other responses

- `404`: Policy not found

---

[API](https://skmtc.dev/getaxonflow/apis/axonflow-agent-api.md) - [All operations](https://skmtc.dev/getaxonflow/apis/axonflow-agent-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getaxonflow/apis/axonflow-agent-api/revisions/34d30fcb7fa1?raw)
