---
title: "GET /api/v2/secret-scanning/data-sources"
method: GET
path: "/api/v2/secret-scanning/data-sources"
tags: ["Secret Scanning"]
---

# GET /api/v2/secret-scanning/data-sources

`GET /api/v2/secret-scanning/data-sources`

List all the Secret Scanning Data Sources for the specified project.

## Query parameters

- `projectId` string, required

## Response `200`

Default Response

- object
  - `dataSources` union[], required
    - union
      - object
        - `id` string, uuid, required
        - `externalId` string, nullable
        - `name` string, required
        - `description` string, nullable
        - `encryptedCredentials` unknown
        - `isAutoScanEnabled` boolean, nullable
        - `projectId` string, required
        - `createdAt` string, date-time, required
        - `updatedAt` string, date-time, required
        - `isDisconnected` boolean
        - `type` 'github', required
        - `connectionId` string, uuid, required
        - `connection` object, required
          - `app` 'github-radar', required
          - `name` string, required
          - `id` string, uuid, required
        - `config` object, required
          - `includeRepos` string[] — The repositories to include when scanning. Defaults to all repositories (["*"]).
      - object
        - `id` string, uuid, required
        - `externalId` string, nullable
        - `name` string, required
        - `description` string, nullable
        - `encryptedCredentials` unknown
        - `isAutoScanEnabled` boolean, nullable
        - `projectId` string, required
        - `createdAt` string, date-time, required
        - `updatedAt` string, date-time, required
        - `isDisconnected` boolean
        - `type` 'bitbucket', required
        - `connectionId` string, uuid, required
        - `connection` object, required
          - `app` 'bitbucket', required
          - `name` string, required
          - `id` string, uuid, required
        - `config` object, required
          - `workspaceSlug` string, required — The workspace to scan.
          - `includeRepos` string[] — The repositories to include when scanning. Defaults to all repositories (["*"]).
      - object
        - `id` string, uuid, required
        - `externalId` string, nullable
        - `name` string, required
        - `description` string, nullable
        - `encryptedCredentials` unknown
        - `isAutoScanEnabled` boolean, nullable
        - `projectId` string, required
        - `createdAt` string, date-time, required
        - `updatedAt` string, date-time, required
        - `isDisconnected` boolean
        - `type` 'gitlab', required
        - `connectionId` string, uuid, required
        - `connection` object, required
          - `app` 'gitlab', required
          - `name` string, required
          - `id` string, uuid, required
        - `config` union, required
          - object
            - `scope` 'group', required — The GitLab scope scanning should occur at (project or group level).
            - `groupId` number, required — The ID of the group to scan projects from.
            - `groupName` string — The name of the group to scan projects from.
            - `includeProjects` string[] — The projects to include when scanning. Defaults to all projects (["*"]).
          - object
            - `scope` 'project', required — The GitLab scope scanning should occur at (project or group level).
            - `projectName` string — The name of the project to scan.
            - `projectId` number, required — The ID of the project to scan.

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/infisical/apis/infisical-api.md) · [All operations](https://skmtc.net/infisical/apis/infisical-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/infisical/infisical-api/versions/885aef3e6c11/schema)
