<span id="查询消息接收连接详情"></span>

# Get an ingress connection

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

Read ingress connection details.

```text
GET https://api.moi.matrixorigin.cn/v5/workspaces/{workspace_id}/ingress-connections/{connection_id}
```

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

## Before you call this API

Prepare a personal access token with access to the target workspace and permission for the action. The path workspace must match X-Workspace-ID. Examples use jq. See [common information](objects.md) for variables, objects, and states.

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

## Request example

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

```bash
curl -X GET "https://api.moi.matrixorigin.cn/v5/workspaces/$WORKSPACE_ID/ingress-connections/$CONNECTION_ID" \
  -H "X-API-Key: $AI_STUDIO_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"
```

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

Get the connection ID from creation or the target list. desired_state is the requested state; observed_state is the receiver's observed state. connected alone does not establish message and reply delivery.

This action accepts no request body.

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

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

## Successful response

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

```json
{
  "code": 0,
  "data": {
    "id": "ingress_example",
    "workspace_id": "workspace_example",
    "target": {
      "kind": "agent",
      "workspace_id": "workspace_example",
      "id": "agent_example"
    },
    "provider": "slack",
    "channel_type": "slack_app",
    "receive_mode": "managed_stream",
    "agent_model": "model_example",
    "association_version": 1,
    "connected_by_user_id": "user_example",
    "enabled": true,
    "account_identity": "slack:app:app_example",
    "config_version": 1,
    "desired_state": "enabled",
    "observed_state": "starting",
    "created_at": "2026-11-11T00:00:00Z",
    "updated_at": "2026-11-11T00:00:00Z"
  }
}
```

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

| Field | Type | Description |
| --- | --- | --- |
| `code` | integer | 0 on success. |
| `data` | object | Result object; see common objects for fields. |

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

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

## Error responses

Handle the HTTP status, business result, and error fields as described in [errors and environments](objects.md#错误与环境). On source or version conflicts, read the current state. Do not automatically replace identities, resources, or request IDs and retry.
