Exports organization-level analytics as a CSV file.
/api/export/analyticsExports organization-level analytics as a CSV file. The format is always CSV, and when no date range is provided the report covers the last 30 days. date_from and date_to use ISO 8601 instants. Without them, the report covers the previous 30 days ending at request time.
Bearer API key or X-API-Key header.export:readautomation_api)Query parameter. Format. Allowed values: csv.
Query parameter. ISO 8601 date and time for date_from.
Query parameter. ISO 8601 date and time for date_to.
text/csv
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
"metric,value,period_start,period_end\nTotal Conversations,42,2026-07-01T00:00:00.000Z,2026-07-31T23:59:59.000Z"{
"error": {
"code": "string",
"message": "string",
"fields": {
"property1": "string",
"property2": "string"
},
"details": {},
"correlationId": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"fields": {
"property1": "string",
"property2": "string"
},
"details": {},
"correlationId": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"fields": {
"property1": "string",
"property2": "string"
},
"details": {},
"correlationId": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"fields": {
"property1": "string",
"property2": "string"
},
"details": {},
"correlationId": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"fields": {
"property1": "string",
"property2": "string"
},
"details": {},
"correlationId": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"fields": {
"property1": "string",
"property2": "string"
},
"details": {},
"correlationId": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"fields": {
"property1": "string",
"property2": "string"
},
"details": {},
"correlationId": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"fields": {
"property1": "string",
"property2": "string"
},
"details": {},
"correlationId": "string"
}
}curl --request GET \
'https://api.convor.io/api/export/analytics?format=csv' \
--header 'Accept: text/csv' \
--header 'Authorization: Bearer convor_sk_...'const response = await fetch("https://api.convor.io/api/export/analytics?format=csv", {
method: "GET",
headers: {
"Accept": "text/csv",
"Authorization": "Bearer convor_sk_..."
},
});
const contentType = response.headers.get("content-type") ?? "";
const data = response.status === 204
? null
: contentType.includes("json")
? await response.json()
: contentType.startsWith("text/")
? await response.text()
: await response.blob();
if (!response.ok) {
const message = typeof data === "object" && data !== null
&& "error" in data && typeof data.error === "object"
&& data.error !== null && "message" in data.error
? String(data.error.message)
: "Convor API request failed (" + response.status + ")";
throw new Error(message);
}
console.log(data);Was this page helpful?
Bulk export conversations with filters
Streams conversations with filters as CSV or JSON, including operator names and flattened message content.
Export conversations with messages
Streams conversations from the current organization as CSV or JSON, including flattened message content for each conversation.