Documentation v2.0

Documentation

Everything you need to build production-ready applications with Stakly's AI-powered platform

Quick Start

Browse Documentation

API Reference

REST API
RESTful API endpoints and authentication
  • Authentication
  • Projects
  • Files
  • Generation
  • Webhooks
View Reference →
WebSocket API
Real-time updates and live collaboration
  • Connection
  • Events
  • Subscriptions
  • Broadcasting
View Reference →
GraphQL API
Flexible queries and mutations
  • Schema
  • Queries
  • Mutations
  • Subscriptions
View Reference →
SDK Libraries
Official client libraries
  • JavaScript/TypeScript
  • Python
  • Go
  • Ruby
View Reference →

Code Examples

JavaScript
JavaScript
// Initialize Stakly SDK
import { StaklyClient } from '@stakly/sdk';

const client = new StaklyClient({
  apiKey: process.env.STAKLY_API_KEY
});

// Generate a React component
const result = await client.generate({
  prompt: "Create a modern dashboard with charts",
  framework: "react",
  style: "tailwind"
});

console.log(result.files);
More examples →
Python
Python
# Initialize Stakly SDK
from stakly import StaklyClient

client = StaklyClient(
    api_key=os.environ['STAKLY_API_KEY']
)

# Generate a FastAPI backend
result = client.generate(
    prompt="Create a REST API for user management",
    framework="fastapi",
    database="postgresql"
)

for file in result.files:
    print(f"Created: {file.path}")
More examples →
cURL
cURL
# Generate code via REST API
curl -X POST https://api.stakly.dev/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Create a landing page",
    "framework": "nextjs",
    "style": "modern"
  }'
More examples →

Additional Resources

API Changelog

Stay updated with the latest API changes and improvements

Current Version: v2.0.0Released: January 16, 2025

Can't find what you're looking for?

Our support team is here to help