**版本：202601**

# 查询 URL 重定向详情

**GET** `/openapi/2026-01/redirects/:id`

通过 URL 重定向规则 ID 获取指定 URL 重定向规则的详情。

## 请求

**Path参数**

- `id` int64 (required)

  URL 重定向规则 ID

## 响应

**200**

OK

**application/json**

**数据结构 | 示例**

**数据结构**

- `code` string

  错误码
- `message` string

  错误信息
- `data` object

  - `redirect` object

    URL 重定向

    - `id` int64

      重定向 ID
    - `store_id` int32

      重定向创建所在店铺的 ID
    - `status` string

      重定向状态
    - `from_url` string

      指定用于重定向的原始 URL
    - `redirect_url` string

      为重定向指定的目标 URL

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "redirect": {
      "id": 0,
      "store_id": 0,
      "status": "string",
      "from_url": "string",
      "redirect_url": "string"
    }
  }
}
```
