---
title: "Fetch a single Story Rule"
method: GET
path: "/rules/{id}"
tags: ["rules"]
---

# Fetch a single Story Rule

`GET /rules/{id}`

## Request

- Base URL: `https://aistoryhub.co/api/v1`
- URL: `https://aistoryhub.co/api/v1/rules/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required

## Response `200`

The rule.

- Rule
  - `id` string, uuid
  - `name` string
  - `instructions` string
  - `special_instructions` string, nullable
  - `context` string, nullable
  - `description` string, nullable
  - `content_rating` 'general' | 'adult'
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable

## Other responses

- `401`: Missing, malformed, invalid, revoked, or expired token.
- `403`: The token lacks the scope this endpoint requires.
- `404`: The resource does not exist or you do not own it.
- `429`: Too many requests. Retry after the delay in the `Retry-After` header.

---

[API](https://skmtc.dev/aistoryhub/apis/aistoryhub-api.md) · [All operations](https://skmtc.dev/aistoryhub/apis/aistoryhub-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aistoryhub/apis/aistoryhub-api/revisions/0cfd2c14ae12?raw)
