---
title: "Generate Rules"
method: GET
path: "/v1/rules"
tags: ["Memory"]
---

# Generate Rules

`GET /v1/rules`

## Request

- Base URL: `https://mengram.io` (the document declares no server; this is the origin it was published from)
- URL: `https://mengram.io/v1/rules`
- Auth: none declared. Required headers: `authorization`

Generate a CLAUDE.md, .cursorrules, or .windsurfrules file from memory.
Returns structured project rules and conventions extracted from all memory types.

## Query parameters

- `format` string
- `force` boolean
- `sub_user_id` string

## Headers

- `authorization` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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