---
title: "POST /v1beta/{+parent}/measurementProtocolSecrets"
method: POST
path: "/v1beta/{+parent}/measurementProtocolSecrets"
tags: ["properties"]
---

# POST /v1beta/{+parent}/measurementProtocolSecrets

`POST /v1beta/{+parent}/measurementProtocolSecrets`

Creates a measurement protocol secret.

## Path parameters

- `parent` string, required

## Request body

- GoogleAnalyticsAdminV1betaMeasurementProtocolSecret — A secret value used for sending hits to Measurement Protocol.
  - `secretValue` string — Output only. The measurement protocol secret value. Pass this value to the api_secret field of the Measurement Protocol API when sending hits to this secret's parent property.
  - `name` string — Identifier. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
  - `displayName` string — Required. Human-readable display name for this secret.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/analyticsadmin.md) · [All operations](https://skmtc.net/google/apis/analyticsadmin/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/analyticsadmin/versions/ec5f6df9b9a2/schema)
