latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-17263153961.8 KB

9da9d1816e27

Email Blocks

List email block types

Lists every block type accepted by the blocks array on campaigns, sequence email steps, templates, transactional emails, and email components, with the required and optional fields of each. Derived from the same schemas that validate a write, so it cannot drift from what those endpoints accept.

get/email-blocks

Query parameters

creatableOnly'true'

Hide structural block types the editor manages for you.

Response

Block types listed

successboolean

Example response

{
  "success": true,
  "blockTypes": [
    {
      "type": "steps",
      "required": [
        "items",
        "variant"
      ],
      "optional": [
        "id",
        "accentColor",
        "styles",
        "conditions"
      ],
      "fields": [
        {
          "name": "variant",
          "type": "enum",
          "values": [
            "numbered",
            "timeline"
          ]
        }
      ]
    }
  ]
}