Send messages to the Nouvel AI copilot for help with ad strategy, caption writing, product research, and creative ideation. This is the API version of the dashboard copilot — it returns a complete JSON response instead of a server-sent event stream.
Product URL for competitor ad research. When provided, the copilot fetches competitor ad intelligence from the Foreplay database to inform its responses.
{ "response": "Here are 3 Instagram captions for your protein powder:\n\n1. **The Gains Caption**: \"Every scoop brings you closer to your goals. 25g of pure whey protein, zero compromises. 💪 #FitnessJourney #ProteinPowder\"\n\n2. **The Lifestyle Caption**: \"Morning routine upgrade: coffee ☕ + [Brand] protein shake = unstoppable. What's in your post-workout shake?\"\n\n3. **The Social Proof Caption**: \"10,000+ athletes trust [Brand] for their recovery. Join the movement. Link in bio. 🏋️\"", "model": "balanced"}
The copilot enforces a daily message limit per user, determined by your plan. The limit resets at midnight UTC.When the limit is reached, the API returns a 429 response with:
The API copilot returns the complete response as JSON, making it ideal for automation and integration workflows where you need the full response before proceeding.
The copilot is stateless. To maintain context across turns, include all previous messages in the messages array. This lets the copilot refine and build on previous responses.
Use productUrl for competitive insights
When asking about ad strategy or creative angles, include a productUrl to give the copilot access to competitor ad data from the Foreplay intelligence database.
Monitor daily limits
Check the X-RateLimit-Remaining header to track your API rate limit, and handle 429 responses gracefully with the resetAt timestamp.