---
title: "Get users by ids"
method: POST
path: "/aggregations"
---

# Get users by ids

`POST /aggregations`

## Request

- Base URL: `https://api.open-finance.ai/v2`
- URL: `https://api.open-finance.ai/v2/aggregations`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.open-finance.ai/oauth/token` scopes: `read:aggregation`

## Request body

- object
  - `userIds` object[]
    - `id` string: The id of the desired user
    - `segmentType` number: The user's segment to check

## Response `200`

Response

- GetAggregationForUserResponse
  - `parameters` object[]
    - `name` string
    - `value` union
      - string
      - number

## Other responses

- `400`: No id or segmentType were found
- `401`: Unauthorized access - Invalid access token
- `403`: Forbidden - Access token missing the required permissions to preform this action
- `404`: Not found - The route or resource were not found
- `500`: Internal server error

---

[API](https://skmtc.dev/open-finance/apis/data.md) - [All operations](https://skmtc.dev/open-finance/apis/data/llms.txt) - [OpenAPI document](https://skmtc.dev/open-finance/apis/data/revisions/c18eafb2a770?raw)
