Get Marketing Cloud Next Segment Details
Retrieve details of an individual segment using the Data 360 Segment endpoint in Connect API.
Prerequisite
Before you send a request to Connect API, obtain a bearer token. For more information, see Connect to REST-based APIs.
Send the Request
To retrieve information about a segment, send a GET request to the /services/data/{apiVersion}/ssot/segments/SEGMENT_API_NAME endpoint. Replace SEGMENT_API_NAME with the API name of the segment that you want to retrieve details for. For additional information and code examples, see getSegmentDetails.
1GET /services/data/{apiVersion}/ssot/segments/SEGMENT_API_NAME HTTP/1.1
2Host: YOUR_SUBDOMAIN.my.salesforce.com
3Content-Type: application/json
4Authorization: Bearer YOUR_BEARER_TOKENIf the request is successful, the response body contains detailed information about the specified segment.
1{
2 "segments": [
3 {
4 "apiName": "Running_Shoe_Promo_Audience",
5 "dataSpace": "default",
6 "displayName": "Running Shoe Promo Audience",
7 "marketSegmentDefinitionId": "3HX1Q000000HxyZWAS",
8 "marketSegmentId": "1sg1Q000000HxyZQAS",
9 "publishInterval": "NO_REFRESH",
10 "publishStatus": "SUCCESS",
11 "segmentMembershipDmo": {
12 "historyTable": "Individual_Unified_SMH_1234567890122__dlm",
13 "latestTable": "Individual_Unified_SM_1234567890123__dlm"
14 },
15 "segmentMembershipTable": "Individual_Unified_SMH_1234567890123__dlm",
16 "segmentOnApiName": "UnifiedIndividual__dlm",
17 "segmentOnId": "0gj1Q000000PQ3xYZG",
18 "segmentStatus": "ACTIVE",
19 "segmentType": "UI"
20 }
21 ]
22}