---
title: "POST /settings/ai-providers/{provider_id}/preflight"
method: POST
path: "/settings/ai-providers/{provider_id}/preflight"
tags: ["Agents"]
---

# POST /settings/ai-providers/{provider_id}/preflight

`POST /settings/ai-providers/{provider_id}/preflight`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/settings/ai-providers/{provider_id}/preflight`
- Auth: HTTP bearer

## Path parameters

- `provider_id` string, required

## Response `200`

- HarnessCheckReport
  - `checked_at` string, required
  - `checks` HarnessCheck[], required
    - `action` string, nullable
    - `detail` string, required
    - `duration_ms` integer, required
    - `id` string, required
    - `label` string, required
    - `status` 'passed' | 'warning' | 'failed' | 'not_tested', required
  - `diagnostic_id` string, required
  - `mode` 'preflight' | 'smoke', required
  - `overall` 'passed' | 'warning' | 'failed', required
  - `provider_id` string, required

## Other responses

- `400`: Unknown provider
- `429`: Another diagnostic is running
- `503`: Diagnostic unavailable

## Changes

- **2026-11-09** `12896146b193`: 1 breaking
  - removed the required property `extensions` from the response with the `429` status
- **2026-10-05** `4b228ebed583`: 1 info
  - added the optional property `status` to the response with the `429` status
- **2026-10-05** `63a80791dc58`: 1 warning
  - removed the optional property `status` from the response with the `429` status
- **2026-09-23** `f4efc4d5c7b7`: 1 info
  - added the optional property `status` to the response with the `429` status
- **2026-09-15** `c91fa4d5d612`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/settings/ai-providers/:provider_id/preflight/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
