Skip to main content
GET
/
api
/
v1
/
chat-analytics
/
export
Export chat analytics data as CSV
const url = 'https://studyfetchapi.com/api/v1/chat-analytics/export';
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}, body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
This response does not have an example.

Authorizations

x-api-key
string
header
required

API Key for authentication

Query Parameters

componentId
string

Component ID to analyze

organizationId
string

Organization ID to filter by

userId
string

User ID to filter by

groupIds
string[]

Group IDs to filter by

startDate
string<date-time>

Start date for analysis

endDate
string<date-time>

End date for analysis

modelKey
string

AI model to use for analysis

Example:

"gpt-4o-mini"

Response

200 - text/csv

CSV export of chat analytics

The response is of type file.

I