メインコンテンツへスキップ
POST
/
api_keys
/
logs
APIリクエストログの一覧取得
curl --request POST \
  --url https://api.pubrio.com/api_keys/logs \
  --header 'Content-Type: application/json' \
  --header 'pubrio-api-key: <api-key>' \
  --data '
{
  "profile_id": 123,
  "page": 1,
  "per_page": 25,
  "order_by": "created_at",
  "is_ascending_order": false,
  "search_term": "<string>",
  "log_types": [
    123
  ],
  "log_type_slugs": [
    "<string>"
  ],
  "status_codes": [
    123
  ],
  "methods": [
    "<string>"
  ]
}
'
{
  "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": "[email protected]",
        "nickname": "Example User",
        "user": {
          "user_id": "2981d4b3-f8b1-44d8-9759-889f3bfa2faf",
          "nickname": "Example User",
          "email": "[email protected]"
        },
        "log_type_slug": null,
        "credits": 0,
        "log_type_name": null,
        "authentication_type_name": "API Key"
      }
    ]
  }
}

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.

承認

pubrio-api-key
string
header
必須

API で実行する操作内容と、その操作に付与された権限を識別するための一意の API トークンです。このトークンはダッシュボードの 設定 画面から発行できます。

ボディ

application/json
profile_id
integer

オプション。リクエストを送信するチームを表す識別子です。API キーにワークスペース情報が既に含まれているため、このパラメータは必須ではなくなりました。指定した場合、検索結果が特定のチーム(ワークスペース)に紐づけられ、データ取得およびクレジット利用状況の追跡が可能になります。詳しくは、チーム関連の「ユーザー詳細」エンドポイントを参照してください。

page
integer

取得したい結果セットのページ番号です。

:

1

per_page
integer

1 ページあたりに返される検索結果件数です。ページサイズを制限することで、レスポンス速度や API パフォーマンスの向上が期待できます。

:

25

order_by
enum<string>
デフォルト:created_at

ログ一覧の並び替え対象フィールド。

利用可能なオプション:
created_at,
duration_ms,
status_code
is_ascending_order
boolean
デフォルト:false

並び替え方向。true は昇順、false(デフォルト)は降順。

search_term
string

リクエストパス、ログタイプスラッグ、生のリクエストボディに対する自由検索。

log_types
integer[]

ログタイプIDで絞り込み。

log_type_slugs
string[]

ログタイプスラッグで絞り込み(例: people_searchcompany_search)。

status_codes
integer[]

HTTPステータスコードで絞り込み(例: [200, 400, 500])。

methods
string[]

HTTPメソッドで絞り込み(例: ["POST", "GET"])。

レスポンス

ページネーション付きのAPIリクエストログを返す成功レスポンス。

metadata
object
data
object