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_KEY

You can find your API key in your dashboard under Settings → API Keys.

Base URL

https://api.jgnext.com

Endpoints

POST/api/v1/ai/builder

Generate 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/sessions

List all builder sessions for the authenticated user

curl https://api.jgnext.com/api/builder/sessions \
  -H "Authorization: Bearer YOUR_API_KEY"
POST/api/builder/session

Create 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/balance

Get current credit balance for the authenticated user

curl https://api.jgnext.com/api/credits/balance \
  -H "Authorization: Bearer YOUR_API_KEY"
POST/api/builder/deploy

Deploy 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
JGNEXT - Build Software with AI in Minutes | No-Code Platform