**Version: 202201**

# Search Redirect

**POST** `/openapi/2022-01/redirects/detail`

Searches URL redirect rules by path pattern or keyword.

## Request

**application/json**

**Body | Example**

**Body**

- `from_url` string

  Original URL, for example: `/collections/hot-selling`

```json
{
  "from_url": "string"
}
```

## Responses

**200 | 404**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `id` integer

  **Default value:** `0`

  **Example:** `373043233132924740`
- `store_id` integer

  **Default value:** `0`

  **Example:** `633130`
- `status` string

  **Example:** `open`
- `from_url` string

  **Example:** `/collections/hot-selling`
- `redirect_url` string

  **Example:** `/collections/test1567`

```json
{
  "id": 373043233132924740,
  "store_id": 633130,
  "status": "open",
  "from_url": "/collections/hot-selling",
  "redirect_url": "/collections/test1567"
}
```

```json
{
  "id": 373043233132924740,
  "store_id": 633130,
  "status": "open",
  "from_url": "/collections/hot-selling",
  "redirect_url": "/collections/test1567"
}
```

404

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "Record not found"
  ]
}
```

```json
{
  "errors": [
    "Record not found"
  ]
}
```
