1. Customer Segments 客户分群
EventLightning CDP
  • Content tags 内容标签
    • List or get content tags / 查询内容标签
      GET
    • Create or reuse content tag / 创建或复用内容标签
      POST
    • Update content tag / 更新内容标签
      PUT
    • Delete content tag / 删除内容标签
      DELETE
    • List or get content tag groups / 查询内容标签组
      GET
    • Create or reuse content tag group / 创建或复用内容标签组
      POST
  • Authentication 认证
    • Get access token / 获取访问令牌
      POST
  • Customers 客户
    • Get customer / 查询客户
      GET
    • Create or update customer / 创建或更新客户
      POST
  • Tags 标签
    • List or get tag groups / 查询标签组
      GET
    • Create or reuse tag group / 创建或复用标签组
      POST
    • List or get static tags / 查询静态标签
      GET
    • Create or reuse static tag / 创建或复用静态标签
      POST
    • Update static tag / 更新静态标签
      PUT
    • Delete static tag / 删除静态标签
      DELETE
  • Customer Tags 客户标签
    • Add customer tags / 添加客户标签
      POST
    • Remove customer tags / 移除客户标签
      POST
    • Query customer tags / 查询客户标签
      POST
  • Events 客户事件
    • 查询客户事件
      GET
    • Create customer event / 创建客户事件
      POST
  • Related Entities 关联实体
    • 查询关联实体
    • Create or update related entity / 创建或更新关联实体
  • Customer Segments 客户分群
    • Add customer segments / 添加客户群组
      POST
    • Remove customer segments / 移除客户群组
      POST
    • List or get segment groups / 查询客户分群组
      GET
    • Create or reuse segment group / 创建或复用客户分群组
      POST
    • Query customer segments / 查询客户群组
      POST
  • 数据模型
    • OAuthToken
    • OAuthError
    • SuccessEnvelope
    • AudienceGroupDetail
    • TagDetail
    • TagMembershipDetail
    • SegmentMembershipDetail
    • CustomerEventResponse
    • CodeResponse
    • CustomerDetailResponse
    • Identification
    • CustomerSaveResponse
    • DynamicBody
    • TagWrite
    • CustomerSelectors
    • AudienceGroupDetailResponse
    • CustomerTagQuery
    • AudienceGroupListResponse
    • CustomerTagChange
    • TagDetailResponse
    • CustomerSegmentQuery
    • TagListResponse
    • CustomerSegmentChange
    • CustomerTagMembershipResponse
    • CustomerTagChangeResponse
    • CustomerSegmentMembershipResponse
    • CustomerSegmentChangeResponse
    • RelatedEntityResponse
    • ErrorEnvelope
  1. Customer Segments 客户分群

List or get segment groups / 查询客户分群组

GET
/api/v1/segment-groups

Purpose#

List customer-segment groups with cursor pagination or read one group.

Execution logic#

If group_id is omitted or equals all, the endpoint lists customer-segment groups in descending ID order, at most 50 per page. Pass the returned encoded last_id to read the next page; last_id=-1 means there is no next cursor.
For a specific group_id, the ID is decoded and the group must exist and be of the customer-segment group type. The response returns encoded ID, label, and encoded parent ID (0 when there is no parent).
A list cursor must be a valid encoded group ID. Other group types are never included.

Errors and authorization#

Invalid cursors/IDs, missing groups, or wrong group types return a client error. Bearer authentication and this endpoint's REST permission are required.

中文说明#

用途#

游标分页列出客户标签分组,或读取一个标签分组。

执行逻辑#

未提供 group_id 或其值为 all 时,按 ID 倒序列出客户标签分组,每页最多 50 条。下一页传入响应中的编码 last_id;last_id=-1 表示没有下一游标。
指定 group_id 时,接口解码该 ID,并要求记录存在且类型确实是客户标签分组;响应返回编码 ID、名称和编码父分组 ID(无父级时为 0)。
列表游标必须是有效的编码分组 ID;其他分组类型不会出现在结果中。

错误与权限#

游标/ID 无效、分组不存在或类型不符返回客户端错误。接口需要 Bearer 认证及对应 REST 权限。

请求参数

Query 参数

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/api/v1/segment-groups?group_id=undefined&last_id=undefined'

返回响应

🟢200成功
application/json
Group page or detail / 标签组列表或详情
Bodyapplication/json

示例
{
    "code": 200,
    "data": {
        "last_id": "string",
        "items": [
            {
                "group_id": "string",
                "label": "string",
                "parent_group_id": "string",
                "created": 0,
                "changed": 0
            }
        ]
    }
}
🟠400请求有误
🟠401没有权限
🟠403禁止访问
🔴500服务器错误
修改于 2026-09-21 10:18:09
上一页
Remove customer segments / 移除客户群组
下一页
Create or reuse segment group / 创建或复用客户分群组
Built with