Retrieve a list of emails

get

/api/REST/1.0/assets/emails

Retrieves all emails that match the criteria specified by the request parameters.

Request

Supported Media Types
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : QueryResultEmail
Type: object
Title: QueryResultEmail
Show Source
Nested Schema : elements
Type: array
Array of email fields.
Show Source
Nested 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, and FormStepWebTracking.
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 first 2 emails in your database:


GET /api/REST/1.0/assets/emails?count=2
			

Response:


{
    "elements": [
        {
            "type": "Email",
            "currentStatus": "Draft",
            "id": "1",
            "createdAt": "1422561827",
            "createdBy": "19",
            "depth": "minimal",
            "folderId": "42",
            "name": "Test Email 1",
            "permissions": "fullControl",
            "updatedAt": "1422906890",
            "updatedBy": "19",
            "htmlContent": {
                "type": "StructuredHtmlContent"
            }
        },
        {
            "type": "Email",
            "currentStatus": "Draft",
            "id": "2",
            "createdAt": "1430928728",
            "createdBy": "19",
            "depth": "minimal",
            "folderId": "42",
            "name": "Test Email 2",
            "permissions": "fullControl",
            "updatedAt": "1430928728",
            "updatedBy": "19",
            "htmlContent": {
                "type": "RawHtmlContent"
            }
        }
    ],
    "page": 1,
    "pageSize": 2,
    "total": 8
}
			
Back to Top