Team Sources
List team sources
List sources belonging to a team's perimeter.
get/v1/teams/{team_id}/sources
Path parameters
team_idinteger required
The id of the team
Query parameters
cursorstring
Pagination cursor.
per_pageinteger
Number of items to list per page.
searchstring
Sources matching this search.
Example:test-repository
last_scan_status'launched' | 'pending' | 'running' | 'finished' | 'failed' | 'canceled' | 'too_large' | 'timeout' | 'skipped' | 'pending_timeout' | 'running_failed' | 'running_cancelled'
Filter sources based on the status of their latest historical scan.
health'safe' | 'unknown' | 'at_risk'
Filter sources based on their health status.
type'azure_devops' | 'bitbucket' | 'bitbucket_cloud' | 'github' | 'gitlab'
Filter by integration type.
Example:github
ordering'last_scan_date' | '-last_scan_date'
Sort the results by their field value. The default sort is ASC, DESC if the field is preceded by a '-'.
visibility'public' | 'private' | 'internal'
Filter by visibility status.
Example:public
external_idstring
Filter by specific external id.
Example:1
Response
Source list
Example response
[
{
"id": 6531,
"url": "https://github.com/GitGuardian/gg-shield",
"type": "github",
"full_name": "gitguardian/gg-shield",
"health": "at_risk",
"default_branch": "main",
"default_branch_head": "abcd97b4aaf927ea934504263322e75e86c31xyz",
"open_incidents_count": 3,
"closed_incidents_count": 2,
"visibility": "public",
"external_id": "125",
"source_criticality": "critical",
"last_scan": {
"date": "2021-05-20T12:40:55.662949Z",
"status": "finished",
"failing_reason": "DMCA takedown",
"commits_scanned": 123,
"branches_scanned": 2,
"duration": "1:30.454444"
},
"monitored": true,
"monitoring_status": "active",
"deleted": true
}
]