---
title: "Get YARA rule"
method: GET
path: "/yara/{ruleName}"
---

# Get YARA rule

`GET /yara/{ruleName}`

Retrieve a YARA rule's source code, compilation status, and any warnings.

## Path parameters

- `ruleName` string, required

## Response `200`

YARA rule content.

- object
  - `name` string — Rule filename
  - `rule` string — YARA rule source content
  - `warnings` string[] — Compilation warnings (e.g., missing metadata fields like triage_score, description)

## Other responses

- `404` — Rule not found.

---

[API](https://skmtc.net/recordedfuture/apis/alert-api.md) · [All operations](https://skmtc.net/recordedfuture/apis/alert-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/recordedfuture/alert-api/versions/c8c2f68d8b60/schema)
