---
title: "Get an OAuth client"
method: GET
path: "/v1/oauth/clients/{client_id}"
tags: ["OAuth"]
---

# Get an OAuth client

`GET /v1/oauth/clients/{client_id}`

## Request

- Base URL: `https://broker-api.giftcity.sandbox.in.alpaca.markets`
- URL: `https://broker-api.giftcity.sandbox.in.alpaca.markets/v1/oauth/clients/{client_id}`
- Auth: HTTP basic

The endpoint returns the details of OAuth client to display in the authorization page.

## Query parameters

- `response_type` 'code' | 'token'
- `redirect_uri` string
- `scope` string

## Response `200`

Success.

- OathClientResponse
  - `client_id` string: OAuth client id
  - `description` string
  - `live_trading_approved` boolean
  - `name` string: Broker name (your name)
  - `privacy_policy` string: URL of Privacy Policy
  - `redirect_uri` string[]
  - `status` 'ACTIVE' | 'DISABLED': ACTIVE or DISABLED
  - `terms_of_use` string: URL of Terms of Use
  - `url` string

## Other responses

- `401`: Client does not exist or you do not have access to the client.

---

[API](https://skmtc.dev/alpacahq/apis/broker-api.md) - [All operations](https://skmtc.dev/alpacahq/apis/broker-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alpacahq/apis/broker-api/revisions/381b1ecb3ccc?raw)
