Get a paginated list of repositories for the organization
curl --request GET \
--url https://api.ghostsecurity.ai/v2/repos \
--header 'Authorization: Bearer <token>'{
"has_more": true,
"items": [
{
"archived": true,
"clone_url": "<string>",
"created_at": "<string>",
"default_branch_name": "<string>",
"description": "<string>",
"full_name": "<string>",
"id": "<string>",
"installation_id": "<string>",
"languages": {},
"last_commit_hash": "<string>",
"last_commit_hash_link": "<string>",
"last_committed_at": "<string>",
"last_scanned_at": "<string>",
"name": "<string>",
"organization_id": "<string>",
"private": true,
"projects": [
{
"business_criticality": "<string>",
"cast_scan_enabled": true,
"components": [
{
"criticality": 123,
"description": "<string>",
"folder_name": "<string>",
"type": "<string>"
}
],
"created_at": "<string>",
"dependencies_file": "<string>",
"deployment_usage": "<string>",
"deployments": {},
"enabled": true,
"evidence": "<string>",
"exposure": "<string>",
"file_extensions": [
"<string>"
],
"findings_count": 123,
"frameworks": [
"<string>"
],
"has_custom_metadata": true,
"id": "<string>",
"languages": [
"<string>"
],
"last_committed_at": "<string>",
"last_scan_id": "<string>",
"last_scan_status": "<string>",
"last_scanned_at": "<string>",
"organization_id": "<string>",
"owner": "<string>",
"primary_framework": "<string>",
"primary_language": "<string>",
"provider": "<string>",
"purpose": "<string>",
"relative_path": "<string>",
"repo": {
"id": "<string>",
"name": "<string>",
"url": "<string>"
},
"scanner_business_criticality": "<string>",
"scanner_exposure": "<string>",
"scanner_summary": "<string>",
"sensitive_data_types": [
"<string>"
],
"size": 123,
"summary": "<string>",
"updated_at": "<string>",
"user_business_criticality": "<string>",
"user_exposure": "<string>",
"user_summary": "<string>"
}
],
"provider": "<string>",
"provider_id": "<string>",
"scan_branch": "<string>",
"size": 123,
"summary": "<string>",
"updated_at": "<string>",
"url": "<string>"
}
],
"next_cursor": "eyJzb3J0X3ZhbHVlIjoiMjAyNC0wMS0xNVQxMDozMDowMFoiLCJkb2N1bWVudF9pZCI6InJlcG8xMjMiLCJzb3J0X2ZpZWxkIjoiY3JlYXRlZF9hdCJ9",
"total": 250
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Pagination cursor
Sort field
created_at, updated_at, last_committed_at Sort order
asc, desc Page size
1 <= x <= 1000OK
Indicates if there are more items available
true
The response items
Show child attributes
Cursor for the next page
"eyJzb3J0X3ZhbHVlIjoiMjAyNC0wMS0xNVQxMDozMDowMFoiLCJkb2N1bWVudF9pZCI6InJlcG8xMjMiLCJzb3J0X2ZpZWxkIjoiY3JlYXRlZF9hdCJ9"
Total count of items (if available)
250
curl --request GET \
--url https://api.ghostsecurity.ai/v2/repos \
--header 'Authorization: Bearer <token>'{
"has_more": true,
"items": [
{
"archived": true,
"clone_url": "<string>",
"created_at": "<string>",
"default_branch_name": "<string>",
"description": "<string>",
"full_name": "<string>",
"id": "<string>",
"installation_id": "<string>",
"languages": {},
"last_commit_hash": "<string>",
"last_commit_hash_link": "<string>",
"last_committed_at": "<string>",
"last_scanned_at": "<string>",
"name": "<string>",
"organization_id": "<string>",
"private": true,
"projects": [
{
"business_criticality": "<string>",
"cast_scan_enabled": true,
"components": [
{
"criticality": 123,
"description": "<string>",
"folder_name": "<string>",
"type": "<string>"
}
],
"created_at": "<string>",
"dependencies_file": "<string>",
"deployment_usage": "<string>",
"deployments": {},
"enabled": true,
"evidence": "<string>",
"exposure": "<string>",
"file_extensions": [
"<string>"
],
"findings_count": 123,
"frameworks": [
"<string>"
],
"has_custom_metadata": true,
"id": "<string>",
"languages": [
"<string>"
],
"last_committed_at": "<string>",
"last_scan_id": "<string>",
"last_scan_status": "<string>",
"last_scanned_at": "<string>",
"organization_id": "<string>",
"owner": "<string>",
"primary_framework": "<string>",
"primary_language": "<string>",
"provider": "<string>",
"purpose": "<string>",
"relative_path": "<string>",
"repo": {
"id": "<string>",
"name": "<string>",
"url": "<string>"
},
"scanner_business_criticality": "<string>",
"scanner_exposure": "<string>",
"scanner_summary": "<string>",
"sensitive_data_types": [
"<string>"
],
"size": 123,
"summary": "<string>",
"updated_at": "<string>",
"user_business_criticality": "<string>",
"user_exposure": "<string>",
"user_summary": "<string>"
}
],
"provider": "<string>",
"provider_id": "<string>",
"scan_branch": "<string>",
"size": 123,
"summary": "<string>",
"updated_at": "<string>",
"url": "<string>"
}
],
"next_cursor": "eyJzb3J0X3ZhbHVlIjoiMjAyNC0wMS0xNVQxMDozMDowMFoiLCJkb2N1bWVudF9pZCI6InJlcG8xMjMiLCJzb3J0X2ZpZWxkIjoiY3JlYXRlZF9hdCJ9",
"total": 250
}