---
title: "Get Restriction IDs For An Account"
method: GET
path: "/gw/api/v1/restrictions/account"
tags: ["preTradeComplianceRestrictions"]
---

# Get Restriction IDs For An Account

`GET /gw/api/v1/restrictions/account`

Returns all restriction IDs for the given account. The account must be the caller's master account or a direct sub-account. Returns 403 for both unauthorized and non-existent accounts to prevent ID enumeration.<br><br>**Scope**: `restrictions.read`<br>**Security Policy**: `HTTPS`

## Query parameters

- `masterUserName` string, required
- `accountId` string, required
- `isEmpTrack` string

## Headers

- `Authorization` string, required

## Response `200`

Restriction IDs for the account.

- AccountRestrictionsResponse — Response body for GET /external/restridsforacct
  - `status` string, required — Always `ok` on success.
  - `accountId` string, required — Echoed from the request.
  - `restrictionIds` integer[], required — Restriction IDs for the account. Empty array when none.

## Other responses

- `400` — Missing, empty, non-numeric, or out-of-range parameter. The `error` field is always prefixed with `Bad Request:`.
- `401` — Missing, invalid, or unparseable Authorization token.
- `403` — Resource does not belong to the caller, does not exist, or an unsupported HTTP method was used. All cases return an identical body to prevent ID enumeration.
- `500` — Internal server error.

---

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