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.
POST
/api/policy/simulateParameters
| Name | In | Type | Description |
|---|---|---|---|
x-blekline-workspace-tokenRequired | header | string | Scoped workspace token (blw_…) or session-authenticated browser call from the console. |
promptRequired | body | string | Text to evaluate. |
platform | body | string | Caller label for audit metadata. |
Responses
| Status | Meaning |
|---|---|
200 | Simulation result |
403 | Blocked by policy |