---
title: "List SAST rules"
method: GET
path: "/repositories/code/sast/rules"
---

# List SAST rules

`GET /repositories/code/sast/rules`

## Request

- Base URL: `https://app.aikido.dev/api/public/v1`
- URL: `https://app.aikido.dev/api/public/v1/repositories/code/sast/rules`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://app.aikido.io/api/oauth/token` scopes: `repositories:read`

List SAST rules. Requires scope repositories:read

## Query parameters

- `repo_id` integer

## Response `200`

A list of SAST rules

- object[]
  - `id` string: The unique identifier of this rule
  - `title` string: The title of this rule
  - `base_score` integer: A numeric value from 1 to 100 indicating how severe the issue associated with this rule is
  - `description` string: A summary of what the issue associated with this rule is
  - `how_to_fix` string: A description on how to fix the issue associated with this SAST rule
  - `language` 'JS' | 'TS' | 'PHP' | 'Java' | 'Scala' | 'GO' | 'PY' | 'Ruby' | '.NET' | 'RUST' | 'Dart' | 'Swift' | 'Elixir' | 'C' | 'Clojure' | 'kotlin' | 'terraform' | 'generic': The programming language associated with this SAST rule
  - `open_issues_count` integer: A numeric value indicating how many open single issues are associated with this rule

---

[API](https://skmtc.dev/aikido/apis/aikido-security-api-documentation.md) - [All operations](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/revisions/da8691338133?raw)
