# Статистика посещений

Этот метод позволят сгенерировать ссskre формата: <https://app.botzerox.ru/external-auth/user.php?token=f4aace58eed5a7bdb98f127d1c9707f83e39be2bdff94aff1b4851ce656fcdc6>&#x20;

Для автоматической авторизация клиентов, без ввода логина и пароля

Обязательные параметры:

* **email** - email клиента, который оплатил подписку в биллинге партнера
* **partnertoken** - уникальный токен партнера, выдаваемый, при заключении договора

```
POST app.botzerox.ru/external-auth/external-auth.php
Content-Type: application/json

{
  "email": "zakir@mail.ru",
  "partner_token": "abc123partnersecret"
}

Response 200 OK:
{
  "link": "https://app.botzerox.ru/external-auth/user.php?token=abc123...",
  "expires_at": "2025-05-22 15:05:00"
}

Response 400 Bad Request:
{
  "error": "Email и партнёрский токен обязательны"
}

Response 403 Forbidden:
{
  "error": "Недопустимый партнёр"
}

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ceo-4.gitbook.io/botzerox/basics/openapi-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
