curl -sS -X POST "https://app.blekline.com/api/policy/simulate" \
  -H "Content-Type: application/json" \
  -H "x-blekline-workspace-token: $BLEKLINE_WORKSPACE_TOKEN" \
  -d '{"prompt":"Summarize customer tickets","platform":"docs"}'

Simulate Policy

Evaluate a prompt against redaction policy without sending it to a model.

Policy reviewMask
POST/api/policy/simulate

Parameters

NameInTypeDescription
x-blekline-workspace-tokenRequiredheaderstringScoped workspace token (blw_…) or session-authenticated browser call from the console.
promptRequiredbodystringText to evaluate.
platformbodystringCaller label for audit metadata.

Responses

StatusMeaning
200Simulation result
403Blocked by policy