---
title: "List columns for all elements in a report"
method: GET
path: "/v2/reports/{reportId}/columns"
tags: ["Reports"]
---

# List columns for all elements in a report

`GET /v2/reports/{reportId}/columns`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/reports/{reportId}/columns`
- Auth: HTTP bearer

This endpoint retrieves all columns in a report for all data elements in the report.

### Usage notes
- Retrieve the **reportId** by calling the [/v2/reports](https://help.sigmacomputing.com/reference/list-reports) endpoint.

### Usage scenarios
- **Data exploration:** Enable users to explore the data structure of a report element, facilitating deeper analysis and understanding.
- **Integration tasks:** Useful for developers integrating Sigma with other tools that need to know the data structure to map data accurately.

### Best practices
- Use this endpoint when setting up interfaces that require specific knowledge about the data structure.

## Path parameters

- `reportId` string, required

## Query parameters

- `pageToken` string
- `pageSize` integer

## Response `200`

The response body.

- ReportsListReportColumnsResponse200
  - `entries` V2ReportsReportIdColumnsGetResponsesContentApplicationJsonSchemaEntriesItems[], required: Array of results returned by the endpoint
    - `columnId` string, required: Column ID
    - `name` string, required: Column name
    - `formula` string, required: Column formula or source column reference.
    - `type` V2ReportsReportIdColumnsGetResponsesContentApplicationJsonSchemaEntriesItemsType, required: The column's data type, represented as a recursive type object.
    - `elementId` string, required: Element ID
  - `nextPageToken` string: A string that can be passed to the `pageToken` parameter in the next request to fetch the next page of results. Not present in the last page of results. **Must be treated as an opaque string.**

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
