> ## 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 jp-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/ja/terms-of-service
  contact:
    email: king.lai@pubrio.com
    name: King Lai
    url: https://pubrio.com/ja/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
        キーにワークスペース情報が既に含まれているため、このパラメータは必須ではなくなりました。指定した場合、検索結果が特定のチーム（ワークスペース）に紐づけられ、データ取得およびクレジット利用状況の追跡が可能になります。詳しくは、チーム関連の「ユーザー詳細」エンドポイントを参照してください。
  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: レスポンスボディには `error` フィールドが含まれ、問題の概要がメッセージとして記載されます。
                type: string
  securitySchemes:
    pubrio_api_key:
      type: apiKey
      name: pubrio-api-key
      description: >-
        API で実行する操作内容と、その操作に付与された権限を識別するための一意の API トークンです。このトークンはダッシュボードの
        [設定](https://dashboard.pubrio.com/#/settings/) 画面から発行できます。
      in: header

````