Skip to content
v1.0.0
OpenAPI 3.0.3

Raw HTML Compilation

Server:https://plugins.stripo.email

Stripo plugin host

No authentication selected
Client Libraries

Methods

​

Compile raw HTML and CSS

​

Accepts raw email HTML and CSS directly and returns compiled, export-ready HTML.

Unlike the session-based compilation endpoint, this method does not require an active editor session or email ID — it processes whatever HTML and CSS you provide.

Suitable for legacy integrations and external workflows where email content is managed outside the Stripo editor. Performs the same compilation pipeline: inlines CSS styles, resolves synchronizable modules, applies display conditions, adds UTM parameters, and generates AMP HTML when AMP markup is detected.

Body·

required
application/json

Request body for compiling email template HTML. Only html is required by runtime validation.

  • Source email template HTML to compile.

  • Plugin request data, encoded as a JSON string, passed to synchronizable module replacement. In the editor UI this is derived from plugin apiRequestData only when synchronizable modules are enabled. Pass it only if the HTML contains synchronizable modules that must be resolved.

  • CSS to inline into the HTML. If absent or empty, HTML is returned without CSS inlining. Non-blank CSS is rejected only when both the raw CSS and the CSS after comment removal exceed 5,000,000 characters.

  • Custom query parameters to add to links along with standard UTM parameters.

    Properties: 2
  • Merge tag placeholders to preserve while processing links and UTM parameters.

  • When true, removes unnecessary whitespace and compresses the regular HTML output.

  • Value to add as the utm_campaign query parameter on links.

  • Value to add as the utm_content query parameter on links.

  • Value to add as the utm_medium query parameter on links.

  • Value to add as the utm_source query parameter on links.

  • Value to add as the utm_term query parameter on links.

Responses

  • HTML was compiled successfully.

    • Compiled HTML.

    • AMP validation errors. Empty array means AMP validation passed; absent when AMP HTML was not generated.

    • Generated AMP HTML. Returned only when AMP markup is detected in source HTML.

    • Display conditions extracted from the source HTML.

      Properties: 5
    • Hidden email preheader extracted from the HTML.

    • Email subject extracted from the HTML title.

    • Synchronizable module IDs.

    application/json
  • Bad request, unsupported content type, missing body, missing html, or validation error.

    • Application error code, when available.

    • Error timestamp, when available.

    • Detailed error description, when available.

    • Structured internal error data, when available.

    • Human-readable error message.

    • Additional error parameters.

    • Trace identifier, when available.

    application/json
  • Missing, invalid, or expired plugin authentication token.

    • Error message returned by the API gateway auth filter.

    application/json
  • Rate limit reached.

    • Rate limit error code.

    application/json
  • Unexpected service error.

Request Example for post/api/v1/cleaner/v1/compress
curl https://plugins.stripo.email/api/v1/cleaner/v1/compress \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'ES-PLUGIN-AUTH: YOUR_SECRET_TOKEN' \
  --data '{
  "html": "<!DOCTYPE html><html><head><title>Subject</title></head><body><p>Hello</p></body></html>",
  "css": "p { color: red; }",
  "minimize": true,
  "utmSource": "newsletter",
  "utmMedium": "email",
  "utmCampaign": "spring_sale"
}'
{
  "html": "<!DOCTYPE html><html><head></head><body><p style=\"color:red\">Hello</p></body></html>",
  "subject": "Subject"
}

Models

​

Request body for compiling email template HTML. Only html is required by runtime validation.

  • Source email template HTML to compile.

  • Plugin request data, encoded as a JSON string, passed to synchronizable module replacement. In the editor UI this is derived from plugin apiRequestData only when synchronizable modules are enabled. Pass it only if the HTML contains synchronizable modules that must be resolved.

  • CSS to inline into the HTML. If absent or empty, HTML is returned without CSS inlining. Non-blank CSS is rejected only when both the raw CSS and the CSS after comment removal exceed 5,000,000 characters.

  • Custom query parameters to add to links along with standard UTM parameters.

    Properties: 2
  • Merge tag placeholders to preserve while processing links and UTM parameters.

  • When true, removes unnecessary whitespace and compresses the regular HTML output.

  • Value to add as the utm_campaign query parameter on links.

  • Value to add as the utm_content query parameter on links.

  • Value to add as the utm_medium query parameter on links.

  • Value to add as the utm_source query parameter on links.

  • Value to add as the utm_term query parameter on links.

​
  • Compiled HTML.

  • AMP validation errors. Empty array means AMP validation passed; absent when AMP HTML was not generated.

  • Generated AMP HTML. Returned only when AMP markup is detected in source HTML.

  • Display conditions extracted from the source HTML.

    Properties: 5
  • Hidden email preheader extracted from the HTML.

  • Email subject extracted from the HTML title.

  • Synchronizable module IDs.

​
  • Script inserted after the conditional content.

  • Script inserted before the conditional content.

  • Condition description.

  • Condition identifier.

  • Condition name.

​
  • Custom query parameter name.

  • Custom query parameter value.

​
  • Application error code, when available.

  • Error timestamp, when available.

  • Detailed error description, when available.

  • Structured internal error data, when available.

  • Human-readable error message.

  • Additional error parameters.

  • Trace identifier, when available.

​
  • Error message returned by the API gateway auth filter.

​
  • Rate limit error code.