Yandex Metrika: connect
metrika_connectStarts a read-only Yandex Metrika browser sign-in and returns a one-time local login URL so users authorize without exposing tokens or codes in chat. Use connection_id to renew expired sign-ins.
Instructions
Signs in to Yandex Metrika in the browser (read-only access). Returns a one-time local login_url for the user to open; no token or code ever passes through the chat. Pass connection_id to renew an expired connection. Afterwards call metrika_status to get the new connection_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | No | Friendly name, e.g. 'Agency: client A'. | |
| connection_id | No | Re-authorize an existing connection that needs a new sign-in. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| status | Yes | ||
| login_url | Yes | Local one-time page; give it to the user to open in a browser. | |
| expires_at | Yes | ||
| instructions | Yes | ||
| schema_version | Yes |