**Version: 202601**

# Create URL redirect

**POST** `/openapi/2026-01/redirects`

Create a new url redirect with the provided details.

## Request

**application/json**

**Body | Example**

**Body (required)**

- `redirect` object (required)

  The URL redirect to be created

  - `from_url` string (required)

    Original URL to be redirected
  - `redirect_url` string (required)

    Target URL where the original URL will redirect users
  - `status` string (required)

    Status of the redirect: open (available) or close (unavailable)

```json
{
  "redirect": {
    "from_url": "string",
    "redirect_url": "string",
    "status": "string"
  }
}
```

## Responses

**200**

OK

**application/json**

**Schema | Example**

**Schema**

- `code` string

  error code
- `message` string

  error message
- `data` object

  - `redirect` object

    URL redirect

    - `id` int64

      Redirect ID
    - `store_id` int32

      ID of the store where the redirect is created
    - `status` string

      Status of the redirect
    - `from_url` string

      The original URL specified for redirection
    - `redirect_url` string

      The target URL specified for the redirection

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