For developers
Developer Portal
APIs, SDKs, webhooks, and everything needed to extend the platform.
REST API
OpenAPI-documented endpoints for verify, analyze, and chat.
SDKs
TypeScript & Python SDKs generated from the OpenAPI schema.
Webhooks
Subscribe to repo.indexed, agent.completed, security.scan.done.
Authentication
Bearer tokens minted per workspace. Rotate via Admin → Keys.
Rate limits
60 req/min per key. Bursts up to 120 with token bucket.
Error codes
Standardized JSON error envelope with retry semantics.
Quickstart
A three-step introduction.
# 1. Verify a repository
curl -X POST https://codepilotaai.lovable.app/api/verify \
-H "Content-Type: application/json" \
-d '{"url":"https://github.com/vercel/next.js"}'
# 2. Run an agent
curl -X POST https://codepilotaai.lovable.app/api/analyze \
-H "Authorization: Bearer $CODEPILOT_KEY" \
-d '{"repo":"vercel/next.js","agent":"security"}'
# 3. Stream a chat completion
curl -N -X POST https://codepilotaai.lovable.app/api/chat \
-H "Authorization: Bearer $CODEPILOT_KEY" \
-d '{"messages":[{"role":"user","content":"Summarize this repo"}]}'