curl -X GET "https://api.mintlify.com/v1/analytics/{projectId}/assistant?dateFrom=2024-01-01&dateTo=2024-01-31&limit=100" \ -H "Authorization: Bearer YOUR_API_KEY"
{ "conversations": [ { "id": "conv_123abc", "timestamp": "2024-01-15T10:30:00.000Z", "query": "How do I authenticate with the API?", "response": "To authenticate with the API, you need to include your API key in the Authorization header of your requests. You can generate an API key from your dashboard settings...", "sources": [ { "title": "Authentication", "url": "https://docs.example.com/api-reference/authentication" }, { "title": "API Keys", "url": "https://docs.example.com/api-reference/api-keys" } ], "queryCategory": "authentication" }, { "id": "conv_456def", "timestamp": "2024-01-14T14:20:00.000Z", "query": "What programming languages are supported?", "response": "We provide SDKs and examples for JavaScript, Python, Ruby, Go, and PHP. You can find code examples in each language throughout our documentation...", "sources": [ { "title": "SDKs", "url": "https://docs.example.com/sdks" }, { "title": "Code Examples", "url": "https://docs.example.com/examples" } ], "queryCategory": "general" } ], "nextCursor": "01HQZX9K2MNBVCXZ7GQRST8WVY", "hasMore": true}
Analytics
Get assistant conversations
Export AI assistant conversation history from your documentation
Use this endpoint to export AI assistant conversation history from your documentation. Each conversation includes the user query, assistant response, sources cited, and query category.Paginate through results using the cursor parameter returned in the response. Continue fetching while hasMore is true.
Whether additional results are available beyond this page.
{ "conversations": [ { "id": "conv_123abc", "timestamp": "2024-01-15T10:30:00.000Z", "query": "How do I authenticate with the API?", "response": "To authenticate with the API, you need to include your API key in the Authorization header of your requests. You can generate an API key from your dashboard settings...", "sources": [ { "title": "Authentication", "url": "https://docs.example.com/api-reference/authentication" }, { "title": "API Keys", "url": "https://docs.example.com/api-reference/api-keys" } ], "queryCategory": "authentication" }, { "id": "conv_456def", "timestamp": "2024-01-14T14:20:00.000Z", "query": "What programming languages are supported?", "response": "We provide SDKs and examples for JavaScript, Python, Ruby, Go, and PHP. You can find code examples in each language throughout our documentation...", "sources": [ { "title": "SDKs", "url": "https://docs.example.com/sdks" }, { "title": "Code Examples", "url": "https://docs.example.com/examples" } ], "queryCategory": "general" } ], "nextCursor": "01HQZX9K2MNBVCXZ7GQRST8WVY", "hasMore": true}