GET
/
customers
/
segments
curl --request GET \
  --url https://services.commercengine.dev/api/v1/x2yh61zw4k/admin/customers/segments \
  --header 'Authorization: Bearer <token>'
{
  "message": "<string>",
  "success": true,
  "content": {
    "segments": [
      {
        "id": "<string>",
        "name": "<string>",
        "segment_type": "data-driven",
        "data_driven_condition": {},
        "description": "<string>",
        "tags": [
          "<string>"
        ],
        "audience_count": 123,
        "usage_count": 123,
        "created_at": "2023-11-07T05:31:56Z",
        "modified_at": "2023-11-07T05:31:56Z"
      }
    ],
    "pagination": {
      "total_records": 123,
      "total_pages": 123,
      "previous_page": "<any>",
      "limit": 123,
      "next_page": "<any>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json
OK
message
string
success
boolean
content
object