Review and restore trashed project resources.
Get a single trash item
/organizations/{id}/projects/{projectId}/trash/{trashId}Retrieves the full details of a single item in the project trash by its trash record ID. Includes the original entity type, entity ID, name, deletion timestamp, and the stored entity data snapshot.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { data: trashItem } = await gc.projectTrash.getProjectTrashItem({ id: "item_id", projectId: "project_id", trashId: "trash_id"});Get all items in project trash
/organizations/{id}/projects/{projectId}/trashReturns a paginated list of all soft-deleted resources across the entire project, including pages, posts, files, forms, and other entities. Supports filtering by entity type to narrow results. Each trash item includes the original entity metadata, deletion timestamp, and the user who deleted it.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { data: trash } = await gc.projectTrash.listProjectTrash({ id: "id_example", projectId: "project_id_example"});