Skip to main content
POST
Restore a file from trash

Authorizations

X-Public-Key
string
header
required

Public half of the company API key. Format: pk_ followed by 64 hexadecimal characters.

X-Secret-Key
string
header
required

Secret half of the company API key. Format: sk_ followed by 64 hexadecimal characters. Stored as a hash server-side and shown only at creation or rotation.

Path Parameters

fileId
string<uuid>
required

File identifier.

Response

Restore result. Inspect the nested data.status.

status
integer
required
Example:

200

message
string
required
Example:

"File restored from trash"

data
object
required

Service result nested inside the controller envelope. The HTTP status is always 200 here; read status to detect failure.