Runners API
API endpoints for managing Kubiya runners that execute tools
Runners API
Runners in Kubiya are the execution environments that run tools and provide capabilities to teammates. The Runners API allows you to create, manage, and monitor runner instances in your environment.
List Runners
Retrieve all runners in your organization.
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | UserKey YOUR_API_KEY |
Content-Type | No | application/json |
Response
The runner list includes health information for each component of the runner, which is fetched concurrently to provide a complete status overview.
Get Runner Details
Retrieve detailed information about a specific runner.
Path Parameters
Name | Type | Required | Description |
---|---|---|---|
runner_name | string | Yes | Name of the runner |
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | UserKey YOUR_API_KEY |
Response
Get Runner Health
Check the health status of a runner and its components.
Path Parameters
Name | Type | Required | Description |
---|---|---|---|
runner_name | string | Yes | Name of the runner |
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | UserKey YOUR_API_KEY |
Response
Create Runner Manifest
Create a new runner manifest that can be used to deploy a runner instance.
Path Parameters
Name | Type | Required | Description |
---|---|---|---|
runner_name | string | Yes | Name for the new runner |
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | UserKey YOUR_API_KEY |
Content-Type | Yes | application/json |
Response
The manifest URL provides a Kubernetes YAML file that can be applied to your cluster to deploy the runner.
Get Runner Manifest
Retrieve the deployment manifest for an existing runner.
Path Parameters
Name | Type | Required | Description |
---|---|---|---|
runner_name | string | Yes | Name of the runner |
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | UserKey YOUR_API_KEY |
Response
Download Manifest
Download a runner manifest file for deployment.
Response
The response is a raw YAML file containing the Kubernetes manifests for deploying the runner.
Example Usage
List Runners
Create Runner Manifest
Check Runner Health
Get Runner Manifest
Deployment Process
The typical process for deploying a new runner involves:
- Create a runner manifest using the API
- Download the manifest file
- Apply the manifest to your Kubernetes cluster:
- Verify the runner is healthy using the health endpoint
- Use the runner name when executing tools or loading sources
Runners require appropriate permissions in your Kubernetes cluster to function properly. Make sure to review the manifest before applying it and ensure it has the necessary RBAC roles.
Common Errors
HTTP Status | Description |
---|---|
400 | Bad Request - The request was invalid or malformed |
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 runner was not found |
500 | Internal Server Error - An unexpected error occurred on the server |
Next Steps
After setting up runners, you can:
- Use them to load sources with specific tools
- Configure teammates to use tools that the runners execute