Skip to Content

ExportDashboard

POST
/analytics/v1/dashboards/{dashboard_id}/export

Authorization

headerX-API-Key<token>

API key for protected endpoints, supplied in the X-API-Key header.

Path Parameters

dashboard_id*dashboard_id

Request Body

required
application/json
{
  "type": "object",
  "properties": {
    "time_start": {
      "type": "string",
      "examples": [
        "2026-01-15T10:30:00Z"
      ],
      "title": "time_start"
    },
    "time_end": {
      "type": "string",
      "examples": [
        "2026-01-15T10:30:00Z"
      ],
      "title": "time_end"
    },
    "format": {
      "examples": [
        "EXPORT_FORMAT_CSV"
      ],
      "title": "format",
      "$ref": "#/components/schemas/analytics.v1.ExportFormat",
      "$ref-value": {
        "type": "string",
        "title": "ExportFormat",
        "enum": [
          "EXPORT_FORMAT_UNSPECIFIED",
          "EXPORT_FORMAT_CSV",
          "EXPORT_FORMAT_XLSX",
          "EXPORT_FORMAT_PDF",
          "EXPORT_FORMAT_JSON"
        ]
      }
    }
  },
  "title": "ExportDashboardRequest",
  "required": [
    "time_start",
    "time_end"
  ],
  "additionalProperties": false
}
time_start*string
time_end*string
format?unknown

Response Body

200application/json

Success

type: unknown

{
  "$ref": "#/components/schemas/analytics.v1.ExportDashboardResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "content": {
        "type": "string",
        "title": "content",
        "format": "byte"
      },
      "content_type": {
        "type": "string",
        "examples": [
          "text/csv"
        ],
        "title": "content_type"
      },
      "filename": {
        "type": "string",
        "examples": [
          "traffic-overview-20260115.csv"
        ],
        "title": "filename"
      },
      "widget_count": {
        "type": "integer",
        "title": "widget_count",
        "format": "int32"
      },
      "row_count": {
        "type": "integer",
        "title": "row_count",
        "format": "int32"
      }
    },
    "title": "ExportDashboardResponse",
    "additionalProperties": false
  }
}
default
curl -X POST 'https://api.rixl.com/analytics/v1/dashboards/string/export'

Success

application/json

{
  "$ref": "#/components/schemas/analytics.v1.ExportDashboardResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "content": {
        "type": "string",
        "title": "content",
        "format": "byte"
      },
      "content_type": {
        "type": "string",
        "examples": [
          "text/csv"
        ],
        "title": "content_type"
      },
      "filename": {
        "type": "string",
        "examples": [
          "traffic-overview-20260115.csv"
        ],
        "title": "filename"
      },
      "widget_count": {
        "type": "integer",
        "title": "widget_count",
        "format": "int32"
      },
      "row_count": {
        "type": "integer",
        "title": "row_count",
        "format": "int32"
      }
    },
    "title": "ExportDashboardResponse",
    "additionalProperties": false
  }
}