GitHub Integration
Get GitHub Config
Returns the GitHub account linked to your BLACKBOX API key, or { connected: false } if no token is stored.
GET
This endpoint returns the GitHub account connected to your BLACKBOX API key. Use it to check which GitHub user is linked before creating tasks that work with repositories.
This endpoint requires a Pro subscription.
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_b41b647ffbfed27f616560Response Fields
true if a valid GitHub token is stored, false otherwise.GitHub username. Present when
connected: true.Display name of the GitHub user.
Primary email of the GitHub user.
GitHub avatar URL.
OAuth scopes granted by the token (e.g.
"repo,user").ISO 8601 timestamp when the token was stored.
null if not recorded.Error Codes
| Status Code | Error | Description |
|---|---|---|
| 200 | Success | Config returned |
| 401 | Unauthorized | Invalid or missing API key |
| 403 | Forbidden | Pro subscription required |
| 500 | Internal Server Error | Failed to retrieve config |