v2

latestOpenAPI 3.1.02026-07-2615946107.7 KB
Artifacts

Restore a soft-deleted artifact

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.

post/v1/artifacts/{id}/restore

Response

Restored

idstring
namestring
slugstring
visibility'public' | 'workspace' | 'private'

'unlisted' was retired 2026-07 — still accepted as input and treated as 'public'.

moderation_status'approved' | 'pending' | 'blocked'

Safety review state for open visibility.

allow_anon_writeboolean
allow_anon_emailboolean
allow_anon_agentboolean
allow_anon_collabboolean
urlstring uri
thumbnail_urlstring uri
is_favoriteboolean
created_atinteger