REST API
Hibou exposes a REST API documented with OpenAPI (Swagger).
OpenAPI Specification
Section titled “OpenAPI Specification”The full OpenAPI spec is available at:
GET /swagger/index.htmlThe raw spec files:
/swagger/doc.json— JSON format/swagger/swagger.yaml— YAML format
Base URL
Section titled “Base URL”All API endpoints are prefixed with /api/v1/.
Authentication
Section titled “Authentication”See Authentication for details on session cookies and API keys.
Core Endpoints
Section titled “Core Endpoints”Organizations
Section titled “Organizations”| Method | Path | Description |
|---|---|---|
GET |
/api/v1/orgs |
List organizations |
POST |
/api/v1/orgs |
Create organization |
GET |
/api/v1/orgs/{id} |
Get organization |
PUT |
/api/v1/orgs/{id} |
Update organization |
DELETE |
/api/v1/orgs/{id} |
Delete organization |
Repositories
Section titled “Repositories”| Method | Path | Description |
|---|---|---|
GET |
/api/v1/orgs/{org_id}/repos |
List repos in org |
POST |
/api/v1/orgs/{org_id}/repos |
Add repo to org |
GET |
/api/v1/repos/{id} |
Get repository |
DELETE |
/api/v1/repos/{id} |
Remove repository |
| Method | Path | Description |
|---|---|---|
GET |
/api/v1/orgs/{org_id}/teams |
List teams |
POST |
/api/v1/orgs/{org_id}/teams |
Create team |
PUT |
/api/v1/teams/{id} |
Update team |
DELETE |
/api/v1/teams/{id} |
Delete team |
Uploads (Scan Results)
Section titled “Uploads (Scan Results)”| Method | Path | Description |
|---|---|---|
POST |
/api/v1/repos/{id}/upload |
Upload SBOM/SARIF/findings |
GET |
/api/v1/repos/{id}/status |
Get scan status |
Authentication
Section titled “Authentication”| Method | Path | Description |
|---|---|---|
GET |
/auth/providers |
List auth providers |
GET |
/auth/login/{provider} |
Initiate OAuth2 flow |
GET |
/auth/callback |
OAuth2 callback |
POST |
/auth/logout |
Destroy session |
GET |
/api/v1/me |
Get current user |
API Keys
Section titled “API Keys”| Method | Path | Description |
|---|---|---|
GET |
/api/v1/apikeys |
List user’s API keys |
POST |
/api/v1/apikeys |
Create API key |
DELETE |
/api/v1/apikeys/{id} |
Revoke API key |
Pagination
Section titled “Pagination”List endpoints support pagination via query parameters:
GET /api/v1/orgs?page=1&per_page=20Response headers include:
X-Total-Count— Total number of itemsX-Page— Current pageX-Per-Page— Items per page