Skip to content

Get groups ​

List profile groups with their IDs, names, and related information.

Definition: GET · Checked on 2026-10-21.

Request ​

http
GET /api/getGroupList

Use the base URL and api-key shown on the client API screen. All examples use 9000 only as a placeholder port; see Overview for authentication.

No business parameters or request body are needed.

cURL example ​

bash
curl --request GET 'http://127.0.0.1:9000/api/getGroupList' \
  --header 'api-key: YOUR_API_KEY'

Response example ​

json
{
  "success": true,
  "data": [
    {
      "id": 1,
      "name": "默认分组",
      "timestamp": 1734616419822
    },
    {
      "id": 2,
      "name": "22",
      "timestamp": 1717059005071,
      "count": 1
    }
  ]
}

Current client response fields ​

FieldTypeUsage
successbooleanRequest processing succeeded; not a guarantee that every item was written
dataobject[]Group array; items contain id and name, and may contain timestamp or count
data[].idintegerNumeric group ID; derived groups may have temporary IDs, see below
data[].namestringGroup name; profile group uses names rather than IDs
data[].timestampnumberMay be present; client update time in Unix milliseconds
data[].countnumberMay be present; do not assume it exists for every item

Usage notes ​

  • Additional fields such as count may be absent on some groups. Handle missing fields.

For failed requests, check both HTTP status and the error body. See Errors & troubleshooting.

Temporary groups and profile membership

The group list combines stored groups with names derived from existing profile group values. Derived IDs may be temporary and are not necessarily persisted; they may change and update/delete by such an ID may return 404. Updating or deleting a group changes group configuration only, not profiles’ group values; a name still referenced by a profile may reappear. To move profiles, query and update their configurations explicitly.