Skip to content
API reference/Templates

List section types

Try it

Every kind of section a page can hold, with the JSON Schema its content must match. Use it before adding or changing a section.

GET/api/v1/section-types

Authentication

An API key as Authorization: Bearer or x-api-key. It needs the templates:read scope — read templates, packages and section types.

templates:readRead onlyMCP tool: list_section_types

Parameters

Named placeholders go in the path; the rest in the query string.

No parameters.

Response

200 with JSON on success (schema on the right). Errors use the standard envelope.

curl
curl -X GET 'https://websites.workflowcorp.com/api/v1/section-types' \
  -H "Authorization: Bearer $WEBSITEBUDDY_API_KEY"
Example arguments
{}
Response schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "reseller_only": {
            "type": "boolean"
          },
          "content_schema": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "required": [
          "type",
          "label",
          "description",
          "reseller_only",
          "content_schema"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false
}