---
title: "GET /v2/user"
method: GET
path: "/v2/user"
tags: ["Accounts (v2)"]
deprecated: true
---

# GET /v2/user

`GET /v2/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/v2/user`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/oanda/apis/up-gateway-v1/docs/v2/user/get.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

## Response `200`

Success response

- object
  - `id` string, required
  - `email` string
  - `name` string
  - `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
    - `isGSLOAllowed` boolean

---

[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)
