You can pass a ruleset inline on everyDocumentation Index
Fetch the complete documentation index at: https://code4source.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
/v1/evaluate call, or
save it once to the catalog and reference it by name@version.
When to use the catalog
- Shared across applications — same ruleset called from multiple services or environments.
- Auditable — saved versions are immutable, so a stored verdict
can always be reproduced from
(name, version)plus the input. - Cleaner requests — your client sends a short id instead of the full document.
Create a ruleset
version is an integer. Omit it to let the API assign the next free
version.
Versions are immutable: re-POSTing the same (name, version) with
a different body returns 409 RULESET_ALREADY_EXISTS. Bump the
version to publish changes.
Reference in an evaluate call
name@version resolves to a pinned version. name alone resolves to
the latest version.
List and inspect
Versioning convention
Versions are integers — bump them on every change. We recommend:- Treat the catalog as append-only.
- Never repurpose a
(name, version)pair. - Add
descriptionto each version to capture the policy intent.