Retrieve a list of email groups
get
/api/REST/1.0/assets/email/groups
Retrieves all email group that match the criteria specified by the request parameters.
Request
Supported Media Types
- application/json
Query Parameters
-
count(optional): integer
Maximum number of entities to return. Must be less than or equal to 1000 and greater than or equal to 1.
-
depth(optional): string
Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth:
minimal
,partial
, andcomplete
. Any other values passed are reset tominimal
by default. -
lastUpdatedAt(optional): integer
The date and time the email group was last updated.
-
orderBy(optional): string
Specifies the field by which list results are ordered.
-
page(optional): integer
Specifies which page of entities to return (the count parameter defines the number of entities per page). If the page parameter is not supplied, 1 will be used by default.
-
search(optional): string
Specifies the search criteria used to retrieve entities. See the tutorial for information about using this parameter.
Response
Supported Media Types
- application/json
200 Response
OK.
Root Schema : QueryResultGroup
Type:
object
Title:
Show Source
QueryResultGroup
-
elements(optional):
array elements
Array of fields.
-
page(optional):
integer
The specified page.
-
pageSize(optional):
integer
The page size.
-
total(optional):
integer
The total amount of results.
-
type(optional):
string
The asset's type in Eloqua.
Nested Schema : elements
Type:
array
Array of fields.
Show Source
-
Array of:
object EmailGroup
Title:
EmailGroup
Nested Schema : EmailGroup
Type:
object
Title:
Show Source
EmailGroup
-
accessedAt(optional):
string
Read Only:
true
The date and time the email group was last accessed, expressed in Unix time. -
createdAt(optional):
string
Read Only:
true
The date and time the email group was created, expressed in Unix time. -
createdBy(optional):
string
Read Only:
true
The login id of the user who created the email group. -
currentStatus(optional):
string
The email group's current status.
-
depth(optional):
string
Read Only:
true
Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth:minimal
,partial
, andcomplete
. Any other values passed are reset tocomplete
by default. For more information, see Request depth. -
description(optional):
string
The description of the email group.
-
displayName(optional):
string
The display name of the email group.
- emailFooterId(optional): string
-
emailHeaderId(optional):
string
Id of the email header.
-
emailIds(optional):
array emailIds
Array containing the unique identifiers of the emails in the email group.
-
id(optional):
string
Read Only:
true
Id of the email group. This is a read-only property. -
isVisibleInOutlookPlugin(optional):
string
Whether or not the email group is visible in the Outlook plugin.
-
isVisibleInPublicSubscriptionList(optional):
string
Whether or not the email group is visible in the public subscriptions list.
-
name(optional):
string
The name of the email group.
-
permissions(optional):
string
The permissions for the email group granted to your current instance. This is a read-only property.
-
subscriptionLandingPageId(optional):
string
Id of the subscription landing page.
-
subscriptionListDataLookupId(optional):
string
Id of the subscription list's data lookup.
-
subscriptionListId(optional):
string
Id of the subscription list. This is a read-only property.
-
type(optional):
string
The asset's type in Eloqua. This is a read-only property.
-
unsubscriptionLandingPageId(optional):
string
Id of the unsubscribe landing page.
-
unSubscriptionListDataLookupId(optional):
string
Id of the unsubscribe list's data lookup.
-
unSubscriptionListId(optional):
string
Id of the unsubscribe list. This is a read-only property.
-
updatedAt(optional):
string
Read Only:
true
Unix timestamp for the date and time the email group was last updated. -
updatedBy(optional):
string
Read Only:
true
The login id of the user that last updated the email group.
Nested Schema : emailIds
Type:
array
Array containing the unique identifiers of the emails in the email group.
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.
Examples
Retrieve minimal details of the first 2 email groups in your database:
GET /api/REST/1.0/assets/email/groups?count=2&depth=minimal
Response:
{
"elements":[
{
"type":"EmailGroup",
"id":"6",
"depth":"minimal",
"description":"",
"name":"Test Email Group",
"permissions":"fullControl",
"updatedAt":"1306513777"
},
{
"type":"EmailGroup",
"id":"18",
"createdAt":"1432240338",
"createdBy":"19",
"depth":"minimal",
"description":"",
"name":"Test Email Group 2",
"permissions":"fullControl",
"updatedAt":"1432240338",
"updatedBy":"19"
}
],
"page":1,
"pageSize":2,
"total":14
}