Braze Content Blocks icon

Braze Content Blocks

Manage reusable content blocks for Braze email templates

Get Content Block Info

AI-generated

Overview

This node manages reusable content blocks for Braze email templates. It allows users to create, retrieve detailed information about, list, and update content blocks via Braze's API. Content blocks are modular pieces of content that can be reused across multiple campaigns or canvases, making email template management more efficient.

Common scenarios where this node is beneficial include:

  • Retrieving metadata and usage details of a specific content block to audit or analyze its deployment.
  • Automating the creation or updating of content blocks as part of a CI/CD pipeline for marketing emails.
  • Listing all content blocks with filtering options to manage large sets of reusable content efficiently.

For example, a marketer might use the "Get Content Block Info" operation to fetch details about a particular content block, including which campaigns or canvases currently use it, helping them decide whether to update or retire it.

Properties

Name Meaning
Content Block ID The unique API identifier of the content block to operate on (required for "Get Content Block Info" and "Update Content Block").
Include Inclusion Data Boolean flag indicating whether to include Message Variation API identifiers of campaigns/canvases using this content block (only for "Get Content Block Info"). Options: true or false.

Output

The node outputs JSON data representing the response from the Braze API for the selected operation:

  • For Get Content Block Info, the output JSON contains detailed information about the specified content block, including its properties and optionally the inclusion data showing where the content block is used.
  • For other operations (create, list, update), the output JSON reflects the respective API responses such as confirmation of creation, lists of content blocks, or updated content block details.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authenticating with the Braze API.
  • Needs the Braze instance URL or endpoint configured in the credentials.
  • Uses HTTP requests to communicate with Braze's REST API endpoints.

Troubleshooting

  • Common issues:

    • Invalid or missing Content Block ID when required will cause API errors.
    • Incorrect API key or instance endpoint configuration will result in authentication failures.
    • Passing invalid parameters or malformed request bodies may lead to Braze API validation errors.
  • Error messages:

    • Errors returned from Braze API are captured and presented with their message, HTTP status code, and Braze-specific error codes.
    • If the node is set to continue on failure, errors are included in the output JSON under an error field along with original error details.
    • To resolve errors, verify the correctness of input parameters, ensure valid API credentials, and check Braze API documentation for parameter requirements.

Links and References

Discussion