API endpoints for managing tool sources in the Kubiya platform
Method | Path | Description |
---|---|---|
GET | /api/v1/sources | List all sources |
GET | /api/v1/sources/{sourceId} | Get source by ID |
GET | /api/v1/sources/{sourceId}/metadata | Get source metadata |
GET | /api/v1/sources/load | Discover/load a source (GET) |
POST | /api/v1/sources | Create a new source |
PUT | /api/v1/sources/{sourceId} | Sync a source |
DELETE | /api/v1/sources/{sourceId} | Delete a source |
GET | /api/v1/sources/agent_sources/{sourceId} | Get agent sources |
PUT | /api/v1/sources/zip/load | Load a zipped source |
PUT | /api/v1/sources/zip | Create a zipped source |
PUT | /api/v1/sources/zip/sync/{sourceId} | Sync a zipped source |
Status Code | Description |
---|---|
200 | Success |
400 | Bad Request - Invalid parameters or request body |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - Insufficient permissions |
404 | Not Found - Resource doesn’t exist |
500 | Internal Server Error |
HTTP Status | Description |
---|---|
400 | Bad Request - Invalid request body or missing required fields |
401 | Unauthorized - API key is missing or invalid |
403 | Forbidden - The API key doesn’t have permission to perform this action |
404 | Not Found - The specified source was not found |
500 | Internal Server Error - An unexpected error occurred on the server |