Prompt Builder
Build ready-to-paste prompts via a plain REST endpoint.
POST /api/v1/build-prompt turns a rough idea into a complete, ready-to-paste prompt for a specific target model — clear and lean, grounded only in what the idea actually says, with bracketed placeholders for anything genuinely missing.
Request
bash
curl -X POST https://cuelara.com/api/v1/build-prompt \-H "Content-Type: application/json" \-H "Authorization: Bearer YOUR_TOKEN_HERE" \-d '{"idea": "a chatbot that answers questions about our docs","target": "Claude","useCase": "Coding"}'
The Authorization header is optional — omit it to call anonymously (lower rate limit). Get a token from /dashboard/mcp.
Body
idea(string, required) — the rough idea to turn into a prompt (max 4,000 characters).target(string, optional) —"Any AI model"(default),"ChatGPT","Claude","Gemini","Grok","DeepSeek","Cursor / Windsurf", or"GitHub Copilot".useCase(string, optional) —"General"(default),"Coding","Writing","Marketing","Business", or"Research".detail(string, optional) —"Concise","Balanced"(default), or"Detailed".
Response
json
Errors
400 invalid body, 401 invalid token, 429 rate limit, 502/503/504 upstream AI failure — each returns { "error": "..." }.
Limits
Anonymous calls share the same free daily limit as the website's Prompt Builder, keyed by IP. Signed-in calls use your own account's plan limits instead. See the API overview for auth and CORS details.