> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pubrio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API 请求日志详情

> 查询某条 API 请求日志的完整请求体、请求头、响应体和响应大小。可在请求列表中获取 `query_log_id` 后通过此接口查看具体内容。



## OpenAPI

````yaml cn-openapi POST /api_keys/logs/lookup
openapi: 3.0.0
info:
  description: Pubrio API 用于搜索、预览和增强联系人及账户信息。Pubrio 数据库提供丰富的 B2B 联系人和销售情报数据。
  version: 1.0.0
  title: Pubrio OpenAPI
  termsOfService: https://pubrio.com/zh-CN/terms-of-service
  contact:
    email: king.lai@pubrio.com
    name: King Lai
    url: https://pubrio.com/zh-CN/get-in-touch
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://api.pubrio.com
security:
  - pubrio_api_key: []
tags:
  - name: Profile
    description: 工作区配置信息和使用统计
  - name: Enrichment
    description: 通过详细的 B2B 数据丰富人员和公司记录
  - name: Lookalike
    description: 查找与指定公司相似的公司
  - name: Search
    description: 使用筛选条件搜索人员、公司、职位、新闻和广告
  - name: Lookup
    description: 查找特定人员、公司、职位、新闻、广告和技术的详细信息
  - name: LinkedIn
    description: 通过 LinkedIn 个人资料 URL 查找人员和公司数据
  - name: Redeem
    description: 兑换积分以解锁人员联系方式（单个和批量）
  - name: Channels
    description: 管理外展渠道模板（创建、更新、删除、列表）
  - name: Monitor
    description: 创建和管理数据监控，包括 Webhook、统计和处理
  - name: Filters
    description: 获取搜索参数的可用筛选值（技术、地点、垂直领域等）
  - name: API Keys
    description: 查看 API 密钥的请求日志和使用情况分析
externalDocs:
  description: Pubrio API 用于搜索、预览和增强联系人及账户信息。Pubrio 数据库提供丰富的 B2B 联系人和销售情报数据。
  url: https://docs.pubrio.com
paths:
  /api_keys/logs/lookup:
    post:
      tags:
        - API Keys
      summary: 查询 API 请求日志详情
      description: 查询某条 API 请求日志的完整请求体、请求头、响应体和响应大小。可在请求列表中获取 `query_log_id` 后通过此接口查看具体内容。
      operationId: api_keys_lookup_log
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - query_log_id
              properties:
                profile_id:
                  $ref: '#/components/schemas/profile_id'
                query_log_id:
                  type: string
                  format: uuid
                  description: 要查询的日志条目唯一标识符，可通过 `/api_keys/logs` 获取。
      responses:
        '200':
          description: 成功响应，返回完整的请求和响应内容。
          content:
            application/json:
              schema:
                type: object
                properties:
                  metadata:
                    type: object
                    properties:
                      query_log_id:
                        type: string
                        format: uuid
                        description: 本次查询的日志条目标识符。
                  data:
                    type: object
                    nullable: true
                    properties:
                      query_log_id:
                        type: string
                        format: uuid
                        description: 日志条目的标识符。
                      request_body:
                        type: string
                        nullable: true
                        description: 原始请求体的 JSON 字符串。
                      request_headers:
                        type: string
                        nullable: true
                        description: 原始请求头的 JSON 字符串，API 密钥等敏感请求头会进行掩码处理。
                      response_body:
                        type: string
                        nullable: true
                        description: 返回给调用方的响应体 JSON 字符串。
                      response_size:
                        type: integer
                        description: 响应体大小（字节）。
              example:
                metadata:
                  query_log_id: fc1ce3dd-39f7-4fbd-9d22-569a17115c11
                data:
                  query_log_id: fc1ce3dd-39f7-4fbd-9d22-569a17115c11
                  request_body: '{"start_date":"2026-05-01","end_date":"2026-05-14"}'
                  request_headers: >-
                    {"host":"api.pubrio.com","user-agent":"curl/8.7.1","accept":"*/*","pubrio-api-key":"***","content-type":"application/json","content-length":"51"}
                  response_body: >-
                    {"metadata":{"filters":{"start_date":"2026-05-01","end_date":"2026-05-14"}},"data":{"series":[...],"by_log_type":[...],"totals":{"credits":41892,"requests":4896}}}
                  response_size: 2346
        '400':
          $ref: '#/components/responses/general_error'
        '429':
          $ref: '#/components/responses/rate_limit_error'
        '500':
          $ref: '#/components/responses/server_error'
components:
  schemas:
    profile_id:
      type: integer
      description: >-
        可选。发起请求的团队标识符。由于 API 密钥已包含您的工作区信息，此参数不再是必填项。如果提供，该 ID
        有助于将查找与特定团队（工作区）关联，实现数据检索和额度追踪。


        更多信息请参见团队标签下的 `user details` 端点。
  responses:
    general_error:
      description: 请求错误。请求格式不正确或包含无效参数。请检查错误代码和消息以获取详细信息。
      content:
        application/json:
          schema:
            required:
              - code
              - message
              - details
            type: object
            properties:
              code:
                example: 40001
                type: integer
              message:
                example: 错误及代码会根据不同场景有所不同，详情请参阅文档。
                type: string
              details:
                type: object
    rate_limit_error:
      description: 超出速率限制。在给定时间段内发送了过多请求。请在速率限制窗口重置后重试。
      content:
        application/json:
          schema:
            required:
              - error
            type: object
            properties:
              error:
                example: 请求频率超出限制。请稍后再试。
                type: string
    server_error:
      description: 内部服务器错误。服务器发生意外错误。如果错误持续存在，请联系支持团队。
      content:
        application/json:
          schema:
            required:
              - error
            type: object
            properties:
              error:
                example: 服务器在处理请求时遇到了未预料的异常。
                type: string
  securitySchemes:
    pubrio_api_key:
      type: apiKey
      name: pubrio-api-key
      description: >-
        一个唯一的 API 令牌，用于标识您通过 API 执行的操作以及相应的权限和操作。您可以在
        [设置](https://dashboard.pubrio.com/#/settings/) 部分创建该令牌。
      in: header

````