Generate and manage website builder content.
Delete an element from a document
/organizations/{organizationId}/projects/{projectId}/content/elements/delete
Parameters
Body Required
SDK
curl -X POST "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/content/elements/delete" \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "contentId": "contentId_uuid", "elementId": "elementId_value", "contentType": "developer_doc"}'
Add an element to a document
/organizations/{organizationId}/projects/{projectId}/content/elements/insert
Parameters
Body Required
SDK
curl -X POST "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/content/elements/insert" \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "contentId": "contentId_uuid", "contentType": "developer_doc"}'
Change an element's attributes or words
/organizations/{organizationId}/projects/{projectId}/content/elements/update
Parameters
Body Required
SDK
curl -X POST "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/content/elements/update" \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "words": "words_value", "contentId": "contentId_uuid", "elementId": "elementId_value", "attributes": "attributes_value", "contentType": "developer_doc"}'
Delete a section with its data and the words only it printed
/organizations/{organizationId}/projects/{projectId}/content/sections/delete
Parameters
Body Required
SDK
import { createGiantContext } from "@giantcontext/sdk-typescript";const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });const { organizations: orgs } = await gc.me.listMyOrganizations();const { projects } = await gc.projects.listProjects({ organizationId: orgs[0].id });const result = await gc.builder.deleteSection({ organizationId: orgs[0].id, projectId: projects[0].id, data: { id: "section-id" }});
import osfrom giantcontext import GiantContextgc = GiantContext(api_key=os.environ["GIANTCONTEXT_API_KEY"])orgs = gc.me.list_my_organizations().organizationsorg_id = orgs[0].idprojects = gc.projects.list_projects(organization_id=org_id).projectsproject_id = projects[0].idresult = gc.builder.delete_section( organization_id=org_id, project_id=project_id, data={})
curl -X POST "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/content/sections/delete" \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "contentId": "contentId_uuid", "sectionId": "sectionId_value", "contentType": "developers_landing"}'
Add a library section to a page or other section document
/organizations/{organizationId}/projects/{projectId}/content/sections/insert
Parameters
Body Required
SDK
import { createGiantContext } from "@giantcontext/sdk-typescript";const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });const { organizations: orgs } = await gc.me.listMyOrganizations();const { projects } = await gc.projects.listProjects({ organizationId: orgs[0].id });const result = await gc.builder.insertSection({ organizationId: orgs[0].id, projectId: projects[0].id, data: {}});
import osfrom giantcontext import GiantContextgc = GiantContext(api_key=os.environ["GIANTCONTEXT_API_KEY"])orgs_res = gc.me.list_my_organizations()org_id = orgs_res.organizations[0].idprojects_res = gc.projects.list_projects(organization_id=org_id)project_id = projects_res.projects[0].idresult = gc.builder.insert_section( organization_id=org_id, project_id=project_id, data={"title": "New Section"})
curl -X POST "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/content/sections/insert" \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "type": "type_value", "contentId": "contentId_uuid", "contentType": "developers_landing"}'
Change one section's settings, rows or words
/organizations/{organizationId}/projects/{projectId}/content/sections/update
Parameters
Body Required
SDK
import { createGiantContext } from "@giantcontext/sdk-typescript";const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });const { organizations: orgs } = await gc.me.listMyOrganizations();const { projects } = await gc.projects.listProjects({ organizationId: orgs[0].id });const result = await gc.builder.updateSection({ organizationId: orgs[0].id, projectId: projects[0].id, data: {}});
import osfrom giantcontext import GiantContextgc = GiantContext(api_key=os.environ["GIANTCONTEXT_API_KEY"])orgs = gc.me.list_my_organizations().organizationsprojects = gc.projects.list_projects().projectsresult = gc.builder.update_section( organization_id=orgs[0].id, project_id=projects[0].id, data={})
curl -X POST "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/content/sections/update" \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "lists": "lists_value", "words": "words_value", "settings": "settings_value", "contentId": "contentId_uuid", "sectionId": "sectionId_value", "contentType": "developers_landing"}'
Move an element to another place in its document
/organizations/{organizationId}/projects/{projectId}/content/elements/move
Parameters
Body Required
SDK
curl -X POST "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/content/elements/move" \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "intoId": "intoId_value", "afterId": "afterId_value", "beforeId": "beforeId_value", "contentId": "contentId_uuid", "elementId": "elementId_value", "contentType": "developer_doc"}'
Move a section before or after another, or to the end
/organizations/{organizationId}/projects/{projectId}/content/sections/move
Parameters
Body Required
SDK
import { createGiantContext } from "@giantcontext/sdk-typescript";const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });const { organizations: orgs } = await gc.me.listMyOrganizations();const { projects } = await gc.projects.listProjects({ organizationId: orgs[0].id });const result = await gc.builder.moveSection({ organizationId: orgs[0].id, projectId: projects[0].id, data: {},});
import osfrom giantcontext import GiantContextgc = GiantContext(api_key=os.environ["GIANTCONTEXT_API_KEY"])orgs = gc.me.list_my_organizations().organizationsorg_id = orgs[0].idprojects = gc.projects.list_projects(organization_id=org_id).projectsproject_id = projects[0].idresult = gc.builder.move_section( organization_id=org_id, project_id=project_id, data={"section_id": "sec_123", "index": 0})
curl -X POST "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/content/sections/move" \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "contentId": "contentId_uuid", "sectionId": "sectionId_value", "contentType": "developers_landing", "afterSectionId": "afterSectionId_value", "beforeSectionId": "beforeSectionId_value"}'
Set whether content is listed and whether it requires a signed-in reader
/organizations/{organizationId}/projects/{projectId}/content/visibility
Parameters
Body Required
SDK
import { createGiantContext } from "@giantcontext/sdk-typescript";const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });const { organizations: orgs } = await gc.me.listMyOrganizations();const { projects } = await gc.projects.listProjects({ organizationId: orgs[0].id });const result = await gc.builder.setContentVisibility({ organizationId: orgs[0].id, projectId: projects[0].id, data: {},});
import osfrom giantcontext import GiantContextgc = GiantContext(api_key=os.environ["GIANTCONTEXT_API_KEY"])orgs = gc.me.list_my_organizations().organizationsorg_id = orgs[0].idprojects = gc.projects.list_projects(organization_id=org_id).projectsproject_id = projects[0].idresult = gc.builder.set_content_visibility( organization_id=org_id, project_id=project_id, data={})
curl -X POST "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/content/visibility" \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "isListed": true, "contentId": "contentId_uuid", "contentType": "developer_doc", "requiresViewerAuth": true}'
Unpublish a content item, returning it to draft
/organizations/{organizationId}/projects/{projectId}/content/unpublish
Parameters
Body Required
SDK
import { createGiantContext } from "@giantcontext/sdk-typescript";const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });const { organizations: orgs } = await gc.me.listMyOrganizations();const { projects } = await gc.projects.listProjects({ organizationId: orgs[0].id });const result = await gc.builder.unpublishContent({ organizationId: orgs[0].id, projectId: projects[0].id, data: {}});
import osfrom giantcontext import GiantContextgc = GiantContext(api_key=os.environ["GIANTCONTEXT_API_KEY"])orgs = gc.me.list_my_organizations().organizationsorg_id = orgs[0].idprojects = gc.projects.list_projects(organization_id=org_id).projectsproject_id = projects[0].idresult = gc.builder.unpublish_content( organization_id=org_id, project_id=project_id, data={})
curl -X POST "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/content/unpublish" \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "contentId": "contentId_uuid", "publishAt": "publishAt_value", "contentType": "developer_doc"}'
Publish a page, post, article, doc or email — status only, never the body
/organizations/{organizationId}/projects/{projectId}/content/publish
Parameters
Body Required
SDK
import { createGiantContext } from "@giantcontext/sdk-typescript";const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });const { organizations: orgs } = await gc.me.listMyOrganizations();const { projects } = await gc.projects.listProjects({ organizationId: orgs[0].id });const result = await gc.builder.publishContent({ organizationId: orgs[0].id, projectId: projects[0].id, data: { title: "New Content", body: "Hello world" }});
import osfrom giantcontext import GiantContextgc = GiantContext(api_key=os.environ["GIANTCONTEXT_API_KEY"])orgs = gc.me.list_my_organizations().organizationsprojects = gc.projects.list_projects().projectsresult = gc.builder.publish_content( organization_id=orgs[0].id, project_id=projects[0].id, data={"title": "New Content", "body": "Hello world"})
curl -X POST "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/content/publish" \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "contentId": "contentId_uuid", "publishAt": "publishAt_value", "contentType": "developer_doc"}'
Find a string or a block type inside content
/organizations/{organizationId}/projects/{projectId}/content/search
Parameters
SDK
import { createGiantContext } from "@giantcontext/sdk-typescript";const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });const { organizations: orgs } = await gc.me.listMyOrganizations();const { projects } = await gc.projects.listProjects({ organizationId: orgs[0].id });const result = await gc.builder.searchContent({ organizationId: orgs[0].id, projectId: projects[0].id,});
import osfrom giantcontext import GiantContextgc = GiantContext(api_key=os.environ["GIANTCONTEXT_API_KEY"])orgs = gc.me.list_my_organizations().organizationsorg_id = orgs[0].idprojects = gc.projects.list_projects(organization_id=org_id).projectsproject_id = projects[0].idcontent = gc.builder.search_content( organization_id=org_id, project_id=project_id)
curl -X GET "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/content/search" \ -H "Authorization: Bearer $API_KEY"
Get a document to edit, with an id on every element
/organizations/{organizationId}/projects/{projectId}/content
Parameters
SDK
import { createGiantContext } from "@giantcontext/sdk-typescript";const gc = createGiantContext({ apiKey: process.env.GIANTCONTEXT_API_KEY! });const { organizations: orgs } = await gc.me.listMyOrganizations();const { projects } = await gc.projects.listProjects({ organizationId: orgs[0].id });const { content } = await gc.builder.getContent({ organizationId: orgs[0].id, projectId: projects[0].id, contentType: "page", contentId: "content-123",});
import osfrom giantcontext import GiantContextgc = GiantContext(api_key=os.environ["GIANTCONTEXT_API_KEY"])orgs_res = gc.me.list_my_organizations()org_id = orgs_res.organizations[0].idprojects_res = gc.projects.list_projects()project_id = projects_res.projects[0].idtypes_res = gc.builder.get_content_types()content_type = types_res.content_types[0]content = gc.builder.get_content( organization_id=org_id, project_id=project_id, content_type=content_type, content_id="your-content-id")
curl -X GET "https://api.giantcontext.com/organizations/organizationId_uuid/projects/projectId_uuid/content?contentType=developer_doc&contentId=contentId_uuid" \ -H "Authorization: Bearer $API_KEY"
This content was built autonomously. Giant Context analyzed the site, determined what was missing, created and submitted an idea and draft, which Giant Context staff accepted and published.
Cookie Consent
We use cookies to enhance your browsing experience, serve personalized content, and analyze our traffic.