---
title: "GET /v4/user"
method: GET
path: "/v4/user"
tags: ["Accounts (v4)"]
---

# GET /v4/user

`GET /v4/user`

## Request

- Base URL: `https://trading-api.oanda.com` (the document declares no server; this is the origin it was published from)
- URL: `https://trading-api.oanda.com/v4/user`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/oanda/apis/up-gateway-v1/docs/v4/user/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

Success response

- object
  - `data` object, required
    - `oneId` string, required
    - `email` string
    - `name` string
    - `divisions` number[], required
    - `accounts` object[], required
      - `id` string, required
      - `server` 'oanda' | 'oanda-demo' | 'otms' | 'v20' | 'v20-demo' | 'oj' | 'oj-demo' | 'opt' | 'ftmo-1', required
      - `fund` 'DEMO' | 'LIVE', required
      - `currency` string, required
      - `displayName` string, required
      - `marginRate` number, float
      - `tags` string[], required
      - `experience` 'MARGIN' | 'SPOT', required
      - `disabled` boolean, required
      - `isGSLOAllowed` boolean
      - `closeOnly` boolean
      - `groupHash` string, required
      - `conversionGroupHash` string
      - `uplPriceTypeHash` string, nullable: Hashed values - SIDED_VWAP, VWAP_MIDPOINT, SIDED_TOP_OF_BOOK
      - `division` number, required: OC: 1, CANADA: 2, OAP: 3, OEL: 4, TEST: 5, ECP: 6, OAP_CFD: 7, OCI: 8, OJ_NON_CORPORATE: 9, OJ_CORPORATE: 10, OAU: 11, OEM: 12, OGM: 13, OT: 14 OPUC: 17

---

[API](https://skmtc.dev/oanda/apis/up-gateway-v1.md) - [All operations](https://skmtc.dev/oanda/apis/up-gateway-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/oanda/apis/up-gateway-v1/revisions/395d645513bf?raw)
