API Reference
Integrate stackotter into your applications with our REST API.
Authentication
Secure API key authentication with Bearer tokens.
Rate Limits
1000 requests/minute for Pro, unlimited for Enterprise.
SDKs
Official SDKs for JavaScript, Python, and Go.
Base URL
https://api.stackotter.dev/v1
Endpoints
POST
/v1/completionsGenerate code completions based on context
POST
/v1/chatAsk questions about your codebase
GET
/v1/projectsList all connected projects
POST
/v1/indexIndex a repository for knowledge base
GET
/v1/usageGet current usage statistics
Quick Example
Make your first API call
curl -X POST https://api.stackotter.dev/v1/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "function fibonacci(", "max_tokens": 100}'