---
title: "Get Project Count"
method: POST
path: "/api/agent/deployments/{deploymentId}/repos/count"
tags: ["ProjectsService"]
---

# Get Project Count

`POST /api/agent/deployments/{deploymentId}/repos/count`

Get the number of projects in a deployment.

## Path parameters

- `deploymentId` string, required

## Request body

- ProtosProjectsV1GetReposCountRequest
  - `deploymentId` string
  - `filters` ProtosProjectsV1RepoFilters
    - `search` string — filter repos by name
    - `codeAccess` boolean — filter repos by if they have code access
    - `lastScanSince` string, date-time — filter repos by when they were last scanned
    - `setup` boolean — filter repos by if they have been set up
    - `archived` boolean — filter repos by if they are archived
    - `ids` string[] — filter repos by id
    - `hasSmsSetup` boolean — filter repos by if they have SMS set up, whether or not it is currently enabled
    - `isScmRepository` boolean — filter repos to only show repos that represent an SCM repository
    - `invertSearch` boolean — filter repos to those that *do not* match the search string
    - `isLocalScanProject` boolean — filter to projects created by local scans
    - `scmType` 'SCM_TYPE_GITHUB' | 'SCM_TYPE_GITHUB_ENTERPRISE' | 'SCM_TYPE_GITLAB' | 'SCM_TYPE_GITLAB_SELFMANAGED' | 'SCM_TYPE_BITBUCKET' | 'SCM_TYPE_BITBUCKET_DATACENTER' | 'SCM_TYPE_AZURE_DEVOPS' | 'SCM_TYPE_UNKNOWN' | 'SCM_TYPE_HARNESS', enum — filter repos based on ScmType | value | description | |-------|---------------| | SCM_TYPE_GITHUB | GitHub Cloud | | SCM_TYPE_GITHUB_ENTERPRISE | GitHub Enterprise | | SCM_TYPE_GITLAB | GitLab Cloud | | SCM_TYPE_GITLAB_SELFMANAGED | GitLab Self-Managed | | SCM_TYPE_BITBUCKET | Bitbucket Cloud | | SCM_TYPE_BITBUCKET_DATACENTER | Bitbucket Data Center | | SCM_TYPE_AZURE_DEVOPS | Azure DevOps | | SCM_TYPE_UNKNOWN | | | SCM_TYPE_HARNESS | Harness |
    - `tagId` integer — filter repos by tag id

## Response `200`

OK

- ProtosProjectsV1GetReposCountResponse
  - `count` string

---

[API](https://skmtc.net/semgrep/apis/semgrep-web-app.md) · [All operations](https://skmtc.net/semgrep/apis/semgrep-web-app/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/semgrep/semgrep-web-app/versions/6483eeecd582/schema)
