---
title: "Get static policy by ID"
method: GET
path: "/api/v1/static-policies/{id}"
tags: ["Static Policies"]
deprecated: true
---

# Get static policy by ID

`GET /api/v1/static-policies/{id}`

## Request

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

> **Deprecated.**

Returns a single static policy by its UUID.

The policy ID is the `id` field from the static_policies table,
not the `policy_id` (human-readable identifier like 'sql_injection_union').

## Path parameters

- `id` string, uuid, required

## Headers

- `Authorization` string

## Response `200`

Static policy details

- StaticPolicy: A static policy with three-tier hierarchy support (v2.0.0). System policies are immutable; Organization/Tenant policies can be customized.
  - `id` string, uuid, required: Unique policy UUID
  - `policy_id` string, required: Human-readable policy identifier (e.g., sys_sqli_union_select)
  - `name` string, required: Display name of the policy
  - `description` string: Detailed policy description
  - `category` 'security-sqli' | 'security-admin' | 'pii-global' | 'pii-us' | 'pii-eu' | 'pii-india' | 'custom', required: Policy category (v2.0.0 semantic naming)
  - `tier` 'system' | 'organization' | 'tenant': Policy tier in the hierarchy
  - `pattern` string, required: Regex pattern for detection
  - `severity` 'critical' | 'high' | 'medium' | 'low', required: Policy severity level
  - `action` 'block' | 'require_approval' | 'redact' | 'warn' | 'log', required: Action to take when pattern matches. require_approval triggers HITL queue for human oversight.
  - `enabled` boolean, required: Whether policy is active
  - `priority` integer: Evaluation priority (higher = evaluated first)
  - `version` integer: Policy version number
  - `has_override` boolean: Whether this policy has an override (Enterprise only)
  - `override` PolicyOverride: Override configuration for system policies (Enterprise only)
    - `id` string: Override identifier
    - `policy_id` string: ID of the policy being overridden
    - `policy_type` 'static' | 'dynamic': Type of policy being overridden
    - `tenant_id` string: Tenant ID for tenant-level overrides
    - `enabled_override` boolean: Override enabled status (null = no override)
    - `action_override` 'block' | 'require_approval' | 'redact' | 'warn' | 'log': Override action (must be more restrictive). require_approval triggers HITL queue.
    - `override_reason` string: Reason for the override (required for audit)
    - `expires_at` string, date-time: When the override automatically expires
    - `created_by` string: User who created the override
    - `created_at` string, date-time
    - `updated_by` string: User who last updated the override
    - `updated_at` string, date-time
  - `tenant_id` string, required: Tenant ID (for tenant-tier policies)
  - `created_at` string, date-time, required: When policy was created
  - `updated_at` string, date-time, required: When policy was last modified

## Other responses

- `400`: Invalid request body or parameters
- `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)
