---
title: "Group roster accounts by linked owner without exposing owner IDs"
method: POST
path: "/v2/roster/account-groups/query"
tags: ["Roster Builder"]
---

# Group roster accounts by linked owner without exposing owner IDs

`POST /v2/roster/account-groups/query`

## Request

- Base URL: `https://api.clashk.ing`
- URL: `https://api.clashk.ing/v2/roster/account-groups/query`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Request body

- object
  - `serverId` string, required: Discord snowflake as an unsigned decimal string
  - `rosterIds` string[], required
  - `fields` string[]

## Response `200`

Success

- object
  - `groups` object[], required
    - `group` union, required
      - number
      - 'NaN'
      - 'Infinity'
      - '-Infinity'
    - `accounts` object[], required
      - `rosterId` string, required
      - `playerTag` string, required
      - `playerName` string, required
  - `note` string, required

## Other responses

- `400`: Expected error
- `401`: Expected error
- `403`: Expected error
- `404`: Expected error
- `409`: Expected error
- `413`: Expected error
- `429`: Expected error
- `503`: Expected error

## Changes

- **2026-09-09** `9ec0debedfc6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/clashk/apis/clashking-api/changes/v2/roster/account-groups/query/post.md)

---

[API](https://skmtc.dev/clashk/apis/clashking-api.md) - [All operations](https://skmtc.dev/clashk/apis/clashking-api/llms.txt) - [OpenAPI document](https://skmtc.dev/clashk/apis/clashking-api/revisions/8411b4ef8009?raw)
