curl -X GET "https://api.mintlify.com/v1/analytics/your_project_id/assistant?dateFrom=2024-01-01&limit=100" \
-H "Authorization: Bearer mint_your_api_key_here"
{
"conversations": [
{
"id": "conv_abc123",
"timestamp": "2024-01-15T10:30:00.000Z",
"query": "How do I install Mintlify?",
"response": "To install Mintlify, you can run `npm install -g mintlify`. This will install the Mintlify CLI globally on your system. After installation, you can verify it by running `mintlify --version`.",
"sources": [
{
"title": "Installation Guide",
"url": "https://your-docs.mintlify.app/quickstart/installation"
},
{
"title": "Getting Started",
"url": "https://your-docs.mintlify.app/getting-started"
}
],
"queryCategory": "installation"
},
{
"id": "conv_def456",
"timestamp": "2024-01-16T14:22:00.000Z",
"query": "What are the API authentication methods?",
"response": "Mintlify supports two types of API keys: Admin API keys (prefixed with mint_) for server-side operations, and Assistant API keys (prefixed with mint_dsc_) for client-side integrations. You can generate both types from your dashboard.",
"sources": [
{
"title": "API Authentication",
"url": "https://your-docs.mintlify.app/api/authentication"
}
],
"queryCategory": "authentication"
}
],
"nextCursor": "01HN8QZXYZ123",
"hasMore": true
}
Export AI assistant conversation history from your documentation
curl -X GET "https://api.mintlify.com/v1/analytics/your_project_id/assistant?dateFrom=2024-01-01&limit=100" \
-H "Authorization: Bearer mint_your_api_key_here"
{
"conversations": [
{
"id": "conv_abc123",
"timestamp": "2024-01-15T10:30:00.000Z",
"query": "How do I install Mintlify?",
"response": "To install Mintlify, you can run `npm install -g mintlify`. This will install the Mintlify CLI globally on your system. After installation, you can verify it by running `mintlify --version`.",
"sources": [
{
"title": "Installation Guide",
"url": "https://your-docs.mintlify.app/quickstart/installation"
},
{
"title": "Getting Started",
"url": "https://your-docs.mintlify.app/getting-started"
}
],
"queryCategory": "installation"
},
{
"id": "conv_def456",
"timestamp": "2024-01-16T14:22:00.000Z",
"query": "What are the API authentication methods?",
"response": "Mintlify supports two types of API keys: Admin API keys (prefixed with mint_) for server-side operations, and Assistant API keys (prefixed with mint_dsc_) for client-side integrations. You can generate both types from your dashboard.",
"sources": [
{
"title": "API Authentication",
"url": "https://your-docs.mintlify.app/api/authentication"
}
],
"queryCategory": "authentication"
}
],
"nextCursor": "01HN8QZXYZ123",
"hasMore": true
}
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 theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Mintlify/docs/llms.txt
Use this file to discover all available pages before exploring further.
cursor parameter returned in the response. Continue fetching while hasMore is true.
mint_). Generate one on the API keys page in your dashboard.
2024-01-01dateTo is an exclusive upper limit. Results include dates before, but not on, the specified date.Example: 2024-01-31nextCursor field.Show Conversation object
dateFrom and dateTo parameters.
curl -X GET "https://api.mintlify.com/v1/analytics/your_project_id/assistant?dateFrom=2024-01-01&limit=100" \
-H "Authorization: Bearer mint_your_api_key_here"
{
"conversations": [
{
"id": "conv_abc123",
"timestamp": "2024-01-15T10:30:00.000Z",
"query": "How do I install Mintlify?",
"response": "To install Mintlify, you can run `npm install -g mintlify`. This will install the Mintlify CLI globally on your system. After installation, you can verify it by running `mintlify --version`.",
"sources": [
{
"title": "Installation Guide",
"url": "https://your-docs.mintlify.app/quickstart/installation"
},
{
"title": "Getting Started",
"url": "https://your-docs.mintlify.app/getting-started"
}
],
"queryCategory": "installation"
},
{
"id": "conv_def456",
"timestamp": "2024-01-16T14:22:00.000Z",
"query": "What are the API authentication methods?",
"response": "Mintlify supports two types of API keys: Admin API keys (prefixed with mint_) for server-side operations, and Assistant API keys (prefixed with mint_dsc_) for client-side integrations. You can generate both types from your dashboard.",
"sources": [
{
"title": "API Authentication",
"url": "https://your-docs.mintlify.app/api/authentication"
}
],
"queryCategory": "authentication"
}
],
"nextCursor": "01HN8QZXYZ123",
"hasMore": true
}