> ## 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.

# Look up API Request Log

> Retrieve the full request body, request headers, response body, and response size for a specific API request log entry. Use this to inspect what was sent or returned for a given `query_log_id` discovered via the list endpoint.



## OpenAPI

````yaml en-openapi POST /api_keys/logs/lookup
openapi: 3.0.0
info:
  description: >-
    The Pubrio API is used to search, preview and enrich Contacts and Accounts.
    Pubrio database provides extensive B2B contacts and sales intelligence data.
  version: 1.0.0
  title: Pubrio OpenAPI
  termsOfService: https://pubrio.com/en/terms-of-service
  contact:
    email: king.lai@pubrio.com
    name: King Lai
    url: https://pubrio.com/en/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: Workspace profile information and usage statistics
  - name: Enrichment
    description: Enrich people and company records with detailed B2B data
  - name: Lookalike
    description: Find companies similar to a given company
  - name: Search
    description: Search for people, companies, jobs, news, and advertisements with filters
  - name: Lookup
    description: >-
      Look up detailed information for specific people, companies, jobs, news,
      advertisements, and technologies
  - name: LinkedIn
    description: Look up people and company data via LinkedIn profile URLs
  - name: Redeem
    description: Redeem credits to unlock people contact details (single and batch)
  - name: Channels
    description: Manage outreach channel templates (create, update, delete, list)
  - name: Monitor
    description: Create and manage data monitors with webhooks, statistics, and processing
  - name: Filters
    description: >-
      Retrieve available filter values for search parameters (technologies,
      locations, verticals, etc.)
  - name: API Keys
    description: List and inspect API request logs and usage analytics for API keys
externalDocs:
  description: >-
    The Pubrio API is used to search, preview and enrich Contacts and Accounts.
    Pubrio database provides extensive B2B contacts and sales intelligence data.
  url: https://docs.pubrio.com
paths:
  /api_keys/logs/lookup:
    post:
      tags:
        - API Keys
      summary: Look up API request log details
      description: >-
        Retrieve the full request body, request headers, response body, and
        response size for a specific API request log entry. Use this to inspect
        what was sent or returned for a given `query_log_id` discovered via the
        list endpoint.
      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: >-
                    Unique identifier of the log entry to look up. Obtain this
                    from `/api_keys/logs`.
      responses:
        '200':
          description: >-
            Successful response containing the full request and response
            payload.
          content:
            application/json:
              schema:
                type: object
                properties:
                  metadata:
                    type: object
                    properties:
                      query_log_id:
                        type: string
                        format: uuid
                        description: Identifier of the log entry that was looked up.
                  data:
                    type: object
                    nullable: true
                    properties:
                      query_log_id:
                        type: string
                        format: uuid
                        description: Identifier of the log entry.
                      request_body:
                        type: string
                        nullable: true
                        description: Stringified JSON of the original request body.
                      request_headers:
                        type: string
                        nullable: true
                        description: >-
                          Stringified JSON of the original request headers.
                          Sensitive headers such as the API key are stored
                          masked.
                      response_body:
                        type: string
                        nullable: true
                        description: >-
                          Stringified JSON of the response body returned to the
                          caller.
                      response_size:
                        type: integer
                        description: Size of the response body in bytes.
              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: >-
        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.
  responses:
    general_error:
      description: >-
        Bad request. The request was malformed or contained invalid parameters.
        Check the error code and message for details.
      content:
        application/json:
          schema:
            required:
              - code
              - message
              - details
            type: object
            properties:
              code:
                example: 40001
                type: integer
              message:
                example: >-
                  Errors and codes will vary depending on the scenario, please
                  see the documentation for information.
                type: string
              details:
                type: object
    rate_limit_error:
      description: >-
        Rate limit exceeded. Too many requests were made in a given time period.
        Retry after the rate limit window resets.
      content:
        application/json:
          schema:
            required:
              - error
            type: object
            properties:
              error:
                example: Request rate limit exceeded. Please wait and try again later.
                type: string
    server_error:
      description: >-
        Internal server error. An unexpected error occurred on the server.
        Contact support if the error persists.
      content:
        application/json:
          schema:
            required:
              - error
            type: object
            properties:
              error:
                example: An unexpected error occurred on the server.
                type: string
  securitySchemes:
    pubrio_api_key:
      type: apiKey
      name: pubrio-api-key
      description: >-
        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](https://dashboard.pubrio.com/#/settings/)
        section.
      in: header

````