---
title: "Create an index from a backup"
method: POST
path: "/backups/{backup_id}/create-index"
tags: ["Manage Indexes"]
---

# Create an index from a backup

`POST /backups/{backup_id}/create-index`

Create an index from a backup.

## Path parameters

- `backup_id` string, required

## Headers

- `X-Pinecone-Api-Version` string, required

## Request body

- DbControlCreateIndexFromBackupRequest — The configuration needed to create a Pinecone index from a backup.
  - `name` string, required — The name of the index. Resource name must be 1-45 characters long, start and end with an alphanumeric character, and consist only of lower case alphanumeric characters or '-'.
  - `tags` DbControlIndexTags — Custom user tags added to an index. Keys must be 80 characters or less. Values must be 120 characters or less. Keys must be alphanumeric, '_', or '-'. Values must be alphanumeric, ';', '@', '_', '-', '.', '+', or ' '. To unset a key, set the value to be an empty string.
  - `deletion_protection` string — Whether [deletion protection](http://docs.pinecone.io/guides/manage-data/manage-indexes#configure-deletion-protection) is enabled/disabled for the index. Possible values: `disabled` or `enabled`.

## Response `202`

The request to create the index has been accepted.

- DbControlCreateIndexFromBackupResponse — The response for creating an index from a backup.
  - `restore_job_id` string, required — The ID of the restore job that was created.
  - `index_id` string, required — The ID of the index that was created from the backup.

## Other responses

- `400` — Bad request. The request body included invalid request parameters.
- `401` — Unauthorized. Possible causes: Invalid API key.
- `402` — Payment required. Organization is on a paid plan and is delinquent on payment.
- `403` — You've exceed your pod quota.
- `404` — Backup not found.
- `409` — Index of given name already exists.
- `422` — Unprocessable entity. The request body could not be deserialized.
- `500` — Internal server error.

---

[API](https://skmtc.net/pinecone/apis/pinecone-api.md) · [All operations](https://skmtc.net/pinecone/apis/pinecone-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pinecone/pinecone-api/revisions/35876583485d/schema)
