---
title: "Export policies"
method: GET
path: "/api/v1/policies/export"
tags: ["Dynamic Policies"]
deprecated: true
---

# Export policies

`GET /api/v1/policies/export`

## Request

- Base URL: `https://orchestrator.getaxonflow.com`
- URL: `https://orchestrator.getaxonflow.com/api/v1/policies/export`
- Auth: none declared. Required headers: `X-Tenant-ID`
- TypeScript: <https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/docs/api/v1/policies/export/get.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

Export all policies in JSON or YAML format for backup or migration

## Query parameters

- `format` 'json' | 'yaml'
- `type` 'static' | 'dynamic' | 'all'

## Headers

- `X-Tenant-ID` string, required

## Response `200`

Exported policies

- object
  - `version` string
  - `exported_at` string, date-time
  - `policies` Policy[]
    - `id` string, uuid
    - `policy_id` string: Human-readable identifier
    - `name` string
    - `description` string
    - `type` 'static' | 'dynamic'
    - `category` string
    - `tier` 'system' | 'organization' | 'tenant'
    - `pattern` string: Regex pattern (for static policies)
    - `action` 'block' | 'require_approval' | 'redact' | 'warn' | 'log'
    - `severity` 'critical' | 'high' | 'medium' | 'low'
    - `priority` integer
    - `enabled` boolean
    - `conditions` object[]: Conditions (for dynamic policies)
    - `actions` object[]: Actions (for dynamic policies)
    - `version` integer
    - `tenant_id` string
    - `organization_id` string: The organisation that owns this policy. This is the current wire field name and it is not deprecated: it is unrelated to a database column of the same name that was retired in an earlier release. The two share a name and nothing else.
    - `created_by` string
    - `created_at` string, date-time
    - `updated_by` string
    - `updated_at` string, date-time

## Other responses

- `401`: Unauthorized - missing or invalid organization scope (coded envelope)

---

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