Skip to Content
Docs

Add a chunk text's hash to the source's owner allowlist, or remove it

POST
/api/sources/{source_id}/injection_review

Mark a flagged chunk safe from prompt-injection screening for agents using this source, or undo that. Needs chunk-edit access. Keyed by the chunk text, so editing the chunk drops the mark. At most 1000 chunks per source. Returns {success, content_hash, allowed, count}. Args: source_id: The source.

Returns: Response: {"success", "content_hash", "allowed", "count"}, a 400 for a bad body or a full allowlist, or the access error.

Personal access token scope: sources:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Path Parameters

source_id*string

Request Body

application/json
  1. body
content_hash*string

The chunk's injection.content_hash (sha256 of its text)

decision*string

allow marks the chunk safe from prompt-injection screening; clear undoes it

Value in"allow""clear"

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/sources/string/injection_review' \  -H 'Content-Type: application/json' \  -d '{  "content_hash": "string",  "decision": "allow"}'
Example Response200
Empty