---
title: "Test reachability of a daemon URL"
method: POST
path: "/api/v1/daemons/test-reachability"
tags: ["Daemons"]
---

# Test reachability of a daemon URL

`POST /api/v1/daemons/test-reachability`

Performs a TCP connection test and optionally an HTTP health check
to verify that a daemon URL is reachable from the server.

## Request body

- TestReachabilityRequest — Request to test reachability of a daemon URL.
  - `check_health` boolean — If true, also perform an HTTP GET to {url}/health after the TCP check
  - `url` string, required — Full URL of the daemon (e.g. "https://daemon.example.com:60073")

## Response `200`

Reachability test result

- ApiResponseTestReachabilityResponse
  - `data` object — Response from a reachability test.
    - `error` string, nullable — Error message if not reachable
    - `health` boolean, nullable — Health check result (only present when check_health was true)
    - `reachable` boolean, required — Whether the TCP connection succeeded
  - `error` string, nullable — Human-readable failure message. Omitted on success.
  - `meta` ApiMeta, required — API metadata included in all responses
    - `api_version` integer, required — API version (integer, increments on breaking changes)
    - `server_version` string, required — Server version (semver)
  - `success` boolean, required — `true` when the request succeeded. `false` responses carry `error` instead of `data`.

## Other responses

- `400` — Invalid URL

---

[API](https://skmtc.net/scanopy/apis/scanopy-api.md) · [All operations](https://skmtc.net/scanopy/apis/scanopy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scanopy/scanopy-api/revisions/2df1fc47dfa7/schema)
