List repositories
/api/v1/org/{orgId}/repos List Repositories
List all repositories found via repository integrations for the given organization.
Usage:
Results are paginated via the previous and next page keys.
To get additional pages, use the nextPageKey or previousPageKey from the response and send back in as the page query param.
When the page parameter is provided, all other query parameters are ignored.
Additional Parameters:
query- fuzzy find repositories by name.sortField- the field to sort the repositories by.sortDir- direction to sort.pageSize- number of results to return.pageToken- zero-based index of the page to return.filters- comma separated list of named filters to apply.
Requires
read:repositorypermission.
Path parameters
orgIdstring · uuidrequiredUUID identifier for this StackHawk Organization.
Query parameters
querystringA term used to filter results based on matching content in one or more fields.
sortFieldstringResource field to sort paginated response by.
10 available options
idfullNamelastCommitlastContributorlastScanTimeStampstackHawkApplicationscorestatuscommitCountsensitiveTagsCountsortDirstringPaginated results are sorted 'asc' or 'desc'.
3 available options
ASCDESCUNSORTEDpageSizeinteger · int32Pagination response size limit.
10pageTokeninteger · int32Pagination request page increment.
0pagestringPagination page key.
repoFilterstringRepository search filter (Deprecated: Use filters param instead).
"ALL_REPOS"16 available options
ALL_REPOSUNMAPPED_REPOSMAPPED_REPOSHIDDEN_REPOSREPOS_WITH_APP_SCANSREPOS_WITH_NO_APP_SCANSREPOS_WITH_INSIGHTSREPOS_WITH_NO_INSIGHTSWEB_APP_REPOSREPOS_IN_ATTACK_SURFACEREPOS_NOT_IN_ATTACK_SURFACEUNCOVERED_REPOSREPOS_WITH_RECENT_SCANSREPOS_WITH_GENERATED_OASREPOS_WITHOUT_GENERATED_OASREPOS_WITHOUT_RECENT_SCANSappFilterstringRepository search application filter (Deprecated: Use filters param instead).
"ALL_REPOS"16 available options
ALL_REPOSUNMAPPED_REPOSMAPPED_REPOSHIDDEN_REPOSREPOS_WITH_APP_SCANSREPOS_WITH_NO_APP_SCANSREPOS_WITH_INSIGHTSREPOS_WITH_NO_INSIGHTSWEB_APP_REPOSREPOS_IN_ATTACK_SURFACEREPOS_NOT_IN_ATTACK_SURFACEUNCOVERED_REPOSREPOS_WITH_RECENT_SCANSREPOS_WITH_GENERATED_OASREPOS_WITHOUT_GENERATED_OASREPOS_WITHOUT_RECENT_SCANSlangIdsstring[]A comma-delimited list of UUID identifiers of repository languages.
topicIdsstring[]A comma-delimited list of UUID identifiers of repository topics.
frameworkNamesstring[]A comma-delimited list of String identifiers of repository frameworks.
repositorySourcestring[]A comma-delimited list of repository source types.
integrationIdsstring[]A comma-delimited list of integration UUIDs to filter repositories by specific integrations.
sensitiveDataTagsstring[]A comma-delimited list of sensitive data tags for repositories.
recentCommitTimeframestringThe timeframe of the most recent commit for a repo.
"LAST_COMMIT_DATE_UNSPECIFIED"9 available options
LAST_COMMIT_DATE_UNSPECIFIEDLAST_24_HOURSLAST_7_DAYSLAST_14_DAYSLAST_30_DAYSOVER_30_DAYSLAST_90_DAYSLAST_180_DAYSLAST_365_DAYSwebAppFilterstringReturn only repos with a high Hawkscore, indicating a web app. Defaults to ALL_REPOS, set to WEB_APP_REPOS to get only retrieve webapps.
"ALL_REPOS"16 available options
ALL_REPOSUNMAPPED_REPOSMAPPED_REPOSHIDDEN_REPOSREPOS_WITH_APP_SCANSREPOS_WITH_NO_APP_SCANSREPOS_WITH_INSIGHTSREPOS_WITH_NO_INSIGHTSWEB_APP_REPOSREPOS_IN_ATTACK_SURFACEREPOS_NOT_IN_ATTACK_SURFACEUNCOVERED_REPOSREPOS_WITH_RECENT_SCANSREPOS_WITH_GENERATED_OASREPOS_WITHOUT_GENERATED_OASREPOS_WITHOUT_RECENT_SCANSuncoveredRepoFilterstringReturn only uncovered repos, which are repos that are in the org's attack surface, but not mapped to any applications. Defaults to ALL_REPOS, set to UNCOVERED_REPOS to get only uncovered repos.
"ALL_REPOS"16 available options
ALL_REPOSUNMAPPED_REPOSMAPPED_REPOSHIDDEN_REPOSREPOS_WITH_APP_SCANSREPOS_WITH_NO_APP_SCANSREPOS_WITH_INSIGHTSREPOS_WITH_NO_INSIGHTSWEB_APP_REPOSREPOS_IN_ATTACK_SURFACEREPOS_NOT_IN_ATTACK_SURFACEUNCOVERED_REPOSREPOS_WITH_RECENT_SCANSREPOS_WITH_GENERATED_OASREPOS_WITHOUT_GENERATED_OASREPOS_WITHOUT_RECENT_SCANSfiltersstring[]A comma-delimited list of repository search filters.
Response
OK
Whether or not there is a next page.
Whether or not there is a previous page.
The url-encoded next page key.
The organization id these repositories belong to.
An internal previous page object. Will always be blank from the API response.
The list of repositories in the current page.
The total number of repositories in this organization.
Whether or not there is a next page.
Whether or not there is a previous page.
The url-encoded next page key.
The organization id these repositories belong to.
An internal previous page object. Will always be blank from the API response.
The list of repositories in the current page.
The total number of repositories in this organization.
Unauthorized