> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agents.labs.bandwidth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List tool execution logs

> Retrieve paginated execution history for a tool.

Pages start at 1. `limit` defaults to 50 and is capped at 200. Filter by status, agent name, or date range. The response includes `logs`, `total_count`, `page`, `limit`, and `total_pages`. Archived tools retain their execution history. Logs can contain request and response data; handle them as workspace data.


## OpenAPI

````yaml GET /api/v1/tools/{tool_uuid}/logs
openapi: 3.1.0
info:
  title: Bandwidth Agent Builder API
  version: v1
  description: >-
    Manage agents, place calls, and retrieve conversation results in your
    workspace.
servers:
  - url: https://agents.labs.bandwidth.com
    description: Workspace API
security: []
paths:
  /api/v1/tools/{tool_uuid}/logs:
    get:
      tags:
        - tools
      summary: List tool execution logs
      description: >-
        **Authorization:** Accepts a Labs OAuth bearer token or a Labs API key.
        Workspace-scoped resources require membership in the requested
        workspace.


        Retrieve paginated execution history for a tool.
      operationId: get_tool_execution_logs_api_v1_tools__tool_uuid__logs_get
      parameters:
        - in: path
          name: tool_uuid
          required: true
          schema:
            title: Tool Uuid
            type: string
        - in: query
          name: page
          required: false
          schema:
            default: 1
            minimum: 1
            title: Page
            type: integer
        - in: query
          name: limit
          required: false
          schema:
            default: 50
            maximum: 200
            minimum: 1
            title: Limit
            type: integer
        - in: query
          name: status
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Status
        - in: query
          name: workflow_name
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Workflow Name
        - in: query
          name: date_from
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            title: Date From
        - in: query
          name: date_to
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            title: Date To
        - description: >-
            Required with X-BW-LABS-AGENTS-API-KEY: the positive local workspace
            ID to access. The key owner must be a current member. Missing or
            invalid IDs return 400; non-member workspaces return 403. Not
            required for bearer authentication, which uses the user's selected
            workspace.
          in: header
          name: X-VOAI-ORGANIZATION-ID
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Required with X-BW-LABS-AGENTS-API-KEY: the positive local
              workspace ID to access. The key owner must be a current member.
              Missing or invalid IDs return 400; non-member workspaces return
              403. Not required for bearer authentication, which uses the user's
              selected workspace.
            title: X-Voai-Organization-Id
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolExecutionLogsListResponse'
          description: Successful Response
        '400':
          description: Invalid request or missing/invalid workspace header with an API key.
        '401':
          description: Missing, invalid, or expired credential.
        '403':
          description: >-
            The account lacks access to the workspace, resource, or required
            role.
        '404':
          description: Not found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - LabsAuth: []
        - LabsApiKey: []
components:
  schemas:
    ToolExecutionLogsListResponse:
      properties:
        limit:
          title: Limit
          type: integer
        logs:
          items:
            $ref: '#/components/schemas/ToolExecutionLogResponse'
          title: Logs
          type: array
        page:
          title: Page
          type: integer
        total_count:
          title: Total Count
          type: integer
        total_pages:
          title: Total Pages
          type: integer
      required:
        - logs
        - total_count
        - page
        - limit
        - total_pages
      title: ToolExecutionLogsListResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ToolExecutionLogResponse:
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        id:
          title: Id
          type: integer
        latency_ms:
          title: Latency Ms
          type: number
        request_method:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Method
        status:
          title: Status
          type: string
        status_code:
          anyOf:
            - type: integer
            - type: 'null'
          title: Status Code
        tool_uuid:
          title: Tool Uuid
          type: string
        triggered_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Triggered By
        workflow_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Workflow Id
        workflow_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Workflow Name
        workflow_run_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Workflow Run Id
      required:
        - id
        - tool_uuid
        - status
        - latency_ms
        - created_at
      title: ToolExecutionLogResponse
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    LabsAuth:
      description: >-
        Bandwidth Labs OAuth access token. Uses the user's selected workspace;
        the workspace header is not required. Do not also send an API key.
        Bearer-only operations may additionally require the Labs `super_user`
        role.
      scheme: bearer
      type: http
    LabsApiKey:
      description: >-
        Bandwidth Labs API key. Also send `X-VOAI-ORGANIZATION-ID` with a
        positive local workspace ID belonging to the key owner. Access follows
        the owner's current workspace role. Do not also send a bearer token. API
        keys cannot access bearer-only or Labs `super_user` operations.
      in: header
      name: X-BW-LABS-AGENTS-API-KEY
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.