---
title: "Test external agent connection"
method: POST
path: "/v2/agents/external/{agent_key}:testConnection"
tags: ["Agents"]
---

# Test external agent connection

`POST /v2/agents/external/{agent_key}:testConnection`

## Request

- Base URL: `https://my.orq.ai`
- URL: `https://my.orq.ai/v2/agents/external/{agent_key}:testConnection`
- Auth: HTTP bearer

Validates the stored connection configuration and securely fetches the external agent card without persisting changes.

## Path parameters

- `agent_key` string, required

## Request body

- TestExternalAgentConnectionRequest

## Response `200`

OK

- TestExternalAgentConnectionResponse
  - `reachable` boolean
  - `card` object

## Other responses

- `401`: Authentication required. See https://docs.orq.ai/reference/errors for the error codes.

## Changes

> 554 revisions in range; 71 not diffed.

- **2026-10-23** `0b4e519a544f`: 1 info
  - endpoint added
- **2026-10-23** `732aed62833a`: 1 breaking
  - api path removed without deprecation
- **2026-10-22** `4f826b2c3a0e`: 1 info
  - endpoint added
- **2026-10-22** `8f0dc569f247`: 1 breaking
  - api path removed without deprecation
- **2026-10-21** `08b800d640e6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/orq-ai/apis/orq-ai-api/changes/v2/agents/external/:agent_key:testConnection/post.md)

---

[API](https://skmtc.dev/orq-ai/apis/orq-ai-api.md) - [All operations](https://skmtc.dev/orq-ai/apis/orq-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/orq-ai/apis/orq-ai-api/revisions/928a71e92252?raw)
