---
title: "Restore staged project-level redirects to their production version."
method: POST
path: "/v1/bulk-redirects/restore"
tags: ["bulk-redirects"]
---

# Restore staged project-level redirects to their production version.

`POST /v1/bulk-redirects/restore`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/v1/bulk-redirects/restore`
- Auth: HTTP bearer

Restores the provided redirects in the staging version to the value in the production version. If no production version exists, removes the redirects from staging.

## Query parameters

- `projectId` string, required
- `teamId` string
- `slug` string

## Request body

- object
  - `name` string
  - `redirects` string[], required: The redirects to restore. The source of the redirect is used to match the redirect to restore.

## Response `200`

- object
  - `failedToRestore` string[], required
  - `restored` string[], required
  - `version` object, required
    - `alias` string: The staging link for previewing redirects in this version.
    - `createdBy` string, required
    - `id` string, required: The unique identifier for the version.
    - `isLive` false | true: Whether this version is currently live in production.
    - `isStaging` false | true: Whether this version has not been promoted to production yet and is not serving end users.
    - `key` string, required: The key of the version. The key may be duplicated across versions if the contents are the same as a different version.
    - `lastModified` number, required
    - `name` string: Optional name for the version. If not provided, defaults to an ISO timestamp string.
    - `redirectCount` number: The number of redirects in this version.

## Other responses

- `400`: One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
- `401`: The request is not authorized.
- `403`: You do not have permission to access this resource.
- `404`
- `410`
- `500`

## Changes

- **2026-07-21** `2ae10ee9d21c`: 1 info
  - added the non-success response with the status `410`
- **2026-01-22** `c12186034433`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vercel/apis/vercel-api/changes/v1/bulk-redirects/restore/post.md)

---

[API](https://skmtc.dev/vercel/apis/vercel-api.md) - [All operations](https://skmtc.dev/vercel/apis/vercel-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vercel/apis/vercel-api/revisions/60686c0e1f6a?raw)
