> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xenia.team/llms.txt
> Use this file to discover all available pages before exploring further.

# Grid Report View Spreadsheet

> Generates and returns the grid report view as a binary Excel workbook. The response is an .xlsx file (Content-Type application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) with a Content-Disposition attachment header, not JSON. The underlying route requires the Advanced Dashboards feature and the CAN_VIEW_REPORTING permission — the API key acts as its default user.

Downloads a grid report view as a binary Excel workbook (`.xlsx`). The response is a file attachment with Content-Type `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`, not JSON. The underlying route requires the Advanced Dashboards feature plus the `CAN_VIEW_REPORTING` permission (inherited from the key's default user).


## OpenAPI

````yaml GET /api/v1/mgt/grid-report-views/{viewId}/spreadsheet
openapi: 3.1.0
info:
  title: Xenia Team API - Grid Report View Spreadsheet
  description: Downloads a grid report view as an Excel (.xlsx) spreadsheet.
  version: 1.0.0
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/mgt/grid-report-views/{viewId}/spreadsheet:
    get:
      tags:
        - Reporting
      summary: Download Grid Report View Spreadsheet
      description: >-
        Generates and returns the grid report view as a binary Excel workbook.
        The response is an .xlsx file (Content-Type
        application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) with
        a Content-Disposition attachment header, not JSON. The underlying route
        requires the Advanced Dashboards feature and the CAN_VIEW_REPORTING
        permission — the API key acts as its default user.
      parameters:
        - name: viewId
          in: path
          required: true
          description: UUID of the grid report view to export.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: >-
            Spreadsheet generated successfully. Returns the .xlsx file as a
            binary attachment.
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: string
                format: binary
        '401':
          description: >-
            Unauthorized - Invalid client credentials, or client does not belong
            to this workspace.
        '403':
          description: 'Forbidden: API key not authorized for this route.'
        '404':
          description: Not Found - Grid report view not found or failed to retrieve data.
        '500':
          description: Internal Server Error.
      security:
        - clientKey: []
          clientSecret: []
components:
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: x-client-key
    clientSecret:
      type: apiKey
      in: header
      name: x-client-secret

````