> ## 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リクエストログをページネーション付きで取得します。各エントリは `pubrio-api-key` を使用した1件のリクエストを表し、パス、メソッド、ステータスコード、所要時間、レスポンスサイズ、消費クレジットを含みます。特定エントリの完全なリクエスト・レスポンス本文を確認するには、[ログ詳細の取得](/jp/api-reference/endpoint/api-keys/logs_lookup) エンドポイントを利用してください。



## OpenAPI

````yaml jp-openapi POST /api_keys/logs
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:
    post:
      tags:
        - API Keys
      summary: APIリクエストログの一覧取得
      description: >-
        ワークスペースで実行されたAPIリクエストログをページネーション付きで取得します。各エントリは `pubrio-api-key`
        を使用した1件のリクエストを表し、パス、メソッド、ステータスコード、所要時間、レスポンスサイズ、消費クレジットを含みます。特定エントリの完全なリクエスト・レスポンス本文を確認するには、[ログ詳細の取得](/jp/api-reference/endpoint/api-keys/logs_lookup)
        エンドポイントを利用してください。
      operationId: api_keys_get_logs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                profile_id:
                  $ref: '#/components/schemas/profile_id'
                page:
                  $ref: '#/components/schemas/page'
                per_page:
                  $ref: '#/components/schemas/per_page'
                order_by:
                  type: string
                  enum:
                    - created_at
                    - duration_ms
                    - status_code
                  default: created_at
                  description: ログ一覧の並び替え対象フィールド。
                is_ascending_order:
                  type: boolean
                  default: false
                  description: 並び替え方向。`true` は昇順、`false`（デフォルト）は降順。
                search_term:
                  type: string
                  description: リクエストパス、ログタイプスラッグ、生のリクエストボディに対する自由検索。
                log_types:
                  type: array
                  items:
                    type: integer
                  description: ログタイプIDで絞り込み。
                log_type_slugs:
                  type: array
                  items:
                    type: string
                  description: 'ログタイプスラッグで絞り込み（例: `people_search`、`company_search`）。'
                status_codes:
                  type: array
                  items:
                    type: integer
                  description: 'HTTPステータスコードで絞り込み（例: `[200, 400, 500]`）。'
                methods:
                  type: array
                  items:
                    type: string
                  description: 'HTTPメソッドで絞り込み（例: `["POST", "GET"]`）。'
      responses:
        '200':
          description: ページネーション付きのAPIリクエストログを返す成功レスポンス。
          content:
            application/json:
              schema:
                type: object
                properties:
                  metadata:
                    type: object
                    properties:
                      filters:
                        type: object
                        description: 本レスポンスの生成に使用したリクエストフィルターのエコー（空値は除外）。
                        additionalProperties: true
                  data:
                    type: object
                    properties:
                      pagination:
                        type: object
                        properties:
                          page:
                            type: integer
                            description: 現在のページ番号。
                          per_page:
                            type: integer
                            description: 1ページあたりの件数。
                          total_entries:
                            type: integer
                            description: ログエントリの総件数。
                          total_pages:
                            type: integer
                            description: 総ページ数。
                          total_display_pages:
                            type: integer
                            description: 現在のプランで表示可能な最大ページ数。
                          is_timeout:
                            type: boolean
                            description: カウントクエリがタイムアウトしたかどうか。
                      query_logs:
                        type: array
                        items:
                          type: object
                          properties:
                            query_log_id:
                              type: string
                              format: uuid
                              description: >-
                                ログエントリの一意識別子。完全な内容を取得するには
                                `/api_keys/logs/lookup` に渡します。
                            created_at:
                              type: string
                              description: リクエストを受信した時刻（UTC）。
                            profile_id:
                              type: integer
                              description: リクエストに関連付けられたワークスペースプロフィールID。
                            user_id:
                              type: string
                              format: uuid
                              description: APIキーに関連付けられたユーザーID。
                            method:
                              type: string
                              description: リクエストのHTTPメソッド。
                            path:
                              type: string
                              description: リクエストパス。
                            status_code:
                              type: integer
                              description: 返却されたHTTPステータスコード。
                            duration_ms:
                              type: integer
                              description: リクエスト処理時間（ミリ秒）。
                            log_type_id:
                              type: integer
                              description: 内部ログタイプID。請求対象のログタイプに紐付かない場合は `0`。
                            log_type_slug:
                              type: string
                              nullable: true
                              description: >-
                                ログタイプスラッグ（例: `people_search`）。請求対象外のリクエストは
                                `null`。
                            log_type_name:
                              type: string
                              nullable: true
                              description: 人間が読めるログタイプ名。
                            authentication_type:
                              type: string
                              description: 使用された認証方式。APIキーリクエストでは常に `pubrio-api-key`。
                            authentication_type_name:
                              type: string
                              description: 人間が読める認証方式名。
                            masked_authentication:
                              type: string
                              description: 本リクエストで使用されたAPIキーのマスク表示。
                            response_size:
                              type: integer
                              description: レスポンスボディのサイズ（バイト）。
                            credits:
                              type: number
                              description: 本リクエストで消費されたクレジット合計。
                            ip:
                              type: string
                              description: 呼び出し元のクライアントIPアドレス。
                            email:
                              type: string
                              description: APIキー所有ユーザーのメールアドレス。
                            nickname:
                              type: string
                              description: APIキー所有ユーザーのニックネーム。
                            user:
                              type: object
                              properties:
                                user_id:
                                  type: string
                                  format: uuid
                                nickname:
                                  type: string
                                email:
                                  type: string
              example:
                metadata:
                  filters:
                    page: 1
                    per_page: 3
                    status_codes:
                      - 200
                data:
                  pagination:
                    page: 1
                    per_page: 3
                    total_entries: 1109
                    total_pages: 370
                    total_display_pages: 250
                    is_timeout: false
                  query_logs:
                    - query_log_id: fc1ce3dd-39f7-4fbd-9d22-569a17115c11
                      created_at: '2026-05-14 12:04:32.243'
                      profile_id: 1
                      user_id: 2981d4b3-f8b1-44d8-9759-889f3bfa2faf
                      method: POST
                      path: /api_keys/usage/daily
                      status_code: 200
                      duration_ms: 1821
                      log_type_id: 0
                      authentication_type: pubrio-api-key
                      masked_authentication: 0••••••••••••••••f39
                      response_size: 2180
                      ip: 127.0.0.1
                      email: you@example.com
                      nickname: Example User
                      user:
                        user_id: 2981d4b3-f8b1-44d8-9759-889f3bfa2faf
                        nickname: Example User
                        email: you@example.com
                      log_type_slug: null
                      credits: 0
                      log_type_name: null
                      authentication_type_name: API Key
        '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
        キーにワークスペース情報が既に含まれているため、このパラメータは必須ではなくなりました。指定した場合、検索結果が特定のチーム（ワークスペース）に紐づけられ、データ取得およびクレジット利用状況の追跡が可能になります。詳しくは、チーム関連の「ユーザー詳細」エンドポイントを参照してください。
    page:
      type: integer
      example: 1
      description: 取得したい結果セットのページ番号です。
    per_page:
      type: integer
      example: 25
      description: 1 ページあたりに返される検索結果件数です。ページサイズを制限することで、レスポンス速度や 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

````