Woodpecker CI Pipeline logs API

The Pipeline logs API from Woodpecker CI — 4 operation(s) for pipeline logs.

Operations 5

DELETE /repos/{repo_id}/logs/{pipeline_number} Deletes all logs of a pipeline
GET /repos/{repo_id}/logs/{pipeline_number}/{step_id} Get logs for a pipeline step
DELETE /repos/{repo_id}/logs/{pipeline_number}/{step_id} Delete step logs of a pipeline
GET /repos/{repo_id}/logs/{pipeline_number}/{step_id}/download Download logs for a pipeline step
GET /stream/logs/{repo_id}/{pipeline}/{step_id} Stream logs of a pipeline step

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/woodpecker-ci-pipeline-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

woodpecker-ci-pipeline-logs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.

    To get a personal access token (PAT) for authentication, please log in your Woodpecker server,

    and go to you personal profile page, by clicking the user icon at the top right.'
  title: Woodpecker CI Pipeline logs API
  contact:
    name: Woodpecker CI
    url: https://woodpecker-ci.org/
  version: next-a4cb541b82
servers:
- url: https://ci.woodpecker-ci.org/api
tags:
- name: Pipeline logs
paths:
  /repos/{repo_id}/logs/{pipeline_number}:
    delete:
      tags:
      - Pipeline logs
      summary: Deletes all logs of a pipeline
      parameters:
      - description: Insert your personal access token
        name: Authorization
        in: header
        required: true
        schema:
          type: string
          default: Bearer <personal access token>
      - description: the repository id
        name: repo_id
        in: path
        required: true
        schema:
          type: integer
      - description: the number of the pipeline
        name: pipeline_number
        in: path
        required: true
        schema:
          type: integer
      responses:
        '204':
          description: No Content
  /repos/{repo_id}/logs/{pipeline_number}/{step_id}:
    get:
      tags:
      - Pipeline logs
      summary: Get logs for a pipeline step
      parameters:
      - description: Insert your personal access token
        name: Authorization
        in: header
        required: true
        schema:
          type: string
          default: Bearer <personal access token>
      - description: the repository id
        name: repo_id
        in: path
        required: true
        schema:
          type: integer
      - description: the number of the pipeline
        name: pipeline_number
        in: path
        required: true
        schema:
          type: integer
      - description: the step id
        name: step_id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LogEntry'
    delete:
      tags:
      - Pipeline logs
      summary: Delete step logs of a pipeline
      parameters:
      - description: Insert your personal access token
        name: Authorization
        in: header
        required: true
        schema:
          type: string
          default: Bearer <personal access token>
      - description: the repository id
        name: repo_id
        in: path
        required: true
        schema:
          type: integer
      - description: the number of the pipeline
        name: pipeline_number
        in: path
        required: true
        schema:
          type: integer
      - description: the step id
        name: step_id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '204':
          description: No Content
  /repos/{repo_id}/logs/{pipeline_number}/{step_id}/download:
    get:
      tags:
      - Pipeline logs
      summary: Download logs for a pipeline step
      parameters:
      - description: Insert your personal access token
        name: Authorization
        in: header
        required: true
        schema:
          type: string
          default: Bearer <personal access token>
      - description: the repository id
        name: repo_id
        in: path
        required: true
        schema:
          type: integer
      - description: the number of the pipeline
        name: pipeline_number
        in: path
        required: true
        schema:
          type: integer
      - description: the step id
        name: step_id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: string
  /stream/logs/{repo_id}/{pipeline}/{step_id}:
    get:
      tags:
      - Pipeline logs
      summary: Stream logs of a pipeline step
      parameters:
      - description: the repository id
        name: repo_id
        in: path
        required: true
        schema:
          type: integer
      - description: the number of the pipeline
        name: pipeline
        in: path
        required: true
        schema:
          type: integer
      - description: the step id
        name: step_id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
components:
  schemas:
    LogEntry:
      type: object
      properties:
        data:
          type: array
          items:
            type: integer
        id:
          type: integer
        line:
          type: integer
        step_id:
          type: integer
        time:
          type: integer
        type:
          $ref: '#/components/schemas/LogEntryType'
    LogEntryType:
      type: integer
      enum:
      - 0
      - 1
      - 2
      - 3
      - 4
      x-enum-varnames:
      - LogEntryStdout
      - LogEntryStderr
      - LogEntryExitCode
      - LogEntryMetadata
      - LogEntryProgress