Users

Получить суточную статистику пользователя

Changed on

Конечная точка для получения агрегированной статистики по дням за указанный период. Требуется авторизация.

get/v1/users/stats

Request

  • Base URL
    https://api.hydraai.ru (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Query parameters

start_datestring date nullable

Дата начала периода в формате YYYY-MM-DD. По умолчанию — 30 дней назад.

end_datestring date nullable

Дата окончания периода в формате YYYY-MM-DD. По умолчанию — сегодня.

Response

Successful Response

period_start_datestring date required

Начало периода статистики

period_end_datestring date required

Конец периода статистики

total_requestsinteger required

Всего запросов за указанный период

total_prompt_tokensinteger required

Всего prompt_tokens за указанный период

total_cache_read_tokensinteger required

Всего cache_read_tokens за указанный период

total_completion_tokensinteger required

Всего completion_tokens за указанный период

total_coststring required

Общая стоимость запросов за указанный период

total_free_requestsinteger required

Всего бесплатных запросов за указанный период

Changes

    • info

      added the optional property // to the response with the status

    • info

      the // response's property pattern ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$ was removed for the status

    • info

      the response's property pattern ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$ was removed for the status