Skip to main content
GET
This endpoint validates the stored GitHub token by calling the GitHub API and returns the connected account’s profile information. Use this to confirm your GitHub integration is active before creating tasks that work with repositories.
This endpoint requires a Pro subscription. Ensure your BLACKBOX account is on the Pro plan before calling GitHub integration endpoints.

Authentication

To use this API, you need a BLACKBOX API Key. Follow these steps to get your API key:
  1. Go to app.blackbox.ai/agent-api and click Get an API Key (requires a Pro subscription)
  2. Once provisioning completes, you will be redirected to your Dashboard
  3. From the Dashboard, create an API key to use with all Agent API requests
Your API key will be in the format: sk-xxxxxxxxxxxxxxxxxxxxxx

Headers

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

Response Fields

Connected

boolean
true when a valid GitHub token is stored.
string
GitHub username of the connected account.
string | null
Display name of the GitHub user.
string | null
Primary email address of the GitHub user (if public).
string
URL of the GitHub user’s avatar image.
string
Comma-separated list of OAuth scopes granted by the token (e.g. "repo,user").
number
Number of public repositories owned by the user.
number
Number of private repositories owned by the user.
boolean
Whether the stored token successfully authenticated with GitHub.

Not Connected

boolean
false when no token is stored or the token is invalid.
string
Human-readable explanation (e.g. "No GitHub token found").

Error Codes