Email Object

Use email resources to send emails to prospects, and to learn how prospects responded to the emails. Learn more about email in Salesforce Help.

The API to access the Email object follows the conventions described in Version 5 Overview.

OperationHTTP VerbURL FormatAbility Requirements
CreatePOSThttps://pi.pardot.com/api/v5/objects/emails?<params>Marketing > Emails > Emails > Send One-to-one ability
ReadGEThttps://pi.pardot.com/api/v5/objects/emails/<id>?<params>Marketing > Emails > Emails > View ability
QueryGEThttps://pi.pardot.com/api/v5/objects/emails?<params>Marketing > Emails > Emails > View ability
Add TagPOSThttps://pi.pardot.com/api/v5/objects/emails/<id>/do/addTagMarketing > Emails > Emails > Create AND Marketing > Segmentation > Tags > Create ability
Remove TagPOSThttps://pi.pardot.com/api/v5/objects/emails/<id>/do/removeTagMarketing > Emails > Emails > Create AND Marketing > Segmentation > Tags > Create ability
Copy to CMSPOSThttps://pi.pardot.com/api/v5/objects/emails/<id>/do/copyToCmsMarketing > Emails > Sent > Copy to CMS
FieldTypeDescription
nameStringThe name of the object for identification in Account Engagement.
campaignIdIntegerThe ID of the campaign related to this object.
prospectIdIntegerThe ID of the prospect you're sending the email to.
FieldTypeDescription
subjectStringThe email subject.
textMessageStringThe text content of the email's message. This field isn’t queryable.
htmlMessageStringThe HTML content of the email's message. This field isn’t queryable.
senderOptionsSender Options[]An array of the sender options.
replyToOptionsReply To Options[]An array of the reply to address options.
scheduledTimeDateTimeThe ISO 8601 date and time to send the email. Write-Only field on create operation.
isOperationalBooleanWhen true, the email is sent to the prospect regardless of opt-out status. Your account must have Operational Email Sending enabled to use this setting.
emailTemplateIdIntegerThe ID of the email template used for the email.
trackerDomainIdIntegerThe ID of the tracker domain used for the email.
folderIdIntegerThe ID of the folder containing this object.
FieldTypeDescription
idIntegerThe ID of the email.
clientTypeStringThe type of client that was used to send the email. The value is Builder if the email was sent using the Lightning Email Builder, or Web if it was sent using the legacy Pardot email builder.
createdByIdIntegerThe ID of the user who created this object.
listIdIntegerThis property is deprecated and its value is always null. To view the lists that are associated with an email, retrieve the List Email object for the email. This object contains a reciepientLists property and a suppressionLists property.
listEmailIdIntegerThe ID of the list email associated with this email.
sentAtDateTimeThe date and time when the email was sent.
createdByUserUser object representing the user who created this object. See documentation for User for fields.
campaignCampaignCampaign object representing the campaign associated with this object. See documentation for Campaign for fields.
listListList object representing the list associated with this email. See documentation for List for fields.
listEmailList EmailList Email object representing the list email associated with this email. See documentation for List Email for fields.
salesforceCmsIdStringThe ID of the copied email when using copyToCms. If the email isn't successfully copied, the value is null.
typeEnumThe content type of the email. Possible values are html (Read and Query only), text, and htmlAndText.
Field NameData TypeDescription
senderOptions.typeStringThe sending user type. Possible values: general_user, specific_user, assigned_user, or account_owner. When performing read or query, account_custom_field and prospect_custom_field are also available.
senderOptions.addressStringThe sending email address.
senderOptions.nameStringThe name of the sender.
senderOptions.userIdIntegerThe user ID of the sender.
senderOptions.prospectCustomFieldIdIntegerThe ID of the prospect custom field that contains the sender value.
senderOptions.accountCustomFieldIdIntegerThe ID of the account custom field that contains the sender value.
Field NameData TypeDescription
replyToOptions.typeEnum<string>The reply to user type. For Create operations, the only possible value is general_address.
replyToOptions.addressStringThe reply-to email address.
replyToOptions.userIdIntegerThe user ID of the reply to sender. This field isn’t editable.
replyToOptions.prospectCustomFieldIdIntegerThe ID of the prospect custom field that contains the reply to value. This field isn’t editable.
replyToOptions.accountCustomFieldIdIntegerThe ID of the account custom field that contains the reply to value. This field isn’t editable.

Send an email to a single prospect following the conventions described in the Version 5 Overview. You can specify the prospect by Account Engagement ID.

For List Email Send, refer to List Email Create.

Example Request

A successful request returns an HTTP 201 response. The response lists the fields that were specified in the request.

Retrieve a single email following the conventions described in the Version 5 Overview. To understand how data is passed, review Data Types.

Example Request

Example Response

Retrieve a collection of emails by using the conventions described in Version 5 Overview. To understand how data is passed, review Data Types.

  • id
  • sentAt
  • prospectId

When you execute a query, these parameters can be used to filter the returned results. These parameters can be specified in the request along with any shared parameters defined in Version 5 Overview. When you specify more than one parameter, the results only include records that match all of the parameters.

ParameterDescription
idReturns any email where the ID is equal to the given integer value.
idListReturns any email where the ID is included in the given list of values.
idGreaterThanReturns any email where the ID is greater than the specified value, non-inclusive.
idGreaterThanOrEqualToReturns any email where the ID is greater than or equal to the specified value.
idLessThanReturns any email where the ID is less than the specified value, non-inclusive.
idLessThanOrEqualToReturns any email where the ID is less than or equal to the specified value.
prospectIdReturns any email where the Prospect ID is equal to the given integer value.
prospectIdGreaterThanReturns any email where the Prospect ID is greater than the specified value, non-inclusive.
prospectIdGreaterThanOrEqualToReturns any email where the Prospect ID is greater than or equal to the specified value.
prospectIdLessThanReturns any email where the Prospect ID is less than the specified value, non-inclusive.
prospectIdLessThanOrEqualToReturns any email where the Prospect ID is less than or equal to the specified value.
listEmailIdReturns any email where the List Email ID is equal to the given integer value.
listEmailIdGreaterThanReturns any email where the List Email ID is greater than the specified value, non-inclusive.
listEmailIdGreaterThanOrEqualToReturns any email where the List Email ID is greater than or equal to the specified value.
listEmailIdLessThanReturns any email where the List Email ID is less than the specified value, non-inclusive.
listEmailIdLessThanOrEqualToReturns any email where the List Email ID is less than or equal to the specified value.
sentAtReturns any email where SentAt is equal to the given datetime value.
sentAtAfterReturns any email where SentAt is after the given datetime value, non-inclusive.
sentAtAfterOrEqualToReturns any email where SentAt is after or equal to the given datetime value.
sentAtBeforeReturns any email where SentAt is before the given datetime value, non-inclusive.
sentAtBeforeOrEqualToReturns any email where SentAt is before or equal to the given datetime value.

Example Response

Adds a Tag to the Email object, which creates a TaggedObject.

Example Request

Example Response

Remove a tag from an Email object. When you remove a tag, the associated TaggedObject record is deleted.

Example Request

Example Response

Returns code 204 no content.

Copy a sent email to your Salesforce CMS Marketing workspace.

Example Request

Example Response