Kubeshop logs API

Log operations

Operations 2

GET /executions/{id}/logs Get execution's logs by ID #
GET /executions/{id}/logs/v2 Get execution's logs by ID version 2 #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/kubeshop-logs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

kubeshop-logs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Testkube Logs API
  description: Testkube provides a Kubernetes-native framework for test definition, execution and results
  contact:
    email: contact@testkube.io
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  version: 1.0.0
servers:
  - url: https://api.testkube.io
    description: Testkube Cloud Control Plane API Endpoint
  - url: https://<your-testkube-api-host>
    description: Testkube On-Prem API Endpoint
tags:
- name: logs
  description: Log operations
paths:
  /executions/{id}/logs:
    get:
      parameters:
      - $ref: '#/components/parameters/ID'
      tags:
      - logs
      summary: Get execution's logs by ID
      description: Returns logs of the given executionID
      operationId: getExecutionLogs
      responses:
        200:
          description: successful operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ExecutorOutput'
        500:
          description: problem with getting execution's logs
          content:
            application/problem+json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Problem'
  /executions/{id}/logs/v2:
    get:
      parameters:
      - $ref: '#/components/parameters/ID'
      tags:
      - logs
      summary: Get execution's logs by ID version 2
      description: Returns logs of the given executionID version 2
      operationId: getExecutionLogsV2
      responses:
        200:
          description: successful operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LogV2'
        500:
          description: problem with getting execution's logs version 2
          content:
            application/problem+json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Problem'
components:
  schemas:
    Problem:
      description: problem response in case of error
      type: object
      properties:
        type:
          type: string
          description: Type contains a URI that identifies the problem type.
          example: https://kubeshop.io/testkube/problems/invalidtestname
        title:
          type: string
          description: Title is a short, human-readable summary of the problem type. This title SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
          example: Invalid test name
        status:
          type: integer
          description: HTTP status code for this occurrence of the problem.
          example: 500
        detail:
          type: string
          description: A human-readable explanation specific to this occurrence of the problem.
          example: Your test name can't contain forbidden characters like "}}}" passed
        instance:
          type: string
          description: A URI that identifies the specific occurrence of the problem. This URI may or may not yield further information if de-referenced.
          example: http://10.23.23.123:8088/tests
    ExecutionResult:
      description: execution result returned from executor
      type: object
      required:
      - status
      properties:
        status:
          $ref: '#/components/schemas/ExecutionStatus'
        output:
          type: string
          description: RAW Test execution output, depends of reporter used in particular tool
        outputType:
          type: string
          description: output type depends of reporter used in particular tool
          enum:
          - text/plain
          - application/junit+xml
          - application/json
        errorMessage:
          type: string
          description: error message when status is error, separate to output as output can be partial in case of error
        steps:
          type: array
          items:
            $ref: '#/components/schemas/ExecutionStepResult'
          description: execution steps (for collection of requests)
        reports:
          type: object
          properties:
            junit:
              type: string
    LogV2:
      description: Log format version 2
      type: object
      required:
      - logVersion
      - source
      properties:
        time:
          type: string
          format: date-time
          description: Timestamp of log
          example: '2018-03-20T09:12:28Z'
        content:
          type: string
          description: Message/event data passed from executor (like log lines etc)
        type:
          type: string
          description: One of possible log types
        source:
          type: string
          description: One of possible log sources
          enum:
          - job-pod
          - test-scheduler
          - container-executor
          - job-executor
        error:
          type: boolean
          description: indicates a log error
        version:
          type: string
          description: One of possible log versions
          enum:
          - v1
          - v2
        metadata:
          type: object
          description: additional log details
          additionalProperties:
            type: string
          example:
            argsl: passed command arguments
        v1:
          $ref: '#/components/schemas/LogV1'
          description: Old output - for backwards compatibility - will be removed for non-structured logs
    ExecutionStatus:
      type: string
      enum:
      - queued
      - running
      - passed
      - failed
      - aborted
      - timeout
      - skipped
      - canceled
    ExecutorOutput:
      description: CRD based executor data
      type: object
      required:
      - type
      properties:
        type:
          type: string
          description: One of possible output types
          enum:
          - error
          - log
          - event
          - result
        content:
          type: string
          description: Message/event data passed from executor (like log lines etc)
        result:
          $ref: '#/components/schemas/ExecutionResult'
          description: Execution result when job is finished
        time:
          type: string
          format: date-time
          description: Timestamp of log
          example: '2018-03-20T09:12:28Z'
    ExecutionStepResult:
      description: execution result data
      type: object
      required:
      - name
      - status
      properties:
        name:
          type: string
          description: step name
          example: step1
        duration:
          type: string
          format: duration
          example: 10m0s
        status:
          type: string
          description: execution step status
          enum:
          - passed
          - failed
        assertionResults:
          type: array
          items:
            $ref: '#/components/schemas/AssertionResult'
    AssertionResult:
      description: execution result data
      type: object
      properties:
        name:
          type: string
          example: assertion1
        status:
          type: string
          enum:
          - passed
          - failed
        errorMessage:
          type:
          - string
          - 'null'
    LogV1:
      description: Log format version 1
      type: object
      required:
      - type
      properties:
        result:
          $ref: '#/components/schemas/ExecutionResult'
          description: output for previous log format
  parameters:
    ID:
      in: path
      name: id
      schema:
        type: string
      required: true
      description: unique id of the object
externalDocs:
  description: Find out more about Testkube
  url: https://testkube.kubeshop.io/