OAuth
Authorize an OAuth Token
The operation issues an OAuth code which can be used in the OAuth code flow.
post/v1/oauth/authorize
Request
- Base URLhttps://broker-api.giftcity.sandbox.in.alpaca.markets
- URLhttps://broker-api.giftcity.sandbox.in.alpaca.markets/v1/oauth/authorize
- AuthHTTP basic
Request body
Example request
{
"account_id": "0d18ae51-3c94-4511-b209-101e1666416b",
"client_id": "7a3c52a910e1dc2abbb14da2b6b8e711",
"client_secret": "bbb14da2b6b8e7117a3c52a910e1dc2a",
"redirect_uri": "http://localhost",
"scope": "general"
}Response
Successfully issued a code.
Example response
{
"client_id": "7a3c52a910e1dc2abbb14da2b6b8e711",
"code": "912b5502-c983-40f7-a01d-6a66f13a754d",
"redirect_uri": "http://localhost",
"scope": ""
}Changes
No recorded changes to this operation across all 1 revision of this API.