API
Public registry APIs expose rule discovery, rule fetch, and pack fetch workflows. Rule publishing is disabled during the initial launch.
Fetch a rule
greprules fetch cve-2024-27102 --engine opengrepopengrep --config https://api.greprules.io/api/rules/cve-2024-27102.yaml .API surface
| Method | Path | Purpose |
|---|---|---|
| GET | /api/rules | Search public rules with filters and sorting. |
| GET | /api/rules/{id} | Fetch rule metadata, trust signals, references, and YAML. |
| GET | /api/rules/{id}.yaml | Fetch a public rule as YAML. |
| GET | /api/packs/{slug}.tar.gz | Fetch a rule pack tarball. |