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/completions

Generate code completions based on context

POST/v1/chat

Ask questions about your codebase

GET/v1/projects

List all connected projects

POST/v1/index

Index a repository for knowledge base

GET/v1/usage

Get 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}'