Get Your API Key
Sign up at useadmesh.com to get your free API key.Make Your First API Call
Basic cURL Example
Understanding the Response
The API returns a comprehensive response structure that includes:session_id: Unique identifier for tracking the conversationintent: Detected user intent with goal, purchase intent, categories, and recommended layoutresponse: Main response containing:summary: Text summary of recommendationscitation_summary: Markdown-formatted summary with embedded links (when layout_type is “citation”)recommendations: Array of product recommendations with detailed metadatafollowup_suggestions: Suggested follow-up queries for continued conversationlayout_type: Recommended UI layout for displaying results
tokens_used: Number of AI tokens consumedmodel_used: AI model used for processing
Key Fields for Integration
- Use
admesh_linkfor all clicks to ensure proper tracking and attribution - The
meta.reasonfield provides detailed explanation for why each product was recommended trust_scoreandcontextual_relevance_scorehelp you prioritize recommendationscontextual_relevance_score(0-100) indicates how well the product matches the user’s intent and is used for CPX billing calculationsfollowup_suggestionsenable conversational experiences
Choose Your Language
Next Steps (Optional)
Display Recommendations (Frontend)
Display Recommendations (Frontend)
If you’re building a frontend, you can use our React components to display recommendations:Learn more about UI components →
Backend Integration Examples
Backend Integration Examples
Understanding the Response
Understanding the Response
Each recommendation includes:
title- Product/service namereason- Why it’s recommended for this queryadmesh_link- Tracking URL (use this for clicks)pricing- Cost informationfeatures- Key features listtrial_days- Free trial period
You’re Ready!
That’s it! You now have AdMesh recommendations working in your application.What’s Next?
- Need help? → Contact Support
- Want UI components? → Frontend Integration Guide
- More examples? → Integration Examples
- Complete API docs? → API Reference