v1.0.0
OpenAPI 3.0.3
Client Libraries
Methods
Methods Operations
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.
- Type: stringhtmlmax length:9000000required
Source email template HTML to compile.
- Type: stringapi
Request Data Plugin request data, encoded as a JSON string, passed to synchronizable module replacement. In the editor UI this is derived from plugin
apiRequestDataonly when synchronizable modules are enabled. Pass it only if the HTML contains synchronizable modules that must be resolved. - Type: stringcss
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.
- Type:custom
Utms Properties: 2Custom query parameters to add to links along with standard UTM parameters.
- Type: array of stringmerge
Tags Merge tag placeholders to preserve while processing links and UTM parameters.
- Type: boolean | nullminimize
When true, removes unnecessary whitespace and compresses the regular HTML output.
- Type: stringutm
Campaign Value to add as the
utm_campaignquery parameter on links. - Type: stringutm
Content Value to add as the
utm_contentquery parameter on links. - Type: stringutm
Medium Value to add as the
utm_mediumquery parameter on links. - Type: stringutm
Source Value to add as the
utm_sourcequery parameter on links. - Type: stringutm
Term Value to add as the
utm_termquery parameter on links.
Responses
- Type:200
HTML was compiled successfully.
- Type: stringhtmlrequired
Compiled HTML.
- Type: array of stringamp
Errors AMP validation errors. Empty array means AMP validation passed; absent when AMP HTML was not generated.
- Type: stringamp
Html Generated AMP HTML. Returned only when AMP markup is detected in source HTML.
- Type:conditionsProperties: 5
Display conditions extracted from the source HTML.
- Type: stringpreheader
Hidden email preheader extracted from the HTML.
- Type: stringsubject
Email subject extracted from the HTML title.
- Type: array of integerFormat: int64sync
Modules Synchronizable module IDs.
application/json - Type:400
Bad request, unsupported content type, missing body, missing
html, or validation error.- Type: stringcode
Application error code, when available.
- Type: stringFormat: date-timedate
Error timestamp, when available.
- Type: stringdetailed
Error Detailed error description, when available.
- error
Structured internal error data, when available.
- Type: stringmessage
Human-readable error message.
- params
Additional error parameters.
- Type: stringtrace
Id Trace identifier, when available.
- additionalPropertyType: anythingproperty
Name
application/json - Type:401
Missing, invalid, or expired plugin authentication token.
- Type: stringmessage
Error message returned by the API gateway auth filter.
application/json - Type:429
Rate limit reached.
- Type: stringerror
Rate limit error code.
application/json - 500
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.
- Type: stringhtmlmax length:9000000required
Source email template HTML to compile.
- Type: stringapi
Request Data Plugin request data, encoded as a JSON string, passed to synchronizable module replacement. In the editor UI this is derived from plugin
apiRequestDataonly when synchronizable modules are enabled. Pass it only if the HTML contains synchronizable modules that must be resolved. - Type: stringcss
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.
- Type:custom
Utms Properties: 2Custom query parameters to add to links along with standard UTM parameters.
- Type: array of stringmerge
Tags Merge tag placeholders to preserve while processing links and UTM parameters.
- Type: boolean | nullminimize
When true, removes unnecessary whitespace and compresses the regular HTML output.
- Type: stringutm
Campaign Value to add as the
utm_campaignquery parameter on links. - Type: stringutm
Content Value to add as the
utm_contentquery parameter on links. - Type: stringutm
Medium Value to add as the
utm_mediumquery parameter on links. - Type: stringutm
Source Value to add as the
utm_sourcequery parameter on links. - Type: stringutm
Term Value to add as the
utm_termquery parameter on links.
- Type: stringhtmlrequired
Compiled HTML.
- Type: array of stringamp
Errors AMP validation errors. Empty array means AMP validation passed; absent when AMP HTML was not generated.
- Type: stringamp
Html Generated AMP HTML. Returned only when AMP markup is detected in source HTML.
- Type:conditionsProperties: 5
Display conditions extracted from the source HTML.
- Type: stringpreheader
Hidden email preheader extracted from the HTML.
- Type: stringsubject
Email subject extracted from the HTML title.
- Type: array of integerFormat: int64sync
Modules Synchronizable module IDs.
- Type: stringafter
Script Script inserted after the conditional content.
- Type: stringbefore
Script Script inserted before the conditional content.
- Type: stringdescription
Condition description.
- Type: stringid
Condition identifier.
- Type: stringname
Condition name.
- Type: stringname
Custom query parameter name.
- Type: stringvalue
Custom query parameter value.
- Type: stringcode
Application error code, when available.
- Type: stringFormat: date-timedate
Error timestamp, when available.
- Type: stringdetailed
Error Detailed error description, when available.
- error
Structured internal error data, when available.
- Type: stringmessage
Human-readable error message.
- params
Additional error parameters.
- Type: stringtrace
Id Trace identifier, when available.
- additionalPropertyType: anythingproperty
Name
- Type: stringmessage
Error message returned by the API gateway auth filter.
- Type: stringerror
Rate limit error code.