GitHub APIs
Get GitHub Organizations
Retrieve all GitHub organizations associated with the authenticated user’s account.
GET
This endpoint returns a list of all GitHub organizations that the authenticated user has access to, including organization details such as name, login, and avatar.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 array of organization objects.The organization’s GitHub username/login identifier.
The display name of the organization.
URL to the organization’s avatar image.
Error Codes
| Status Code | Error | Description |
|---|---|---|
| 200 | Success | Organizations 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 |