Alpaca OAuth API
The Alpaca OAuth API allows third-party applications to authenticate Alpaca users and obtain access tokens for the Trading and Market Data APIs.
Alpaca OAuth API is one of 23 APIs that Alpaca publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
Tagged areas include OAuth, Authentication, and Authorization. The published artifact set on APIs.io includes API documentation and an OpenAPI specification.
This API exposes 3 operations across 3 paths, and defines 4 schemas. It is described by OpenAPI 3.0.0, at version 1.0.0.
Requests are made against 2 base URLs: https://broker-api.sandbox.alpaca.markets, https://broker-api.alpaca.markets.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 1
Alpaca OAuth API declares
1 security scheme
for authenticating requests.
It accepts HTTP basic authentication (BasicAuth).
By default, every request must be authenticated.
Paths & Operations 3
Across 3 paths, the API surfaces 3 operations — 1 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.
Schemas 4
The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are OathClientResponse (9 properties), OAuthTokenRequest (5 properties), AuthorizeOAuthTokenResponse (4 properties), IssueOAuthTokenResponse (3 properties). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from Alpaca 12
Other APIs Alpaca publishes across the network.