---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/metrika/en/management/openapi/measurement/generateToken.md
  - https://yandex.com/dev/metrika/ru/management/openapi/measurement/generateToken.md
  - href: ru/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/dev/metrika/ru/llms.txt

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

# Генерация дополнительных токенов

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

Генерирует дополнительный токен для указанного счетчика. Максимальное количество активных токенов на счетчик — 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

Идентификатор счетчика, для которого необходимо сгенерировать дополнительный токен.
{.table-cell}
||
|#{.json-schema-properties}

## Responses

<div class="openapi__response__code__200">

## 200 OK

Сгенерированный токен

### Body

application/json

**Type:** string

</div>

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


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