API Reference
JGNEXT API
Build integrations and automate your workflow with our RESTful API.
Authentication
All API requests require authentication using a Bearer token. Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEYYou can find your API key in your dashboard under Settings → API Keys.
Base URL
https://api.jgnext.comEndpoints
POST
/api/v1/ai/builderGenerate code from a natural language prompt
curl -X POST https://api.jgnext.com/api/v1/ai/builder \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "Create a todo app with React"}'GET
/api/builder/sessionsList all builder sessions for the authenticated user
curl https://api.jgnext.com/api/builder/sessions \ -H "Authorization: Bearer YOUR_API_KEY"
POST
/api/builder/sessionCreate a new builder session
curl -X POST https://api.jgnext.com/api/builder/session \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "My New Project"}'GET
/api/credits/balanceGet current credit balance for the authenticated user
curl https://api.jgnext.com/api/credits/balance \ -H "Authorization: Bearer YOUR_API_KEY"
POST
/api/builder/deployDeploy a project to production
curl -X POST https://api.jgnext.com/api/builder/deploy \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sessionId": "abc123", "platform": "vercel"}'Rate Limits
- • Starter: 100 requests/minute
- • Professional: 1,000 requests/minute
- • Enterprise: Unlimited