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

# Get YARA rule

`GET /yara/{ruleName}`

## Request

- Base URL: `https://sandbox.recordedfuture.com/api/v0`
- URL: `https://sandbox.recordedfuture.com/api/v0/yara/{ruleName}`
- Auth: API key in header `Authorization`

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.dev/recordedfuture/apis/recorded-future-sandbox-api-secopsti.md) - [All operations](https://skmtc.dev/recordedfuture/apis/recorded-future-sandbox-api-secopsti/llms.txt) - [OpenAPI document](https://skmtc.dev/recordedfuture/apis/recorded-future-sandbox-api-secopsti/revisions/39ea918b1dca?raw)
