Dynamic Content Object

Dynamic content personalizes parts of your website based on what you know about a viewer. Learn more about dynamic content in Salesforce Help.

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

OperationHTTP VerbURL FormatAbility Requirements
ReadGEThttps://pi.pardot.com/api/v5/objects/dynamic-contents/<id>?<params>Content > Dynamic Content > View ability
QueryGEThttps://pi.pardot.com/api/v5/objects/dynamic-contents?<params>Content > Dynamic Content > View ability

Required Read-Only Fields

FieldTypeDescription
idIntegerPardot ID for this dynamic content.

Read-Only Fields

FieldTypeDescription
nameStringDynamic content's name.
embedCodeStringThe code used to embed the dynamic content into a web page.
embedUrlStringThe URL to embed this dynamic content.
baseContentStringThe default content that shows when the prospect doesn't meet the criteria for a variation.
basedOnEnumThe kind field that dynamic content is based on. Values are "default", "custom", "grade", and "score".
createdAtDateTimeTime the dynamic content was created; reported in API user's timezone.
updatedAtDateTimeTime the dynamic content was last updated; reporting in API user's timezone.
isDeletedBooleanWhen true, the object is in the recycle bin in Pardot.
createdByIdIntegerID of the user who created this object.
updatedByIdIntegerID of the user who last updated this object.
folderIdIntegerID of the folder containing this object.
trackerDomainIdIntegerThe ID of the tracker domain associated with this object.
createdByUserUser object representing the user who created this object. See documentation for User for fields.
updatedByUserUser object representing the user who last updated this object. See documentation for User for fields.
campaignCampaignCampaign object representing the campaign that was set on Create. See documentation for Campaign for fields.
folderFolderJSON object representing the folder for this object. See documentation for Folder for fields.
trackerDomainTracker DomainTracker Domain object representing the tracker domain associated with the email template. See documentation for Tracker Domain for fields.

Retrieve a single dynamic content following the conventions described in the Version 5 Overview.

Example request:

Example response:

Retrieve a collection of dynamic content following the conventions described in the Version 5 Overview.

Sortable Fields

  • id
  • createdAt
  • updatedAt

Filtering Results

When executing a query, the following 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 specifying more than one parameter, all parameters must match the record in order for it to be returned in the results.

ParameterDescription
idReturns any dynamic content where ID is equal to the given integer value.
idGreaterThanReturns any dynamic content where ID is greater than the specified value, non-inclusive.
idGreaterThanOrEqualToReturns any dynamic content where ID is greater than or equal to the specified value.
idLessThanReturns any dynamic content where ID is less than the specified value, non-inclusive.
idLessThanOrEqualToReturns any dynamic content where ID is less than or equal to the specified value.
createdAtReturns any dynamic content where CreatedAt is equal to the given datetime value.
createdAtAfterReturns any dynamic content where CreatedAt is after the given datetime value, non-inclusive.
createdAtAfterOrEqualToReturns any dynamic content where CreatedAt is after or equal to the given datetime value.
createdAtBeforeReturns any dynamic content where CreatedAt is before the given datetime value, non-inclusive.
createdAtBeforeOrEqualToReturns any dynamic content where CreatedAt is before or equal to the given datetime value.
updatedAtReturns any dynamic content where UpdatedAt is equal to the given datetime value.
updatedAtAfterReturns any dynamic content where UpdatedAt is after the given datetime value, non-inclusive.
updatedAtAfterOrEqualToReturns any dynamic content where UpdatedAt is after or equal to the given datetime value.
updatedAtBeforeReturns any dynamic content where UpdatedAt is before the given datetime value, non-inclusive.
updatedAtBeforeOrEqualToReturns any dynamic content where UpdatedAt is before or equal to the given datetime value.
deletedDetermines whether to return deleted records. The value can be false (default), true, or all.

Example Request

Example Response