Skip to content
OperadeDocs

Search documentation

Type to search documentation.

Documentation
Copy page
Open raw Markdown

Export an analytics tab

Export the selected analytics tab and filters as a UTF-8 CSV attachment. Topics exports require an agent and accept only agent and branch filters.

Endpoint

GET/api/v1/workspaces/{workspace_id}/analytics/tabs/{tab}/export

Authentication

Operation classAuthenticationMinimum roleAPI key
customer-apiBearer API key or dashboard session cookie; dashboard mutations also require X-CX-Request: 1.memberAllowed

Parameters

NameInTypeRequiredDescription
workspace_idpathstringYes—
tabpathstringYes—
fromquerystring or nullNo—
toquerystring or nullNo—
timezonequerystring or nullNo—
granularityquerystring or nullNo—
agent_idquerystring or nullNo—
branch_idquerystring or nullNo—
version_idquerystring or nullNo—
sourcequerystring or nullNo—
group_byquerystring or nullNo—

Request body

This operation has no request body.

Example

cURL
curl --request GET 'https://operade.ai/api/v1/workspaces/ws_demo/analytics/tabs/general/export?granularity=day' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --output analytics.csv

Responses

StatusDescriptionContent
4XXClient Errorapplication/json: ErrorResponse
200A UTF-8 CSV export.text/csv: string

4XX application/json response schema

Field pathTypeReferenceFormatNullableRequiredEnumDescription
$objectErrorResponse—NoYes——
errorobjectErrorItem—NoYes——
error.codestring——NoYes——
error.detailsobject——NoNo——
error.messagestring——NoYes——

200 text/csv response schema

Field pathTypeReferenceFormatNullableRequiredEnumDescription
$string——NoYes——

Response example

Response body JSON
"section,name,value,denominator\r\n"

Errors

Reviewed common and route-declared errors are summarized here; the list is not exhaustive. Start with the distributed error index to find each code's canonical domain page.

StatusCodeDescription
401unauthenticatedAuthentication is missing, invalid, or revoked.
403forbiddenThe authenticated caller does not have access to this operation.
404not_foundThe requested workspace resource was not found.
422validation_failedThe analytics window, filter combination, tab, grouping, or requested resource is invalid.
On this page
  1. Endpoint
  2. Authentication
  3. Parameters
  4. Request body
  5. Example
  6. Responses
  7. 4XX application/json response schema
  8. 200 text/csv response schema
  9. Response example
  10. Errors
  11. Related operations