---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com.tr/dev/metrika/en/management/openapi/measurement/generateToken.md
  - https://yandex.com.tr/dev/metrika/ru/management/openapi/measurement/generateToken.md
  - href: en/management/openapi/measurement/generateToken.md
    type: text/markdown
    title: Markdown version
  - href: ../../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/dev/metrika/en/llms.txt

<!-- source: en/management-src/MeasurementProtocolTag/generateToken.md -->
<div class="openapi">

# Generating additional tokens

<!-- markdownlint-disable-file -->

Generates an additional token for the specified tag. The maximum number of active tokens per tag is 5.

## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">

<div class="openapi__request">

GET {.openapi__method}
```text translate=no
https://api-metrika.yandex.net/management/v1/counter/{counterId}/measurement/generate
```

</div>

</div>

</div>

### Path parameters

#|
|| **Name** | **Description** ||
||

_counterId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

ID of the tag for which you want to generate an additional token.
{.table-cell}
||
|#{.json-schema-properties}

## Responses

<div class="openapi__response__code__200">

## 200 OK

Generated token.

### Body

application/json

**Type:** string

</div>

</div>
<!-- endsource: en/management-src/MeasurementProtocolTag/generateToken.md -->


[*Deprecated]: No longer supported, please use an alternative and newer version.