Retrieve Segment Groups

get

/rest/api/v1.3/lists/segmentGroups/records

Retrieves all Segment Groups for an Account

Request

Query Parameters
Back to Top

Response

Supported Media Types

Default Response

A list of all Segment Groups with their metadata.
Body ()
Root Schema : Segment Group Array
Type: object
Title: Segment Group Array
Show Source
Nested Schema : segmentGroups
Type: array
Show Source
Nested Schema : Segment Group
Type: object
Title: Segment Group
Show Source
Back to Top

Examples

Use this endpoint to retrieve all Segment Groups for an account.

FIELDS DESCRIPTION
Authorization <AUTH_TOKEN>

Sample Request URL:

  /rest/api/v1.3/lists/segmentGroups/records?offset=5&limit=2
	

Sample Response: Success

{
  "segmentGroups": [
    {
      "name": "SegmentGroup1",
      "description": null,
      "profileExtensionName": null,
      "listName": "ProfileList1",
      "folderName": "Folder1",
      "createdBy": "api.user",
      "createdDate": 1604390400000,
      "modifiedBy": "api.user",
      "modifiedDate": 1604390400000
    },
    {
      "name": "SegmentGroup2",
      "description": null,
      "profileExtensionName": null,
      "listName": "ProfileList2",
      "folderName": "Folder2",
      "createdBy": "api.user",
      "createdDate": 1558249200000,
      "modifiedBy": "api.user",
      "modifiedDate": 1558249200000
    }
  ],
  "links": [
    {
      "rel": "self",
      "href": "/rest/api/v1.3/lists/segmentGroups/records?offset=5&limit=2",
      "method": "GET"
    },
    {
      "rel": "next",
      "href": "/rest/api/v1.3/lists/segmentGroups/records?limit=2&offset=8",
      "method": "GET"
    },
    {
      "rel": "prev",
      "href": "/rest/api/v1.3/lists/segmentGroups/records?limit=2&offset=2",
      "method": "GET"
    }
  ]
}
	

Example Response:Failure

{
   "type": "",
   "title": "Segment not found",
   "errorCode": "SEGMENT_NOT_FOUND",
   "detail": "No segment group found in this account",
   "errorDetails": []
}
	
Back to Top