Platform & Tools
SDK Server Overview
Production-ready REST API server for Kubiya Workflow SDK
SDK Server Overview
The Kubiya Workflow SDK includes a production-ready REST API server that provides HTTP endpoints for workflow management, AI-powered generation, and real-time execution streaming.
Features
REST API
Complete RESTful API for all SDK operations
SSE Streaming
Real-time execution updates via Server-Sent Events
AI Integration
Built-in support for AI providers
Authentication
Secure API key authentication
Quick Start
Starting the Server
Configuration
The server can be configured via environment variables:
API Endpoints
Core Endpoints
Method | Endpoint | Description |
---|---|---|
GET | /health | Health check |
GET | /docs | OpenAPI documentation |
GET | /api/v1/providers | List AI providers |
POST | /api/v1/compose | Generate/execute workflows |
POST | /api/v1/workflows/execute | Execute workflow directly |
Authentication
All API endpoints (except /health
) require authentication:
Server Architecture
Key Components
1. FastAPI Application
Built on FastAPI for:
- High performance async handling
- Automatic OpenAPI documentation
- Type validation
- CORS support
2. Streaming Support
Real-time updates using SSE:
- Workflow generation progress
- Execution status updates
- Step outputs and logs
- Error notifications
3. Provider Integration
Seamless integration with AI providers:
- Dynamic provider loading
- Unified API interface
- Streaming format support
Usage Examples
Generate Workflow (cURL)
Python Client
JavaScript/TypeScript
Deployment Options
Monitoring & Observability
Health Checks
Logging
Structured JSON logging with levels:
Metrics
Prometheus-compatible metrics endpoint (coming soon):
- Request count and latency
- Workflow execution metrics
- Provider usage statistics
Security Considerations
- API Key Management: Store keys securely, rotate regularly
- CORS Configuration: Restrict origins in production
- Rate Limiting: Implement rate limits for API endpoints
- TLS/SSL: Always use HTTPS in production