GitHub Integration
List Repositories
List all GitHub repositories accessible to your connected account, including personal and organization repositories.
GET
This endpoint returns all GitHub repositories accessible to the connected GitHub account. It fetches both personal repositories and, optionally, repositories from all organizations the user belongs to. Results are deduplicated by
full_name.
This endpoint requires a Pro subscription and a connected GitHub account. Connect your GitHub account via
POST /api/v1/git/config first.Authentication
To use this API, you need a BLACKBOX API Key. Follow these steps to get your API key:- Go to app.blackbox.ai/agent-api and click Get an API Key (requires a Pro subscription)
- Once provisioning completes, you will be redirected to your Dashboard
- From the Dashboard, create an API key to use with all Agent API requests
sk-xxxxxxxxxxxxxxxxxxxxxx
Headers
API Key of the form
Bearer <api_key>.Example: Bearer sk_b41b647ffbfed27f616560Query Parameters
Whether to include repositories from organizations the user belongs to.Default:
trueExample: include_orgs=falseResponse Fields
Array of repository objects.
Total number of repositories returned.
Error Codes
| Status Code | Error | Description |
|---|---|---|
| 200 | Success | Repository list returned |
| 401 | Unauthorized | Invalid or missing API key |
| 403 | Forbidden | Pro subscription required or no GitHub token stored |
| 500 | Internal Server Error | Failed to fetch repositories from GitHub |