Skip to main content
POST
Validate In-App HTML
Checks a document for a custom HTML in-app message without saving anything: its size against the 100 KB limit, the Braze Liquid personalization Sequenzy converts (for example {{${email_address}}} to {{email}}), the hosts it loads scripts from, whether it closes itself, and anything that would block saving. Run it on a Survicate or Braze custom HTML message before using it as an in_app step with format: "html". Requires the sequences:read scope.

Body

string
required
The document: HTML, CSS and JavaScript. Documents up to 400 KB are checked, so an oversized one gets a clear error instead of a rejected request.

Response

boolean
True when the document can be saved on an in-app step.
number
Size in UTF-8 bytes after Braze Liquid is converted.
number
The size limit, 102,400 bytes.
array
Braze Liquid converted to Sequenzy merge tags: { from, to, count }.
array
Hosts the document loads scripts from. Websites with a Content Security Policy must allow them.
boolean
True when the document calls sequenzy.close() or brazeBridge.closeMessage(), so the step can turn its close button off.
array
{ code, message } items: no_close, external_scripts, braze_converted and unsupported_bridge_method. Warnings don’t block saving.
array
Problems that block saving, such as an empty or oversized document or Braze Liquid with no Sequenzy equivalent.