repowise-dev Dead Code API

The dead-code API from repowise-dev — 4 operation(s) for dead-code.

Operations 4

GET /api/repos/{repo_id}/dead-code List Dead Code #
POST /api/repos/{repo_id}/dead-code/analyze Analyze Dead Code #
GET /api/repos/{repo_id}/dead-code/summary Dead Code Summary #
PATCH /api/dead-code/{finding_id} Resolve Finding #

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/repowise-dev:repowise-dev-dead-code-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 form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

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

OpenAPI Specification

repowise-dev-dead-code-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: repowise Dead Code API
  description: REST API for repowise — codebase documentation engine
  version: 0.59.0
tags:
- name: dead-code
paths:
  /api/repos/{repo_id}/dead-code:
    get:
      tags:
      - dead-code
      summary: List Dead Code
      description: List dead code findings for a repository.
      operationId: list_dead_code_api_repos__repo_id__dead_code_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: repo_id
        in: path
        required: true
        schema:
          type: string
          title: Repo Id
      - name: kind
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by finding kind
          title: Kind
        description: Filter by finding kind
      - name: min_confidence
        in: query
        required: false
        schema:
          type: number
          maximum: 1.0
          minimum: 0.0
          default: 0.4
          title: Min Confidence
      - name: status
        in: query
        required: false
        schema:
          type: string
          default: open
          title: Status
      - name: safe_only
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Safe Only
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 500
          minimum: 1
          default: 100
          title: Limit
      - name: include_unverified
        in: query
        required: false
        schema:
          type: boolean
          description: Also return provisional finding types and the per-language layers held back pending verification. Without it, a response counts what it held back in `gated`.
          default: false
          title: Include Unverified
        description: Also return provisional finding types and the per-language layers held back pending verification. Without it, a response counts what it held back in `gated`.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DeadCodeFindingResponse'
                title: Response List Dead Code Api Repos  Repo Id  Dead Code Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-repowise-stability: stable
  /api/repos/{repo_id}/dead-code/analyze:
    post:
      tags:
      - dead-code
      summary: Analyze Dead Code
      description: 'Trigger a fresh dead code analysis.


        Runs an index-only pipeline job (no LLM work) — dead-code detection is

        part of the analysis stage, so a re-index refreshes the findings. Returns

        202 with the job id; poll or stream it like any other job.'
      operationId: analyze_dead_code_api_repos__repo_id__dead_code_analyze_post
      security:
      - APIKeyHeader: []
      parameters:
      - name: repo_id
        in: path
        required: true
        schema:
          type: string
          title: Repo Id
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeadCodeAnalyzeResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-repowise-stability: stable
  /api/repos/{repo_id}/dead-code/summary:
    get:
      tags:
      - dead-code
      summary: Dead Code Summary
      description: Get aggregate dead code statistics for a repository.
      operationId: dead_code_summary_api_repos__repo_id__dead_code_summary_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: repo_id
        in: path
        required: true
        schema:
          type: string
          title: Repo Id
      - name: include_unverified
        in: query
        required: false
        schema:
          type: boolean
          description: Also return provisional finding types and the per-language layers held back pending verification. Without it, a response counts what it held back in `gated`.
          default: false
          title: Include Unverified
        description: Also return provisional finding types and the per-language layers held back pending verification. Without it, a response counts what it held back in `gated`.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeadCodeSummaryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-repowise-stability: stable
  /api/dead-code/{finding_id}:
    patch:
      tags:
      - dead-code
      summary: Resolve Finding
      description: Update the status of a dead code finding.
      operationId: resolve_finding_api_dead_code__finding_id__patch
      security:
      - APIKeyHeader: []
      parameters:
      - name: finding_id
        in: path
        required: true
        schema:
          type: string
          title: Finding Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeadCodePatchRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeadCodeFindingResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-repowise-stability: stable
components:
  schemas:
    DeadCodeSummaryResponse:
      properties:
        total_findings:
          type: integer
          title: Total Findings
        confidence_summary:
          additionalProperties: true
          type: object
          title: Confidence Summary
        deletable_lines:
          type: integer
          title: Deletable Lines
        safe_to_delete_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: Safe To Delete Count
        total_lines:
          type: integer
          title: Total Lines
        by_kind:
          additionalProperties: true
          type: object
          title: By Kind
        analyzed_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Analyzed At
        gated:
          additionalProperties: true
          type: object
          title: Gated
          default: {}
      type: object
      required:
      - total_findings
      - confidence_summary
      - deletable_lines
      - total_lines
      - by_kind
      title: DeadCodeSummaryResponse
    DeadCodeFindingResponse:
      properties:
        id:
          type: string
          title: Id
        kind:
          type: string
          title: Kind
        file_path:
          type: string
          title: File Path
        symbol_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Symbol Name
        symbol_kind:
          anyOf:
          - type: string
          - type: 'null'
          title: Symbol Kind
        confidence:
          type: number
          title: Confidence
        reason:
          type: string
          title: Reason
        lines:
          anyOf:
          - type: integer
          - type: 'null'
          title: Lines
        start_line:
          anyOf:
          - type: integer
          - type: 'null'
          title: Start Line
        end_line:
          anyOf:
          - type: integer
          - type: 'null'
          title: End Line
        safe_to_delete:
          type: boolean
          title: Safe To Delete
        risk_factors:
          items:
            type: string
          type: array
          title: Risk Factors
        evidence:
          items:
            type: string
          type: array
          title: Evidence
        primary_owner:
          anyOf:
          - type: string
          - type: 'null'
          title: Primary Owner
        status:
          type: string
          title: Status
        note:
          anyOf:
          - type: string
          - type: 'null'
          title: Note
        last_commit_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Commit At
        commit_count_90d:
          type: integer
          title: Commit Count 90D
        verification:
          anyOf:
          - type: string
          - type: 'null'
          title: Verification
        preview:
          anyOf:
          - type: string
          - type: 'null'
          title: Preview
      type: object
      required:
      - id
      - kind
      - file_path
      - symbol_name
      - symbol_kind
      - confidence
      - reason
      - lines
      - start_line
      - end_line
      - safe_to_delete
      - risk_factors
      - evidence
      - primary_owner
      - status
      - note
      - last_commit_at
      - commit_count_90d
      title: DeadCodeFindingResponse
    DeadCodePatchRequest:
      properties:
        status:
          type: string
          title: Status
        note:
          anyOf:
          - type: string
          - type: 'null'
          title: Note
      type: object
      required:
      - status
      title: DeadCodePatchRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DeadCodeAnalyzeResponse:
      properties:
        job_id:
          type: string
          title: Job Id
        status:
          type: string
          title: Status
          default: accepted
        repository_id:
          type: string
          title: Repository Id
      type: object
      required:
      - job_id
      - repository_id
      title: DeadCodeAnalyzeResponse
      description: 202 launch payload for a re-analysis (an index-only job, no LLM work).
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization