---
title: "Restore archived content"
method: POST
path: "/api/v1/content/{id}/restore"
tags: ["Content"]
---

# Restore archived content

`POST /api/v1/content/{id}/restore`

## Request

- Base URL: `https://app.promptingco.com`
- URL: `https://app.promptingco.com/api/v1/content/{id}/restore`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer
  - API key in cookie `better-auth.session_token`

Restore a soft-deleted live document and its linked draft and tracked URL. Accepts an archived document id.

## Path parameters

- `id` string, required

## Response `200`

Successful response

- object
  - `ok` true, required
  - `data` object, required
    - `kind` 'document', required
    - `restoredCount` integer, required
    - `failedCount` integer, required
    - `restored` object[], required
      - `id` string, required
      - `title` string, required
    - `failed` object[], required
      - `id` string, required
      - `message` string, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Not found
- `422`: Validation failed
- `500`: Internal server error

---

[API](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api.md) - [All operations](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api/llms.txt) - [OpenAPI document](https://skmtc.dev/promptingcompany/apis/the-prompting-company-api/revisions/c0451ea10e9a?raw)
