API endpoints for managing tasks in the Kubiya platform
Method | Path | Description |
---|---|---|
GET | /api/v1/tasks | List all tasks |
GET | /api/v1/tasks/{taskId} | Get task details |
POST | /api/v1/tasks | Create a new task |
PUT | /api/v1/tasks/{taskId}/cancel | Cancel a task |
GET | /api/v1/tasks/{taskId}/logs | Get task logs |
GET | /api/v1/tasks/{taskId}/status | Get task status |
GET | /api/v1/tasks/agent/{agentId} | List tasks for an agent |
GET | /api/v1/tasks/runner/{runnerId} | List tasks for a runner |
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 task was not found |
409 | Conflict - Task is in an invalid state for the requested operation |
500 | Internal Server Error - An unexpected error occurred on the server |