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

# List custom rules

`GET /repositories/sast/custom-rules`

## Request

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

List custom semgrep rules

## Response `200`

A list of custom semgrep rules

- object
  - `custom_rules` object[]
    - `semgrep_rule` string: The semgrep rule
    - `issue_title` string: The title of the issue associated with this semgrep rule
    - `tldr` string: A summary of what the issue associated with this semgrep rule is
    - `how_to_fix` string: A description on how to fix the issue associated with this semgrep rule
    - `priority` integer: A numeric value from 1 to 100 indicating how severe the issue associated with this semgrep rule is
    - `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 semgrep rule
    - `has_error` boolean: A boolean indicating whether or not this semgrep rule caused an error during an Aikido scan

---

[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)
