---
title: "GET /v1/console/usage/logs/{id}"
method: GET
path: "/v1/console/usage/logs/{id}"
tags: ["UsageService"]
---

# GET /v1/console/usage/logs/{id}

`GET /v1/console/usage/logs/{id}`

GetLogDetail 获取单条用户可见日志摘要（不含 meta 及请求/响应正文）。

## Path parameters

- `id` string, required

## Query parameters

- `createdAt` string, date-time

## Response `200`

OK

- UsageV1GetLogDetailReply
  - `log` UsageV1UsageLogDetail
    - `apiKeyId` string
    - `billedMicros` string
    - `billingDetail` string — billing_detail 后端直出的中文计费过程文本，前端按换行渲染即可。
    - `billingMode` string — billing_mode 结算时计费方式快照（token/per_request/image/video/tiered_expr）； 空串=迁移前历史行或免费未结算行。前端计费类型展示优先用本字段，不再从分项 label 推断。
    - `cachedTokens` string
    - `channelId` string
    - `channelName` string
    - `channelSaleRatio` string — 渠道资源销售倍率快照（decimal 串如 "1.2000"）；空 = 旧记录无快照。
    - `channelSourceCode` string — 渠道资源 code 快照（用户可见「来源」）；空 = 旧记录或未绑定资源。
    - `clientRequestId` string — 网关层 request id 原文（响应头 X-Request-Id 同值）；与异步任务详情展示的请求 ID 对齐。 空串=历史行或未采集，前端回退展示 request_id。
    - `completionTokens` string
    - `createdAt` string, date-time
    - `currency` string
    - `endpoint` string
    - `errorCode` string
    - `firstTokenMs` string — 首 token 延迟（毫秒）；优先 typed 列，迁移前 meta-only 历史记录兼容回退。
    - `httpStatus` integer
    - `id` string
    - `ip` string
    - `isStream` boolean
    - `latencyMs` string
    - `meta` string — Deprecated: 用户端详情不再返回内部 meta。
    - `modelId` string
    - `modelName` string
    - `promptTokens` string
    - `requestBody` string — 详情字段 Deprecated: 用户端详情不再返回请求正文。
    - `requestId` string
    - `requestType` string
    - `responseBody` string — Deprecated: 用户端详情不再返回响应正文。
    - `subscriptionPreId` string
    - `success` boolean — success 行级成败结论，与列表 status 筛选同一谓词（WP7 双列回退口径）在服务端计算。 前端徽标请直接用本字段；http_status 在迁移历史行上可能为 0，不可用于本地推断成败。
    - `teamId` string
    - `tokenName` string
    - `totalTokens` string
    - `unitsConsumed` string
    - `userId` string
    - `userTierRatio` string — 用户等级倍率快照（decimal 串如 "1.5000"，计费实际用值）；空 = 旧记录未钉值。
    - `walletHoldId` string
    - `walletLedgerId` string

---

[API](https://skmtc.dev/apiqik/apis/apiqik-api.md) · [All operations](https://skmtc.dev/apiqik/apis/apiqik-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apiqik/apiqik-api/revisions/e06b96127408/schema)
