> ## Documentation index
> Fetch the complete documentation index at: https://workover.io/docs/llms.txt

# List the style guide's rules

GET`/ai/rules`

The rules in force for a workspace and, when a project is given, that project's own rules too, each tagged by where it applies. Agents read these before writing.

## Query Parameters

`projectId`

stringrequired

`organizationId`

stringrequired

## Response

200

**cURL**

```bash
curl --request GET \
  --url 'https://api.workover.io/ai/rules?projectId=%3CprojectId%3E&organizationId=%3CorganizationId%3E'
```

**JavaScript**

```javascript
const options = {
  method: 'GET'
};

fetch('https://api.workover.io/ai/rules?projectId=%3CprojectId%3E&organizationId=%3CorganizationId%3E', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

**Python**

```python
import requests

url = "https://api.workover.io/ai/rules?projectId=%3CprojectId%3E&organizationId=%3CorganizationId%3E"

response = requests.get(url)

print(response.text)
```
