Kubiya REST API Reference
Complete reference documentation for the Kubiya Platform REST API, allowing you to integrate and extend the platform programmatically.
Kubiya REST API
Welcome to the Kubiya REST API documentation. This API allows you to programmatically interact with the Kubiya Agentic Platform, enabling you to automate workflows, integrate with your existing tools, and build custom experiences on top of the platform.
Authentication
All API requests require authentication using API keys. You can generate an API key from the Kubiya Web App under Settings → API Keys or using the CLI:
Include your API key in the Authorization header:
Note that Kubiya uses the UserKey
prefix for API keys, rather than the more common Bearer
token prefix.
Base URL
For specialized endpoints, different API versions may be used (like /api/v3
for runners).
Core Endpoints
Resource | Description |
---|---|
Agents | Create, update, and manage AI Teammates |
Sources | Discover and manage tool sources |
Agentic Tools | Create and manage tools that extend capabilities |
Runners | Deploy and manage execution environments |
Knowledge | Add, retrieve, and manage knowledge entries |
Webhooks | Configure and manage webhooks for event handling |
Infrastructure as Code (IaC) Capabilities
Kubiya provides robust Infrastructure as Code (IaC) capabilities through the Projects and Tasks APIs:
Resource | Description |
---|---|
Projects | Manage Terraform projects and deployments |
Tasks | Execute operations and workflows |
These endpoints enable:
- GitOps Workflows: Automate your infrastructure deployments from Git repositories
- State Management: Manage your Terraform state securely in the Kubiya platform
- Agentic Operations: Combine AI agents with your infrastructure for intelligent management
Response Format
API responses are returned in JSON format. Successful responses typically include a status code of 200 (OK) or 201 (Created).
Error responses include appropriate HTTP status codes (4xx for client errors, 5xx for server errors) and a JSON body with error details:
Rate Limiting
API requests are subject to rate limiting. The current limits are:
- 100 requests per minute per API key
- 5,000 requests per day per API key
If you exceed the rate limit, you'll receive a 429 Too Many Requests response.
Pagination
List endpoints support pagination through limit
and offset
query parameters:
The response includes pagination metadata:
SDK Libraries
We provide official SDK libraries for several programming languages:
Example JavaScript SDK usage:
API Playground
Try the Kubiya API directly in your browser with our interactive API playground. Test endpoints, see request and response examples, and understand how to integrate with the Kubiya platform.
List all sources
Get source details
Create a new source
API Versioning
The Kubiya API is versioned to ensure backward compatibility. The primary version is v1
, included in the URL path:
Some specialized services use different version paths (e.g., /api/v3/runners
). When new features or breaking changes are introduced, a new version will be created with reasonable deprecation periods for older versions.