latestOpenAPI 3.1.02026-08-236994571.1 MB

79928a3d37d3

Policies

Resolve Policies For Context

Resolve which policies and guardrails apply for a given context.

Use this endpoint to debug "what guardrails would apply to a request with this team/key/model/tags combination?"

Example Request:

curl -X POST "http://localhost:4000/policies/resolve" \
    -H "Authorization: Bearer <your_api_key>" \
    -H "Content-Type: application/json" \
    -d '{
        "tags": ["healthcare"],
        "model": "gpt-4"
    }'
post/policies/resolve

Query parameters

force_syncboolean

Force a DB sync before resolving. Default uses in-memory cache.

Force a DB sync before resolving. Default uses in-memory cache.

Request body

team_aliasstring nullable

Team alias to resolve for.

key_aliasstring nullable

Key alias to resolve for.

modelstring nullable

Model name to resolve for.

tagsstring[] nullable

Tags to resolve for.

Response

Successful Response

effective_guardrailsstring[]

Final list of guardrails that would be applied.