Retrieve an email

get

/api/REST/1.0/assets/email/{id}

Retrieves the email specified by the id parameter.

Request

Supported Media Types
Path Parameters
Query Parameters
  • Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth: minimal, partial, and complete. Any other values passed are reset to complete by default. For more information, see Request depth.
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : Email
Type: object
Title: Email
Show Source
Nested Schema : contentSections
Type: array
A list of associated Content Section assets.
Show Source
Nested Schema : dynamicContents
Type: array
A list of associated dynamic content.
Show Source
Nested Schema : fieldMerges
Type: array
A list of associated Field Merges.
Show Source
Nested Schema : files
Type: array
A list of imported files.
Show Source
Nested Schema : forms
Type: array
A list of associated Form assets.
Show Source
Nested Schema : HtmlContent
Type: object
Title: HtmlContent
Show Source
Nested Schema : images
Type: array
A list of associated Image assets.
Show Source
Nested Schema : landingPages
Type: array
A list of associated landing page assets.
Show Source
Nested Schema : ContentSection
Type: object
Title: ContentSection
Show Source
Nested Schema : forms
Type: array
A list of associated Form assets.
Show Source
Nested Schema : images
Type: array
A list of associated Image assets.
Show Source
Nested Schema : Size
Type: object
Title: Size
Show Source
Nested Schema : Form
Type: object
Title: Form
Show Source
Nested Schema : elements
Type: array
Array consisting of form elements.
Show Source
Nested Schema : processingSteps
Type: array
A list of the form's processing steps. There is no limit to the number of processing steps that can be included. Possible values include: FormStepAddToCampaign, FormStepAddToContactList, FormStepAddToDataCanvas, FormStepAddToProgram, FormStepAssociateToCampaign, FormStepCancelRegistration, FormStepUpdateContactEmailAddress, FormStepCreateUpdateEventRegistration, FormStepCreateUpdate, FormStepCreateUpdateFromFormField, FormStepGlobalSubscribe, FormStepGlobalUnsubscribe, FormStepGroupSubscription, FormStepPostData, FormStepRedirectToWebPage, FormStepRemoveFromContactList, FormStepRunIntegrationRules, FormStepSendEmail, FormStepSendNotificationEmail, FormStepWebTracking, FormStepGlobalSubscribe, and FormStepSmsPhoneNumberOptInOptOut.
Show Source
Nested Schema : FormElement
Type: object
Title: FormElement
Show Source
Nested Schema : FormProcessingStep
Type: object
Title: FormProcessingStep
Show Source
Nested Schema : Hyperlink
Type: object
Title: Hyperlink
Show Source
Nested Schema : ImageFile
Type: object
Title: ImageFile
Show Source
Nested Schema : DynamicContent
Type: object
Title: DynamicContent
Show Source
Nested Schema : rules
Type: array
The dynamic content's rules.
Show Source
Nested Schema : DynamicContentRule
Type: object
Title: DynamicContentRule
Show Source
Nested Schema : criteria
Type: array
The criteria of the dynamic content rule.
Show Source
Nested Schema : Criterion
Type: object
Title: Criterion
Show Source
Nested Schema : FieldMerge
Type: object
Title: FieldMerge
Show Source
Nested Schema : ImportedFile
Type: object
Title: ImportedFile
Show Source
Nested Schema : LandingPage
Type: object
Title: LandingPage
Show Source
Nested Schema : contentSections
Type: array
A list of content sections contained within the landing page.
Show Source
Nested Schema : dynamicContents
Type: array
A list of dynamic contents contained within the landing page.
Show Source
Nested Schema : files
Type: array
A list of files contained within the landing page.
Show Source
Nested Schema : forms
Type: array
A list of forms contained within the landing page.
Show Source
Nested Schema : images
Type: array
A list of images contained within the landing page.
Show Source

400 Response

Bad request. See Status Codes for information about other possible HTTP status codes.

401 Response

Unauthorized. See Status Codes for information about other possible HTTP status codes.

403 Response

Forbidden. See Status Codes for information about other possible HTTP status codes.

404 Response

The requested resource was not found. See Status Codes for information about other possible HTTP status codes.

500 Response

The service has encountered an error. See Status Codes for information about other possible HTTP status codes.
Back to Top

Examples

Retrieve the email asset with Id #63:


GET /api/REST/1.0/assets/email/63?depth=complete
			

Response:


{
  "type": "Email",
  "currentStatus": "Draft",
  "id": "63",
  "createdAt": "1430928728",
  "createdBy": "19",
  "depth": "complete",
  "folderId": "42",
  "name": "Example Email",
  "permissions": "fullControl",
  "updatedAt": "1430928728",
  "archive": "false",
  "updatedBy": "19",
  "bounceBackEmail": "username@example.com",
  "contentSections": [
    
  ],
  "dynamicContents": [
    
  ],
  "emailFooterId": "1",
  "emailGroupId": "2",
  "emailHeaderId": "3",
  "encodingId": "4",
  "fieldMerges": [
    
  ],
  "forms": [
    
  ],
  "htmlContent": {
    "type": "RawHtmlContent",
    "contentSource": "upload",
    "html": "<html><head></head><body></body></html>"
  },
  "hyperlinks": [
    {
      "type": "Hyperlink",
      "id": "-1",
      "name": "Oracle.",
      "href": "???http://www.oracle,com????elqTrackId=67cbf74017a847fea5e9a0100be5d7b5"
    }
  ],
  "images": [
    {
      "type": "ImageFile",
      "currentStatus": "unmatched",
      "id": "-1",
      "name": "cat1.jpg",
      "fullImageUrl": "http://animalia-life.com/data_images/cat/cat1.jpg"
    },
    {
      "type": "ImageFile",
      "currentStatus": "unknown",
      "id": "5",
      "name": "cat.jpg",
      "fullImageUrl": "cat.jpg",
      "thumbnailUrl": "/EloquaImages/clients/APITEST/imagethumbnails/{ec242e45-c200-4ec3-89cf-c2812f254ac0}_cat.jpg"
    }
  ],
  "isContentProtected": "false",
  "isPlainTextEditable": "false",
  "isPrivate": "False",
  "isTracked": "true",
  "landingPages": [
    
  ],
  "layout": "{}",
  "plainText": "sample content",
  "renderMode": "Fixed",
  "replyToEmail": "newclient@example.com",
  "replyToName": "Eloqua, Inc.",
  "sendPlainTextOnly": "false",
  "senderEmail": "newclient@example.com",
  "senderName": "yourCompanyName",
  "style": "{}",
  "subject": "Email subject line"
}
			
Back to Top