For AI agents: the documentation index is at /docs/aidbox/llms.txt. A Markdown version of this page is available at /docs/aidbox/api/rest-api/other/matcho.md or by requesting it with the Accept: text/markdown header.
Aidbox Docs

$matcho

Matcho DSL is used to define rules for AccessPolicy resource.

Definition

Matcho DSL syntax is described here.

Debug endpoint

POST /$matcho is a REST endpoint to test matcho engine, which is used in AccessPolicy and Subscriptions.

POST /$matcho

matcho: {'a': 1}
resource: {'a': 2}
context: { user: 'u-1' }

-- 

matcho: {a: 1}
resource: {a: 2}
result:
- expected: 1
  but: 2
  path: [a]

Last updated: