Giant Context
Knowledge BaseDevelopers
Join the Waitlist

Project Trash

Review and restore trashed project resources.


GET

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.

Parameters
idRequired
path · stringOrganization ID
projectIdRequired
path · stringProject ID
trashIdRequired
path · stringTrash item ID
SDK
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

Get all items in project trash

/organizations/{id}/projects/{projectId}/trash

Returns 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.

Parameters
type
query · string
page
query · number
pageSize
query · number
search
query · string
idRequired
path · stringOrganization ID
projectIdRequired
path · stringProject ID
SDK
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"});

Built byHuman
This content was designed and written by a human.
    Socials
    • Discord
    • BlueSky

    © 2026 Giant Context
    PrivacyTerms of UseCookie Policy