AxonFlow System Policies API

System policy management (ADR-019), served at `/api/v1/system-policies`. Pattern-based enforcement rules for SQL injection detection, PII detection and similar checks, resolved across the system, organization and tenant tiers. **v11: writes to this family are refused by the legacy policy freeze.** `migrations/core/172` makes `static_policies` read-only to the application roles, and create, update, delete and the enabled toggle write that table. On a deployment whose connection is an application role (the agent's default) those writes are refused with `409 LEGACY_POLICY_WRITE_FROZEN`, the answer the orchestrator gives for its own policy writes (see `policy-api.yaml`). Its `error.code` is that string, where the other errors on these routes carry the numeric status. Author policy through the typed authoring route, `/api/v1/typed-policies` in `orchestrator-api.yaml`. Reads, the pattern test, and the per-policy overrides - which are stored in their own table - are unaffected. A deployment whose connection may still write the table (the database owner; a property of the connection, not of `AXONFLOW_DB_USE_APP_ROLE` alone) is not bound by the revoke.

GitHub OpenAPI

Operations 14

GET /api/v1/policy-overrides List policy overrides (canonical alias) #
GET /api/v1/system-policies List static policies #
POST /api/v1/system-policies Create static policy #
GET /api/v1/system-policies/effective Get effective policies #
POST /api/v1/system-policies/test Test regex pattern #
GET /api/v1/system-policies/overrides List policy overrides #
GET /api/v1/system-policies/{id} Get static policy by ID #
PUT /api/v1/system-policies/{id} Update static policy #
DELETE /api/v1/system-policies/{id} Delete static policy #
PATCH /api/v1/system-policies/{id} Toggle policy enabled status #
GET /api/v1/system-policies/{id}/versions Get policy version history #
GET /api/v1/system-policies/{id}/override Get active override for a policy #
POST /api/v1/system-policies/{id}/override Create policy override #
DELETE /api/v1/system-policies/{id}/override Delete policy override #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/axonflow:axonflow-system-policies-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

axonflow-system-policies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AxonFlow Agent System Policies API
  description: REST API for the AxonFlow Agent service - Authentication, Authorization, and Static Policy Enforcement Gateway.
  version: 11.1.0
  contact:
    name: AxonFlow Support
    url: https://getaxonflow.com/support
  license:
    name: Business Source License 1.1
    url: https://github.com/getaxonflow/axonflow/blob/main/LICENSE
servers:
- url: https://agent.getaxonflow.com
  description: Production (SaaS)
- url: https://axonflow.example.com
  description: Self-hosted deployment (agent single entry point, ADR-024)
- url: http://localhost:8080
  description: Local Development
tags:


# --- truncated at 32 KB (47 KB total) ---
# Full source: https://artifacts.apis.io/axonflow/openapi/axonflow-system-policies-api-openapi.yml