GitHub Integration
Disconnect GitHub
Revoke and purge all stored GitHub tokens associated with your account. Clears both the database token and all GitHub-related cookies.
DELETE
This endpoint permanently removes all GitHub tokens linked to your BLACKBOX account. After calling this endpoint, agent tasks that require GitHub access will fail until you reconnect via
POST /api/v1/git/config.
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 when all tokens were purged successfully.Human-readable confirmation message.
Error Codes
| Status Code | Error | Description |
|---|---|---|
| 200 | Success | All GitHub tokens purged |
| 401 | Unauthorized | Invalid or missing API key |
| 403 | Forbidden | Pro subscription required |
| 500 | Internal Server Error | Failed to purge tokens |