---
title: "Trigger Run"
method: POST
path: "/api/specs/{spec_id}/run"
tags: ["specs"]
---

# Trigger Run

`POST /api/specs/{spec_id}/run`

## Request

- Base URL: `https://api.modelwatch.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.modelwatch.app/api/specs/{spec_id}/run`
- Auth: HTTP bearer

Manually trigger a run for a spec.

## Path parameters

- `spec_id` string, uuid, required

## Response `201`

Successful Response

- RunOut
  - `id` string, uuid, required
  - `spec_id` string, uuid, required
  - `status` 'pending' | 'running' | 'completed' | 'failed', required
  - `output_text` string, nullable, required
  - `latency_ms` integer, nullable, required
  - `token_usage` object, nullable, required
  - `error_message` string, nullable, required
  - `format_match` boolean, nullable, required
  - `length_diff_pct` number, nullable, required
  - `semantic_similarity` number, nullable, required
  - `refusal_detected` boolean, nullable, required
  - `drift_score` number, nullable, required
  - `started_at` string, date-time, nullable, required
  - `completed_at` string, date-time, nullable, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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