API reference/Sections
List a page's sections
Try itThe draft sections on one page, in order, with their content.
GET
/api/v1/sites/{site_id}/pages/{page_id}/sectionsAuthentication
An API key as Authorization: Bearer or x-api-key. It needs the sites:read scope — read sites, pages and sections.
sites:readRead onlyMCP tool: list_sections
Parameters
Named placeholders go in the path; the rest in the query string.
site_idstringPath · required- The site's id.1 to 100 characters
page_idstringPath · required- The page's id.1 to 100 characters
Response
200 with JSON on success (schema on the right). Errors use the standard envelope.
curl -X GET 'https://websites.workflowcorp.com/api/v1/sites/SITE_ID/pages/PAGE_ID/sections' \
-H "Authorization: Bearer $WEBSITEBUDDY_API_KEY"{
"site_id": "SITE_ID",
"page_id": "PAGE_ID"
}{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"page_id": {
"type": "string"
},
"type": {
"type": "string"
},
"type_label": {
"type": "string"
},
"position": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"hidden": {
"type": "boolean"
},
"content": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "The section's content; its shape is the type's content_schema (List section types)."
},
"is_sample": {
"type": "boolean"
},
"saved_section_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Set when this is a LINKED placement of a saved section (Saved sections): its content is the saved section's."
}
},
"required": [
"id",
"page_id",
"type",
"type_label",
"position",
"hidden",
"content",
"is_sample",
"saved_section_id"
],
"additionalProperties": false
}
}
},
"required": [
"data"
],
"additionalProperties": false
}