v1
latestOpenAPI 3.0.32026-07-22238629559.2 KBProjectsService
List all projects
Request the list of projects that have been scanned or onboarded to Managed Scans. Does not return archived repositories. Returns 100 projects per page by default.
get/api/v1/deployments/{deploymentSlug}/projects
Path parameters
deploymentSlugstring required
Slug of the deployment name. Can be found at /deployments, or in your Settings in the web UI.
Example:your-deployment
Query parameters
pagenumber
Which page of the results do you require? If not specified, returns first page. Pages are numbered from zero (0).
Example:1
page_sizenumber
Maximum number of records per returned page. If not specified, defaults to 100 records.
Example:100
Response
OK
Example response
{
"projects": [
{
"created_at": "2020-11-18T23:28:12.391Z",
"default_branch": "refs/heads/main",
"id": 1234567,
"latest_scan_at": "2023-01-13T20:51:51.449Z",
"name": "returntocorp/semgrep",
"primary_branch": "refs/heads/custom-main",
"url": "https://github.com/returntocorp/semgrep"
}
]
}