Returns one card's data as CSV content plus a suggested filename, for the export button.
Takes the same range, scope and option parameters as the card endpoint and builds the payload the same way, then serialises it with CsvExporter. The response is JSON carrying filename and content — not a file download — so the client writes the file itself. The filename embeds the card key and the resolved range.
Endpoint
Method:
GETPath:
/insights/cards/{card}/exportEdition: Core
Controller:
InsightsController@exportRoute source:
fluent-community/app/Http/Routes/api.php:168Controller source:
fluent-community/app/Http/Controllers/InsightsController.phpSite admins only (
InsightsPolicy).Returns 422 when the card does not list
exportamong the features it supports.freshis not read here: an export always recomputes.
Inferred sample
No recorded sample exists for this endpoint yet, so the payload below is inferred from the controller and model definitions. Field names and types are accurate; values are placeholders.
GET Get Export
Returns one card's data as CSV content plus a suggested filename, for the export button.
Controller: InsightsController@export
Route source: fluent-community/app/Http/Routes/api.php:168
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Card extracted from the URL path.
Responses
Successful response