Référence API
API JGNEXT
Créez des intégrations et automatisez votre workflow avec notre API RESTful.
Authentification
Toutes les requĂȘtes API nĂ©cessitent une authentification Ă l'aide d'un jeton Bearer. Incluez votre clĂ© API dans l'en-tĂȘte Authorization :
Authorization: Bearer YOUR_API_KEYVous pouvez trouver votre clĂ© API dans votre tableau de bord sous Settings â API Keys.
URL de base
https://api.jgnext.comPoints de terminaison
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"}'Limites de débit
- âą Starter : 60 requĂȘtes/minute
- âą Professional : 60 requĂȘtes/minute
- âą Entreprise : 1 000 requĂȘtes/minute