
Developer Hub
Build with Optimly APIs
Integrate conversational AI analytics into your applications with our powerful REST API. JavaScript and Python SDKs coming soon.
API Access
curl -X POST https://api.optimly.io/v1/analyze
Real-time Analytics
Stream conversation data and get instant insights with WebSocket connections and REST APIs.
Multi-platform SDKs
JavaScript and Python SDKs coming in 2025. Use our REST API for immediate integration with any tech stack.
AI-powered Insights
Leverage our ML models to extract sentiment, topics, and actionable insights from conversations.
API Examples
Track a Conversation (REST API)
curl -X POST https://api.optimly.io/v1/conversations \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"conversationId": "conv_123",
"messages": [
{ "role": "user", "content": "I need help with billing" },
{ "role": "assistant", "content": "I can help you with that!" }
],
"metadata": {
"source": "website-chat",
"userId": "user_456"
}
}'
Get Analytics
const analytics = await optimly.analytics.get({
timeRange: '7d',
filters: {
source: 'website-chat'
},
metrics: ['total_conversations', 'avg_sentiment', 'top_topics']
});
console.log(analytics);
// {
// total_conversations: 1247,
// avg_sentiment: 0.8,
// top_topics: ['billing', 'support', 'features']
// }
Developer Community

Common inquiries answered