API
API Reference
Build powerful integrations with the Bonfy REST and WebSocket APIs.
Authentication
All API requests require an API key passed via the Authorization header.
Request Header
Authorization: Bearer your_api_key_here
Content-Type: application/json
Base URL
https://api.bonfy.in/v1
Endpoints
GET
/workspaces
List all workspaces for the authenticated user.
POST
/workspaces
Create a new workspace with optional AI configuration.
GET
/workspaces/:id/members
List all members in a workspace.
POST
/ai/complete
Request AI code completion for a given context.
POST
/ai/review
Submit code for AI-powered review and suggestions.
GET
/templates
Browse available project templates.
WebSocket
Real-time collaboration events are delivered via WebSocket connections.
WebSocket Connection
wss://realtime.bonfy.in/v1/ws?workspace_id=xxx&token=your_token
Rate Limits
Spark (Free)
100 requests/minute
Blaze
1,000 requests/minute
Inferno
Custom limits