Email Blocks

List email block types

Changed on

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

Request

  • Base URL
    https://api.sequenzy.com/api/v1
  • URL
    https://api.sequenzy.com/api/v1/email-blocks
  • Auth
    HTTP bearer

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"
          ]
        }
      ]
    }
  ],
  "conditionFields": [
    {
      "field": "tag",
      "label": "Tag",
      "operators": [
        "contains",
        "not_contains",
        "is_empty",
        "is_not_empty"
      ]
    }
  ]
}

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property to the response with the status