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

# Get tap run history

> Returns the last 50 run log entries for a tap, sorted by most recent first.



## OpenAPI

````yaml /openapi.yaml get /api/v1/tap/logs
openapi: 3.0.3
info:
  title: Datris API
  description: >
    REST API for the Datris AI Data Platform. Ingest, validate, transform,
    store, and retrieve data.


    For AI agent integration, use the [MCP
    Server](https://docs.datris.ai/mcp-server) instead.
  version: 1.0.0
  contact:
    name: Datris
    url: https://datris.ai
  license:
    name: Apache 2.0
servers:
  - url: http://localhost:8080
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /api/v1/tap/logs:
    get:
      tags:
        - Taps
      summary: Get tap run history
      description: >-
        Returns the last 50 run log entries for a tap, sorted by most recent
        first.
      parameters:
        - name: name
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Array of run log entries
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TapRunLog'
components:
  schemas:
    TapRunLog:
      type: object
      properties:
        tapName:
          type: string
        runTime:
          type: string
        status:
          type: string
          enum:
            - success
            - failure
        recordCount:
          type: integer
        dataType:
          type: string
        logs:
          type: string
        error:
          type: string
        mode:
          type: string
          enum:
            - run
            - test
          description: >-
            'run' = results persisted to the target pipeline; 'test' = script
            executed, results discarded
        durationMs:
          type: integer
          format: int64
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````