Get list of Segmentation Sets

GET/services/{serviceUuid}/cds/segmentation_sets

Get list of Segmentation Sets

Base URL
https://api-cpaas.sms.es/news/v1
Authentication

OAuth2 — send Authorization: Bearer <access_token>. Token URL: https://accounts-cpaas.sms.es/oauth2/access-token

Request

Path parameters

serviceUuidstringrequired

service (BM Account) UUID

Request example

cURL · cURL
curl -L -X GET "https://api-cpaas.sms.es/news/v1/services/{serviceUuid}/cds/segmentation_sets" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"

Responses

List of Segmentation Set

application/json
dataobject[]required
Show child attributes
uuidstring
namestringrequired
json_datastringrequired

Segmentation set groups. On the wire this is a JSON-serialized string, whose decoded form is an array of SegmentationQueryGroup objects (each an operator plus an array of SegmentationRule). See x-content-schema for the full definition.

Example: [{"rules":[{"field":"gender","operator":"AND","value":"male","condition":"eq"}],"operator":"AND"}]
metaobjectrequired
Show child attributes
paginationobjectrequired
Show child attributes
totalintegerrequired
countintegerrequired
perPageintegerrequired
currentPageintegerrequired
totalPagesintegerrequired
linksobjectrequired
Show child attributes
firststring
laststring
prevstring
nextstring
Example response
{
  "data": [
    {
      "uuid": "string",
      "name": "string",
      "json_data": "[{\"rules\":[{\"field\":\"gender\",\"operator\":\"AND\",\"value\":\"male\",\"condition\":\"eq\"}],\"operator\":\"AND\"}]"
    }
  ],
  "meta": {
    "pagination": {
      "total": 0,
      "count": 0,
      "perPage": 0,
      "currentPage": 0,
      "totalPages": 0,
      "links": {
        "first": "string",
        "last": "string",
        "prev": "string",
        "next": "string"
      }
    }
  }
}