---
title: "Validate a plugin"
method: POST
path: "/api/v1beta/plugins/validate"
tags: ["plugins"]
---

# Validate a plugin

`POST /api/v1beta/plugins/validate`

Validate a plugin definition

## Request body

- union
  - object
  - PkgApiV1ValidatePluginRequest — Request to validate a plugin definition
    - `path` string — Path to the plugin definition directory

## Response `200`

OK

- GithubComStacklokToolhivePkgPluginsValidationResult
  - `errors` string[] — Errors is a list of validation errors, if any.
  - `valid` boolean — Valid indicates whether the skill definition is valid.
  - `warnings` string[] — Warnings is a list of non-blocking validation warnings, if any.

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.dev/stacklok/apis/toolhive-api.md) · [All operations](https://skmtc.dev/stacklok/apis/toolhive-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stacklok/toolhive-api/revisions/e9f942effcda/schema)
