REST API for Email Template Field Attributes

Anonymous
Not applicable

REST API for Email Template Field Attributes

Hello,

I am working on a connector that integrates a CMS solution to Marketo.  One of my objectives is to be able to manage Email templates in the CMS and then use the REST API to push to Marketo.  I basically have it working but one thing I am missing.  I would like to get access to the Lead and Company Attributes that are available to the end user when editing the Email Template in Marketo.  Let me know if there is an api available to get access to these attributes.

Sajid

2 REPLIES 2
Kenny_Elkington
Marketo Employee

Re: REST API for Email Template Field Attributes

You're looking for Describe Lead​.  You can interpolate the display name of the response with {{lead.<display name>}} for the tokens you wish to insert.

Anonymous
Not applicable

Re: REST API for Email Template Field Attributes

Sorry for the late response.  I reviewed the Lead Describe, /rest/v1/leads/describe.json, rest call but the number of items returned are more than the email field attributes.  Also, the email field attributes are broken into Lead and Company.  So, I am not if this is going to work.

Examples:

{{lead.Postal Code:default=edit me}}

{{company.Billing City:default=edit me}}