---
title: "Create report"
method: POST
path: "/googleanalytics4/report"
tags: ["Google analytics 4 reports"]
---

# Create report

`POST /googleanalytics4/report`

## Request body

- Ga4ReportCreateModel — Model used to create a GA4 report with.
  - `Name` string — Name of the report.
  - `PropertyName` string — Name of the property the report gets its data from.
  - `MetricNames` string[] — Names of the metrics read from the property when running the report.
  - `Filters` Ga4ReportFilterUpdateModel[] — Dimension Filters for filtering report data. Max 3 unique filters.
    - `DimensionName` string — The dimension used for filtering. (‘hostName', 'language' or 'languageCode').
    - `Value` string — Filter value
  - `NrOfDaysBack` integer — How many days worth of data should be taken into account.
  - `MappingDimensionName` string — The name of the dimension used to map to an attribute.
  - `MappingAttributeId` integer — The ID of the attribute to which the dimension gets mapped.
  - `RegexTemplate` string — Regex template used to get a substring of a URL. This substring is matched to the chosen mapping attribute. Only applicable to reports using the page views metric.

## Response `200`

The created GA4 report

- Ga4ReportModel — Information about a GA4 report.
  - `Id` integer — ID of the report.
  - `Name` string — Name of the report.
  - `Property` ReportPropertyModel — Information about a GA4 report's property.
    - `Name` string — The name (which is also like an ID) of the property.
    - `DisplayName` string — The display name of the property.
  - `Metrics` ReportMetricModel[] — The metrics read from the property when running the report.
    - `Name` string — The name (which is used like an ID) of the metric.
    - `DisplayName` string — Display name of the metric.
  - `Filters` Ga4ReportFilterModel[] — The dimensional filters applied to the data of the report.
    - `DisplayName` string — The dimension used for filtering
    - `DimensionName` string — The dimension used for filtering. (‘hostName', 'language' or 'languageCode').
    - `Value` string — Filter value
  - `NrOfDaysBack` integer — How many days worth of data should be taken into account.
  - `MappingDimension` ReportDimensionModel — Information about a GA4 report's dimension.
    - `Name` string — The name (which is used like an ID) of the dimension.
    - `DisplayName` string — The display name of the dimension.
  - `MappingAttribute` ReportAttributeModel — Information about a GA4 report's attribute.
    - `Id` integer — ID of the attribute.
    - `Name` string — Name of the attribute.
  - `RegexTemplate` string — Regex template used to get a substring of a URL. This substring is matched to the chosen mapping attribute. Only applicable to reports using the page views metric.

## Other responses

- `400` — BadRequest

---

[API](https://skmtc.net/tweakwise/apis/frontend-api.md) · [All operations](https://skmtc.net/tweakwise/apis/frontend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tweakwise/frontend-api/revisions/9bd1e2b3633f/schema)
