---
title: "Get user rank across target groups"
method: GET
path: "/api_gateway/intouch-api-v3/v3.1/leaderboards/user/{userID}"
---

# Get user rank across target groups

`GET /api_gateway/intouch-api-v3/v3.1/leaderboards/user/{userID}`

## Query parameters

- `userID` integer, required

## Headers

- `DATA-SCOPE-ORG` string
- `DATA-SCOPE` string

## Request body

- object
  - `orgId` integer — Unique identifier for the organisation.
  - `targetGroupId` integer, required — Unique identifier for target group
  - `targetRuleId` integer, required — Unique identifier for target rule. Maximum of 25 rule IDs supported.
  - `periodId` integer — Identifier of period for which result will be fetched

## Response `200`

200

- object
  - `data` object
    - `lastSyncTime` string
    - `customerId` integer
    - `userEnrichmentDetails` object
      - `mobile` string
      - `last_name` string
      - `first_name` string
      - `email` string
    - `userRanks` object[]
      - `orgId` integer
      - `targetGroupId` integer
      - `targetRuleId` integer
      - `periodId` integer
      - `achievedValue` integer
      - `rank` integer
      - `lastActivityTime` string
      - `totalUsersInTargetGroup` integer
  - `errors` unknown[]
    - unknown
  - `warnings` unknown[]
    - unknown

## Other responses

- `400` — 400

---

[API](https://skmtc.net/capillarytech/apis/sample-api.md) · [All operations](https://skmtc.net/capillarytech/apis/sample-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/capillarytech/sample-api/revisions/de241f2ed9b3/schema)
