policy_engine
Resolve Policies For Context
Changed onResolve 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
Request
- Base URLhttps://api.flock.io (the document declares no server; this is the origin it was published from)
- URLhttps://api.flock.io/policies/resolve
- AuthAPI key in header x-litellm-api-key
Query parameters
force_syncboolean
Force a DB sync before resolving. Default uses in-memory cache.
Request body
Response
Successful Response
Changes
- info
api tag
policy_engineadded - info
api tag
Policiesremoved
- info
- info
api operation id
resolve_policies_for_context_policies_resolve_post_2removed and replaced withresolve_policies_for_context_policies_resolve_post - info
api tag
Policiesadded - info
api tag
policy_resolveremoved
- info