---
title: "Get user's affiliates to a given depth"
method: GET
path: "/userAffiliates"
tags: ["UserAffiliates"]
---

# Get user's affiliates to a given depth

`GET /userAffiliates`

## Query parameters

- `depth` number, double
- `targetAccountId` number, double
- `selectUserId` number, double

## Response `200`

Request was successful

- XAny[]

## Other responses

- `400` — Parameter Error
- `401` — Unauthorized
- `403` — Access Denied
- `404` — Not Found

## Changes

- **2024-05-28** `a83d1355e0e3` — 2 info
  - added the new optional `query` request parameter `selectUserId`
  - added the new optional `query` request parameter `targetAccountId`
- **2023-11-29** `9aad85925d8d` — 1 info
  - endpoint added
- **2018-05-30** `0c1c991454e3` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/bitmex/apis/bitmex-api/changes/userAffiliates/get.md)

---

[API](https://skmtc.dev/bitmex/apis/bitmex-api.md) · [All operations](https://skmtc.dev/bitmex/apis/bitmex-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bitmex/bitmex-api/revisions/04c6a16ffd27/schema)
