Document AI — DMS

Restore Document from Trash

Restore one or more soft-deleted documents from the trash. Also supports document folders (.podf). Only restorable while phase=pending (not permanently deleted).

post/documents/document-restore

Request

  • Base URL: https://api.paperoffice.ai/latest
  • URL: https://api.paperoffice.ai/latest/documents/document-restore
  • Auth: HTTP bearer

Request body

pofidstring required

POFID or array of POFIDs to restore

target_workspace_idinteger

Optional: Restore to this workspace instead of original

Response

Success

status'success' | 'error'

Request status (ok/error)

messagestring

Status message

pofidstring

PaperOffice File ID

processing_timestring

Request processing time (e.g. "123.45ms")

restored_countstring

Restored count

failed_countstring

Failed count

restored_documentsstring

Restored documents

failed_documentsstring

Failed documents

Changes

No recorded changes to this operation across all 1 revision of this API.