GitHub APIs
Get All GitHub Repositories
Retrieve all repositories accessible to the authenticated user, including personal and organization repositories.
GET
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.Documentation Index
Fetch the complete documentation index at: https://docs.blackbox.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
To use this API, you need a BLACKBOX API Key. Follow these steps to get your API key:- Click on your Profile Image in the top right corner at cloud.blackbox.ai
- Click on “BLACKBOX API Token” from the dropdown menu
- Copy the existing token or click “Generate” if you don’t have one yet
bb_xxxxxxxxxxxxxxxxxxxxxx
Headers
API Key of the form
Bearer <api_key>.Example: Bearer bb_b41b647ffbfed27f61656049d3eaeef3d903cc503345d9eb80080d98bc0Response
The endpoint returns an object containing an array of repository objects with comprehensive metadata.Array of repository objects with the following fields:
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
Error Codes
| Status Code | Error | Description |
|---|---|---|
| 200 | Success | All repositories retrieved successfully |
| 401 | Unauthorized | Invalid or missing API key |
| 404 | Not Found | GitHub token not found or expired |
| 502 | Bad Gateway | GitHub API error occurred |
| 500 | Internal Server Error | Database or server error occurred |