Skip to main content
GET
/
api
/
github
/
all-repos
curl --location 'https://cloud.blackbox.ai/api/github/all-repos' \
--header 'Authorization: Bearer bb_YOUR_API_KEY'
{
    "repos": [
        {
            "id": 123456789,
            "name": "example-project",
            "full_name": "example-user/example-project",
            "description": "A sample project demonstrating API integration",
            "private": false,
            "clone_url": "https://github.com/example-user/example-project.git",
            "html_url": "https://github.com/example-user/example-project",
            "updated_at": "2025-11-15T10:30:00Z",
            "language": "TypeScript",
            "owner": {
                "login": "example-user",
                "avatar_url": "https://avatars.githubusercontent.com/u/7654321?v=4",
                "type": "User"
            },
            "is_org_repo": false
        },
        {
            "id": 987654321,
            "name": "company-backend",
            "full_name": "example-org/company-backend",
            "description": "Backend services for the company platform",
            "private": true,
            "clone_url": "https://github.com/example-org/company-backend.git",
            "html_url": "https://github.com/example-org/company-backend",
            "updated_at": "2025-11-20T14:22:15Z",
            "language": "Python",
            "owner": {
                "login": "example-org",
                "avatar_url": "https://avatars.githubusercontent.com/u/1234567?v=4",
                "type": "Organization"
            },
            "is_org_repo": true
        }
    ]
}
This endpoint returns a comprehensive list of all repositories that the authenticated user has access to, including both personal repositories and repositories from organizations they belong to. Each repository includes detailed metadata such as owner information, language, visibility, and timestamps.

Authentication

To use this API, you need a BLACKBOX API Key. Follow these steps to get your API key:
  1. Click on your Profile Image in the top right corner at cloud.blackbox.ai
  2. Click on “BLACKBOX API Token” from the dropdown menu
  3. Copy the existing token or click “Generate” if you don’t have one yet
Your API key will be in the format: bb_xxxxxxxxxxxxxxxxxxxxxx

Headers

Authorization
string
required
API Key of the form Bearer <api_key>.Example: Bearer bb_b41b647ffbfed27f61656049d3eaeef3d903cc503345d9eb80080d98bc0

Response

The endpoint returns an object containing an array of repository objects with comprehensive metadata.
repos
array
Array of repository objects with the following fields:
curl --location 'https://cloud.blackbox.ai/api/github/all-repos' \
--header 'Authorization: Bearer bb_YOUR_API_KEY'
{
    "repos": [
        {
            "id": 123456789,
            "name": "example-project",
            "full_name": "example-user/example-project",
            "description": "A sample project demonstrating API integration",
            "private": false,
            "clone_url": "https://github.com/example-user/example-project.git",
            "html_url": "https://github.com/example-user/example-project",
            "updated_at": "2025-11-15T10:30:00Z",
            "language": "TypeScript",
            "owner": {
                "login": "example-user",
                "avatar_url": "https://avatars.githubusercontent.com/u/7654321?v=4",
                "type": "User"
            },
            "is_org_repo": false
        },
        {
            "id": 987654321,
            "name": "company-backend",
            "full_name": "example-org/company-backend",
            "description": "Backend services for the company platform",
            "private": true,
            "clone_url": "https://github.com/example-org/company-backend.git",
            "html_url": "https://github.com/example-org/company-backend",
            "updated_at": "2025-11-20T14:22:15Z",
            "language": "Python",
            "owner": {
                "login": "example-org",
                "avatar_url": "https://avatars.githubusercontent.com/u/1234567?v=4",
                "type": "Organization"
            },
            "is_org_repo": true
        }
    ]
}

Use Cases

This endpoint is particularly useful for:
  • Building repository selection interfaces
  • Syncing repository lists for dashboards
  • Analyzing repository metadata across all accessible repos
  • Creating backup or migration tools
  • Generating reports on repository activity and languages