---
title: "Get Log By Request"
method: GET
path: "/api/log/by-request"
tags: ["Stats"]
---

# Get Log By Request

`GET /api/log/by-request`

## Request

- Base URL: `https://api.unorouter.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.unorouter.com/api/log/by-request`
- Auth: none required

## Query parameters

- `request_id` string

## Response `200`

OK

- ResponseDtoLogByRequestData: Response_dto.LogByRequestData schema
  - `data` LogByRequestData, required
    - `channel` string, required
    - `completion_tokens` integer, required
    - `group` string, required
    - `model_name` string, required
    - `prompt_tokens` integer, required
    - `quota` integer, required
    - `use_time` integer, required
  - `message` string, required
  - `success` boolean, required

---

[API](https://skmtc.dev/unorouter/apis/new-api.md) - [All operations](https://skmtc.dev/unorouter/apis/new-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unorouter/apis/new-api/revisions/1b50ada14f59?raw)
