30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

MailerPress Get Campaign Send HTML

mailerpress/get-campaign-send-html returns the exact HTML this campaign would send right now.

That is the compiled artifact, which is not what mailerpress/get-campaign returns.

At a glance

Abilitymailerpress/get-campaign-send-html
ToolsetMailerPress — toolset/mailerpress
GroupMailerPress › Campaigns & Sending
RequiresAcrossAI Pro, plus MailerPress active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Pro 0.9.16 and later

How it works

A campaign holds its content twice: a block-editor JSON tree, which is what the editor shows, and a compiled HTML artifact, which is what recipients receive. They are stored separately and can disagree.

The block tree is authored; the HTML is compiled from it. Nothing forces a compile, so a campaign edited programmatically — or edited and not saved through the editor — can have a current block tree and a stale artifact.

Recipients get the artifact. So a campaign that looks correct in the editor can send last week’s content, and there is no warning.

Use this to verify a campaign is actually current before trusting it, especially after any programmatic edit.

mailerpress/check-campaign-send-readiness does the same check as a verdict rather than as raw HTML, and can audit every campaign at once.

A campaign with no compiled HTML at all sends nothing, which is a different failure from sending the wrong thing and equally silent.

Input

NameTypeRequiredWhat it is
idintegerYesThe campaign ID.

What comes back

NameTypeWhat it is
htmlstringThe compiled HTML, exactly as it would be sent.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

What would this campaign actually send?

It resolves to one call:

{
  "ability": "mailerpress/get-campaign-send-html",
  "parameters": {
    "id": 44
  }
}

Worth knowing

  • Recipients get this, not the block tree.
  • Nothing forces a recompile, so the artifact can be stale.
  • No artifact at all means the campaign sends nothing.
  • Read-only.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading