<span id="查询可见执行器连接状态"></span>

# Get visible executor connection states

```{raw} html
<div class="mo-api-page-show-toc" aria-hidden="true"></div>
```

Returns connection projections for visible Runners and enabled Sandboxes. Failed Astra state reads retain executors with astra_reachable=false. An empty visible set does not probe Astra, so true is not proof of platform-wide real-time health. connected/ready grants no execution privileges; states may be cached for5 seconds.


```http
GET https://api.moi.matrixorigin.cn/v5/agent-executors/health
```

<span id="调用前准备"></span>

## Before you call this API

`BASE_URL` uses the product API prefix `https://api.moi.matrixorigin.cn/v5`. For a dedicated deployment, use its corresponding product API address.

[Prepare identity and identifiers](objects.md#prepare).

<span id="请求"></span>

## Request

:::::::{div} mo-api-tabs
::::::{tab-set}
:::::{tab-item} Request example

```bash
curl --request GET \
  "$BASE_URL/agent-executors/health" \
  --header "X-API-Key: $MOI_KEY" \
  --header "X-Workspace-ID: $WORKSPACE_ID"
```

:::::
:::::{tab-item} Parameters

| Parameter | Location | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `X-Workspace-ID` | Header | string | Yes | Target workspace in the same environment; no workspace segment in the path. |

:::::
::::::
:::::::

<span id="成功响应"></span>

## Successful response

:::::::{div} mo-api-tabs mo-api-response-tabs
::::::{tab-set}
:::::{tab-item} Response example

```json
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "executors": [
      {
        "id": "runner-example",
        "name": "示例Runner",
        "type": "runner",
        "phase": "pending",
        "edge_agent_id": "runner-runner-example",
        "connected": false,
        "ready": false
      }
    ],
    "astra_reachable": false
  }
}
```

:::::
:::::{tab-item} Fields

| Field | Type | Description |
| --- | --- | --- |
| `code` | string | OK on success. |
| `msg` | string | Response information; OK on success. |
| `data` | object | [Response objects and omission rules](objects.md#responses). |

:::::
::::::
:::::::

<span id="错误响应"></span>

## Error response

[Errors and recovery boundaries](lifecycle.md#errors) distinguishes Runner, Edge renewal, and compute observations. They do not share one numeric error table.
