---
title: "Get References for Feature Flag or Setting"
method: GET
path: "/v1/settings/{settingId}/code-references"
tags: ["Code References"]
---

# Get References for Feature Flag or Setting

`GET /v1/settings/{settingId}/code-references`

## Path parameters

- `settingId` integer, required

## Response `200`

- CodeReferenceModel[]
  - `branch` string, nullable, required — The source control branch on where the scan was performed. (Source of the branch selector on the ConfigCat Dashboard)
  - `references` ReferenceLinesModel[], nullable, required — The actual references to the given Feature Flag or Setting.
    - `file` string, required — The file's name in where the code reference has been found. (Appears on the ConfigCat Dashboard)
    - `fileUrl` string, nullable, required — The file's url. (Used to point to the file on the repository's website)
    - `preLines` ReferenceLineModel[], required — The lines before the actual reference line.
      - `lineText` string, nullable, required — The content of the reference line.
      - `lineNumber` integer, required — The line number.
    - `postLines` ReferenceLineModel[], required — The lines after the actual reference line.
      - `lineText` string, nullable, required — The content of the reference line.
      - `lineNumber` integer, required — The line number.
    - `referenceLine` ReferenceLineModel, required — Determines a code reference line.
      - `lineText` string, nullable, required — The content of the reference line.
      - `lineNumber` integer, required — The line number.
  - `commitUrl` string, nullable, required — The related commit's URL.
  - `commitHash` string, nullable, required — The related commit's hash.
  - `syncedAt` string, date-time, required — The date and time when the reference report was uploaded.
  - `repository` string, nullable, required — The source control repository that contains the scanned code.
  - `codeReferenceId` string, uuid, required — The identifier of the reference report.
  - `uploader` string, nullable, required — The code reference scanning tool's name.

## Other responses

- `400` — Bad request.
- `404` — Not found.
- `429` — Too many requests. In case of the request rate exceeds the rate limits.

---

[API](https://skmtc.net/configcat/apis/configcat-public-management-api.md) · [All operations](https://skmtc.net/configcat/apis/configcat-public-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/configcat/configcat-public-management-api/versions/6b4d53bc1455/schema)
