Compile a Watch DSL script and persist it as an instruction for transaction evaluation.
curl -X POST http://localhost:8081/compile-and-save-instruction \
-H "Content-Type: application/json" \
-d '{
"script": "rule HighValueTransaction {\n description \"Review any transaction above $10,000\"\n when amount > 10000\n then review\n score 0.5\n reason \"Amount exceeds threshold\"\n}"
}'
{
"id": 1,
"name": "HighValueTransaction",
"text": "rule HighValueTransaction {\n description \"Review any transaction above $10,000\"\n when amount > 10000\n then review\n score 0.5\n reason \"Amount exceeds threshold\"\n}",
"description": "Review any transaction above $10,000",
"dsl_json": "{\"name\":\"HighValueTransaction\",\"when\":[...],\"then\":{...}}",
"created_at": "2026-03-16T10:00:00Z",
"updated_at": "2026-03-16T10:00:00Z"
}
Documentation Index
Fetch the complete documentation index at: https://docs.blnkfinance.com/llms.txt
Use this file to discover all available pages before exploring further.
curl -X POST http://localhost:8081/compile-and-save-instruction \
-H "Content-Type: application/json" \
-d '{
"script": "rule HighValueTransaction {\n description \"Review any transaction above $10,000\"\n when amount > 10000\n then review\n score 0.5\n reason \"Amount exceeds threshold\"\n}"
}'
{
"id": 1,
"name": "HighValueTransaction",
"text": "rule HighValueTransaction {\n description \"Review any transaction above $10,000\"\n when amount > 10000\n then review\n score 0.5\n reason \"Amount exceeds threshold\"\n}",
"description": "Review any transaction above $10,000",
"dsl_json": "{\"name\":\"HighValueTransaction\",\"when\":[...],\"then\":{...}}",
"created_at": "2026-03-16T10:00:00Z",
"updated_at": "2026-03-16T10:00:00Z"
}
Was this page helpful?
curl -X POST http://localhost:8081/compile-and-save-instruction \
-H "Content-Type: application/json" \
-d '{
"script": "rule HighValueTransaction {\n description \"Review any transaction above $10,000\"\n when amount > 10000\n then review\n score 0.5\n reason \"Amount exceeds threshold\"\n}"
}'
{
"id": 1,
"name": "HighValueTransaction",
"text": "rule HighValueTransaction {\n description \"Review any transaction above $10,000\"\n when amount > 10000\n then review\n score 0.5\n reason \"Amount exceeds threshold\"\n}",
"description": "Review any transaction above $10,000",
"dsl_json": "{\"name\":\"HighValueTransaction\",\"when\":[...],\"then\":{...}}",
"created_at": "2026-03-16T10:00:00Z",
"updated_at": "2026-03-16T10:00:00Z"
}