---
title: "Api Prompts Backups Create"
method: POST
path: "/api/prompts/backups/"
tags: ["prompts"]
---

# Api Prompts Backups Create

`POST /api/prompts/backups/`

Unified restore endpoint.

- {prompt_id} alone → restore from trash (clear deleted_at),
  or latest S3 backup if not in trash
- {prompt_id, date} → restore from specific date's S3 backup

The restore reads its backup from, and writes into, a single org
resolved server-side. Regular callers always get their own org; only
a verified superadmin may target another org via ``organization_id``
(gated on the staff_write step-up for this write). The destructive
pre-restore deletion can therefore never reach an org the caller
isn't authorized for.

## Headers

- `Authorization` string, required

## Response `200`

No response body

- PromptsApiPromptsBackupsCreateResponse200 — Empty response body

---

[API](https://skmtc.net/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.net/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/keywordsai/api-reference/versions/c26d550029f8/schema)
