---
title: "Create a redirect"
method: POST
path: "/cms/redirects"
tags: ["CMS"]
---

# Create a redirect

`POST /cms/redirects`

## Request

- Base URL: `https://next.frase.io/api/v1`
- URL: `https://next.frase.io/api/v1/cms/redirects`
- Auth: API key in header `X-API-KEY`

Create a single manual redirect on a site. Paths are site-relative. Self-redirects and redirects that would create a loop are rejected.

## Request body

- object
  - `site_id` string, uuid, required: Required. The site to add the redirect to.
  - `from_path` string, required: Required. Site-relative source path.
  - `to_path` string, required: Required. Site-relative destination path.

## Response `201`

Redirect created

- object
  - `data` object
    - `redirect` object
      - `id` string, uuid
      - `from_path` string
      - `to_path` string
      - `status_code` integer: One of 301, 302, 307, 308.
      - `is_active` boolean
      - `source` 'manual' | 'import' | 'slug_change': How the redirect was created.
      - `created_at` string, date-time
  - `request_id` string

## Other responses

- `400`: Validation failed
- `401`: Authentication failed
- `404`: Resource not found
- `429`: Rate limited, or the org's monthly brief limit blocked minting the refreshed brief (only the FIRST supersession of a brief is billing-exempt; repeats meter normally)

---

[API](https://skmtc.dev/frase/apis/frase-api.md) · [All operations](https://skmtc.dev/frase/apis/frase-api/llms.txt) · [OpenAPI document](https://skmtc.dev/frase/apis/frase-api/revisions/7fb75d89f7a4?raw)
