---
title: "Test Lm Connection"
method: POST
path: "/api/v1/runtime/tests/lm"
tags: ["runtime"]
---

# Test Lm Connection

`POST /api/v1/runtime/tests/lm`

Verify that the planner and delegate language-model configuration can load.

## Response `200`

Successful Response

- RuntimeConnectivityTestResponse — Result payload for runtime connectivity and preflight diagnostics.
  - `kind` 'lm' | 'daytona', required — Runtime subsystem that was tested.
  - `ok` boolean, required — Whether the connectivity test completed successfully.
  - `preflight_ok` boolean, required — Whether prerequisite configuration checks passed.
  - `checked_at` string, required — UTC timestamp when the test completed.
  - `checks` object — Structured boolean or value checks collected during the test run.
  - `guidance` string[] — Human-readable remediation steps when the test did not pass cleanly.
  - `latency_ms` integer, nullable — Observed latency for the successful smoke test, when applicable.
  - `output_preview` string, nullable — Short preview of the smoke-test output, when available.
  - `error` string, nullable — Error summary when the test failed.

## Other responses

- `401` — Authentication is required or the provided token is invalid.
- `503` — Runtime services are unavailable because server startup is incomplete.

## Changes

- **2026-04-06** `4849c311977f` — 1 info
  - removed the `modal` enum value from the `kind` response property for the response status `200`
- **2026-03-31** `a88715bea2c5` — 1 info
  - the endpoint scheme security `HTTPBearer` was added to the API
- **2026-03-25** `bc0d4fcb5906` — 2 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `503`
- **2026-03-19** `78507b29ed8f` — 1 warning, 3 info
  - added the new `modal` enum value to the `kind` response property for the response status `200`
  - the endpoint scheme security `HTTPBearer` was removed from the API
  - removed the non-success response with the status `401`
  - removed the non-success response with the status `503`

[Change history](https://skmtc.dev/qredence/apis/fleet-rlm/changes/api/v1/runtime/tests/lm/post.md)

---

[API](https://skmtc.dev/qredence/apis/fleet-rlm.md) · [All operations](https://skmtc.dev/qredence/apis/fleet-rlm/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/qredence/fleet-rlm/revisions/e25aaded81b9/schema)
