---
title: "Trigger a skill eval run"
method: POST
path: "/api/v1/skills/{slug}/evals"
tags: ["Evaluations"]
---

# Trigger a skill eval run

`POST /api/v1/skills/{slug}/evals`

## Request

- Base URL: `https://api.skills-hub.ai`
- URL: `https://api.skills-hub.ai/api/v1/skills/{slug}/evals`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Runs a behavioral eval for a published skill by scoring its test cases against the latest completed sandbox outputs, then persists a graded result with pass rate and improvement. Requires authentication; only the skill's author may run evals. The skill must be published and have at least one test case.

## Path parameters

- `slug` string, required

## Response `200`

Successful response. The returned fields are described in this endpoint's summary/description; typed per-field response schemas are being added incrementally.

- object
  - `id` string, required
  - `skillId` string, required
  - `versionId` string, nullable, required
  - `status` string, required
  - `passRate` number, nullable, required
  - `improvement` number, nullable, required
  - `totalCases` integer, required
  - `passedCases` integer, required
  - `results` object[], required
    - `testCaseId` string, required
    - `label` string, required
    - `input` string, required
    - `expectedOutput` string, nullable, required
    - `withSkillOutput` string, nullable, required
    - `withoutSkillOutput` string, nullable, required
    - `passed` boolean, required
    - `similarity` number, required
  - `durationMs` number, nullable, required
  - `createdAt` string, date-time, required

---

[API](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api.md) · [All operations](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/revisions/cb5d46d80300?raw)
