Skip to main content
POST
/
api_keys
/
logs
List API request logs
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.

Authorizations

pubrio-api-key
string
header
required

A unique API token that represents the actions you perform through the API and the corresponding permissions and operations. You can create it through the Settings section.

Body

application/json
profile_id
integer

Optional. An identifier for the user profile (workspace) making the request. This is no longer required as the API key already includes your workspace information. If provided, it helps in associating the lookup with a specific user, allowing for data retrieval and credit tracking.

Check out user details endpoints under the Profile tab for more information.

page
integer

The page number of the Pubrio data that you want to retrieve.

Example:

1

per_page
integer

The number of search results that should be returned for each page. Limited the number of results per page improves the endpoint's performance.

Example:

25

order_by
enum<string>
default:created_at

Field to sort the log list by.

Available options:
created_at,
duration_ms,
status_code
is_ascending_order
boolean
default:false

Sort direction. true for ascending, false (default) for descending.

search_term
string

Free-text search across the request path, log type slug, and raw request body.

log_types
integer[]

Filter by log type IDs.

log_type_slugs
string[]

Filter by log type slugs (e.g. people_search, company_search).

status_codes
integer[]

Filter by HTTP status codes (e.g. [200, 400, 500]).

methods
string[]

Filter by HTTP methods (e.g. ["POST", "GET"]).

Response

Successful response containing paginated API request logs.

metadata
object
data
object