Email Blocks

Get email block type

Changed on

Returns the full field reference for one block type, with a minimal valid example and authoring notes. For line-items, includes optional itemFields mappings from display fields to relative dotted paths within each item. Omitted or blank mappings use standard field names. Mapping values must be strings of at most 200 characters.

get/email-blocks/{type}

Request

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

Path parameters

typestring required

Block type, for example list, steps, text, or hero.

Query parameters

conditionFields'true'

Include the per-field condition table in the response. Not needed for conditional-group, which always carries it. The table is several times the size of one block type's reference, so a targeted lookup does not carry it unless asked.

Response

Block type reference

successboolean
conditionFieldsHintstring

Returned in place of conditionFields when the table was not included, saying that conditions are per-field and how to request the table.

Example response

{
  "success": true,
  "blockType": {
    "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"
      ]
    }
  ],
  "conditionFieldsHint": "Every block also takes a `conditions` array, and each condition field accepts only its own operators. Request this endpoint with ?conditionFields=true, or GET /email-blocks, for `conditionFields`: the operators, value format, and render-preview support of every condition field."
}

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 new optional query request parameter conditionFields

    • 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