This documentation is currently under development. Certain sections are not yet complete and will be added shortly.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Marketo Engage (Transactional Email API)

Send The Wallet Crew transactional emails via Marketo Engage using the script email provider.

Use this option when the organization uses Marketo Engage and wants transactional sends tracked in Marketo activity logs.

Before going further, make sure the script provider model used by The Wallet Crew is clear. Start with Adobe Marketing Cloud and the prerequisite EmailSender extensibility.

When to use this

This is often the simplest REST model, but it assumes the email template is managed and approved in Marketo.

Setup required in Marketo

Create the email asset to send and get it approved. Approval rules vary by Marketo setup.

Then decide how The Wallet Crew output is mapped:

  • Use Marketo tokens or variables to inject Subject and Body.

  • Or keep the subject and body in Marketo and only pass contextual data.

Implementation notes (token + send)

Marketo instances are region-specific. The script usually requests a Marketo access token, then calls the transactional send endpoint for the chosen email asset.

Store these values as secrets before testing:

  • marketo-baseUrl (example: https://123-ABC-456.mktorest.com)

  • marketo-clientId

  • marketo-clientSecret

  • marketo-emailId (the Marketo email asset identifier to send)

Marketo OAuth token endpoints can differ slightly by instance and configuration. When the Marketo token endpoint requires query parameters or a specific HTTP method, adapt the authentication settings accordingly.

Marketo requires the email asset to exist (and often to be approved) before it can be used for sends.

What to validate

Trigger a real transactional email, then validate these points:

  • The email asset exists and is approved.

  • Marketo accepts the send call.

  • Variables map to what the Marketo template expects.

FAQ

Does the email template have to be created in Marketo?

Yes. Marketo requires an existing email asset for transactional sends, and many setups require the asset to be approved. The script can still pass variables, but Marketo needs the container asset.

Can The Wallet Crew still render the HTML?

Yes. buildEmail() can be called and subject and body passed as variables. The Marketo email must be built to inject those variables into the right places.

What is the quickest way to troubleshoot?

First check that the asset is approved, then check the Marketo API response body for a specific error code. If the API call succeeds but the email renders badly, validate that the Marketo template expects the same variable names that are sent.

Can different Marketo instances be used per environment?

Yes. Configure different secrets and endpoints per tenant (staging vs production). Keep variable naming consistent across environments to avoid template drift.

Last updated