# List rules

Source: https://watership.ca/api-docs/docs/reference/api/rules/list-rules

## GET /v1/rules

**List rules**

Lists the rules in the style guide, the UX writing guide, and the slop guard, in guide order. Filter by guide, tier, check type, or whether the automated checks cover the rule. Use `q` to search ids, names, and rule text.

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `limit` | query | integer | no | The most items to return in one page. |
| `cursor` | query | string | no | The `next_cursor` from the previous page. Leave it out for the first page. |
| `guide` | query | one of `style-guide`, `ux-writing`, `slop-guard` | no | Only rules from this guide. |
| `tier` | query | one of `never`, `avoid`, `prefer` | no | Only rules of this tier. |
| `check` | query | one of `mechanical`, `judgment` | no | Only rules of this check type. |
| `automated` | query | boolean | no | `true` for only the rules the automated checks cover, `false` for only the rules they don’t. |
| `q` | query | string | no | Words to look for in rule ids, names, and text. Every word must match. |

### Responses

- `200`: One page of rules.
- `400`: The request is malformed or a field fails validation. The `type` tells you which.
- `401`: The `Authorization` header is missing, or the key isn’t valid.
- `429`: This API key has sent more than 120 requests in the current minute.
- `500`: Something failed on the server. Retry with backoff.

Example `200` response:

```json
{
  "data": [
    {
      "id": "num-no-slash-dates",
      "name": "No slash dates",
      "guide": "style-guide",
      "section": "numbers-dates-and-units",
      "tier": "never",
      "check": "mechanical",
      "automated": true,
      "link": "https://watership.ca/style-guide/numbers-dates-and-units/#num-no-slash-dates"
    },
    {
      "id": "link-descriptive-text",
      "name": "Descriptive link text",
      "guide": "style-guide",
      "section": "links-and-cross-references",
      "tier": "never",
      "check": "mechanical",
      "automated": true,
      "link": "https://watership.ca/style-guide/links-and-cross-references/#link-descriptive-text"
    }
  ],
  "has_more": true,
  "next_cursor": "cnVsZTpsaW5rLWRlc2NyaXB0aXZlLXRleHQ"
}
```