v3

latestOpenAPI 3.1.02026-07-311,4541,5202.3 MB
prompts

Api Prompts Backups Create

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.

post/api/prompts/backups/

Headers

Authorizationstring required

JWT access token or Respan API key

Response

No response body

PromptsApiPromptsBackupsCreateResponse200 required

Empty response body