Create, configure, restore, and delete project apps.
Get a project app by slug
/organizations/{id}/projects/{projectId}/apps/by-slug/{appSlug}Retrieves the full details of a single app by its URL-friendly slug within the specified project. This is an alternative to looking up an app by ID when you have the human-readable slug instead. Returns the same complete app object as the get-by-ID endpoint including name, slug, app type, configuration, and timestamps.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const id = "example-id";const projectId = "example-project-id";const appSlug = "example-app-slug";
const { data: projectApp } = await gc.projectApps.getProjectAppBySlug({ id, projectId, appSlug});Get a project app by ID
/organizations/{id}/projects/{projectId}/apps/{appId}Retrieves the full details of a single app by its unique ID within the specified project. Returns the app's name, slug, app type, configuration settings, and timestamps. The app must belong to the specified project or a 404 error is returned.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { data: projectApp } = await gc.projectApps.getProjectApp({ id: "example-id", projectId: "example-project-id", appId: "example-app-id"});Get deleted apps in trash
/organizations/{id}/projects/{projectId}/apps/trashReturns a list of all soft-deleted (trashed) apps within the specified project. These are apps that have been deleted but not yet permanently removed. Each app includes its full details including name, slug, app type, and deletion timestamp. Trashed apps can be restored using the restore endpoint or permanently deleted using the permanent delete endpoint.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const projectId = "project-id";const id = "app-id";
const { data: deletedApps } = await gc.projectApps.getDeletedProjectApps({ id, projectId });Get apps in a project
/organizations/{id}/projects/{projectId}/appsReturns a paginated list of all active (non-deleted) apps configured within the specified project. Apps represent individual applications such as websites, CRM instances, email campaigns, forms, knowledge bases, or chat widgets. Each app includes its unique ID, name, slug, app type, configuration, and timestamps. Supports pagination and search filtering.
import { createGiantContext } from "@giantcontext/sdk-typescript";
const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });
const { data: projectApps } = await gc.projectApps.getProjectApps({ id: "YOUR_ID", projectId: "YOUR_PROJECT_ID"});