Block SDK Guide
Overview
Basic Structure
1. Create Provider Configuration
from backend.sdk import BlockCostType, ProviderBuilder
# Simple API key provider
my_provider = (
ProviderBuilder("my_provider")
.with_api_key("MY_PROVIDER_API_KEY", "My Provider API Key")
.with_base_cost(1, BlockCostType.RUN)
.build()
)2. Create the Block Class
Key Components Explained
Provider Configuration
Block Schema
Block Implementation
Advanced Features
Testing
OAuth Support
Webhook Support
File Organization
Best Practices
Common Patterns
Making API Requests
Multiple Auth Types
Testing Your Block
Integration Checklist
Example Blocks for Reference
Last updated
Was this helpful?