Restore a soft-deleted artifact
const url = 'https://shareout.site/v1/artifacts/example/restore';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://shareout.site/v1/artifacts/example/restore \ --header 'Authorization: Bearer <token>'Bring a trashed artifact back. Allocates a fresh routing + display slug (suffixed if the original was reclaimed by a re-publish while it was trashed), recreates the production deployment from the latest version, and returns the artifact detail. Caller must be the owner, or a workspace owner/admin. Only works inside the 30-day window — after that the artifact is permanently purged.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Artifact ID (e.g. art_abc123).
Responses
Section titled “Responses”Restored
object
‘unlisted’ was retired 2026-07 — still accepted as input and treated as ‘public’.
Safety review state for open visibility.
Version_no live on the production deployment (reflects rollback).
Change note of the live version (detail endpoint only).
author when the publisher wrote live_message, ai when it was generated (detail endpoint only).
Caller’s role (list endpoint only).
Caller may update the artifact and use the editor (detail endpoint only).
Caller may move the artifact to Trash (detail endpoint only).
Caller may change the artifact’s comment settings, such as guest comments (owner; detail endpoint only).
HTML pages of the live version, entrypoint first (detail endpoint only; present when there are 2+).
The live version’s entrypoint (detail endpoint only; present with pages).
Example
{ "visibility": "public", "moderation_status": "approved", "live_message_source": "author"}Artifact is not deleted
Access denied
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}Resource not found
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}Artifact has no version to restore
