---
title: "Test a connection"
method: POST
path: "/v1/discovery/connections/{connectionId}/test"
tags: ["Discovery"]
---

# Test a connection

`POST /v1/discovery/connections/{connectionId}/test`

Use this endpoint to test connectivity for a specific discovered connection owned by the current tenant.

## Path parameters

- `connectionId` string, required

## Headers

- `X-Request-Id` string

## Response `200`

Test result

- TestConnectionResponse — Result of a connectivity test for a discovered connection
  - `connectionId` string — Identifier of the connection that was tested
  - `healthy` boolean — Whether the connection test succeeded
  - `latencyMs` integer — Round-trip latency in milliseconds
  - `errorMessage` string — Error details when the test failed

## Other responses

- `400` — Invalid connection ID
- `401` — The request lacks valid authentication credentials.
- `403` — You do not have permission to access this resource.
- `404` — Connection not found
- `500` — An unexpected error occurred on the server.
- `503` — Fetcher service is unavailable

---

[API](https://skmtc.net/lerian/apis/identity-plugin.md) · [All operations](https://skmtc.net/lerian/apis/identity-plugin/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lerian/identity-plugin/versions/25daba385532/schema)
