Generated by API Evangelist
Written by API Evangelist tooling for Alpaca's API. It is a proposal applied on top of the contract, not a document Alpaca publishes.
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for Broker OAuth API
version: 1.0.0
extends: openapi/alpaca-oauth-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-24'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 3
- target: $.paths['/v1/oauth/authorize'].post
update:
x-apievangelist-phrasing:
intent: Start an OAuth authorization flow
effect: write
questions:
- How do I get an OAuth code for a brokerage account?
- Can I request specific scopes when authorizing an OAuth token?
instructions:
- text: Start OAuth authorization for account {account_id} with client {client_id}, secret {client_secret}, redirect {redirect_uri} and scopes {scope}.
slots:
account_id: requestBody.account_id
client_id: requestBody.client_id
client_secret: requestBody.client_secret
redirect_uri: requestBody.redirect_uri
scope: requestBody.scope
- text: Authorize a new OAuth flow for account {account_id}.
slots:
account_id: requestBody.account_id
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/oauth/clients/{client_id}'].get
update:
x-apievangelist-phrasing:
intent: Get an OAuth client's details
effect: read
questions:
- What redirect URI and scopes does an OAuth client expect?
- Can I fetch an OAuth client's details before the user authorizes it?
instructions:
- text: Get OAuth client {client_id}.
slots:
client_id: path.client_id
- text: Show the redirect URI and scopes for OAuth client {client_id}.
slots:
client_id: path.client_id
method: generated
generated: '2026-11-24'
- target: $.paths['/v1/oauth/token'].post
update:
x-apievangelist-phrasing:
intent: Exchange an OAuth code for a token
effect: write
questions:
- How do I turn an OAuth code into an access token?
- Can I issue an OAuth token for a brokerage account?
instructions:
- text: Issue an OAuth token for account {account_id} with client {client_id}, secret {client_secret}, redirect {redirect_uri} and scopes {scope}.
slots:
account_id: requestBody.account_id
client_id: requestBody.client_id
client_secret: requestBody.client_secret
redirect_uri: requestBody.redirect_uri
scope: requestBody.scope
- text: Exchange the OAuth code for an access token for account {account_id}.
slots:
account_id: requestBody.account_id
method: generated
generated: '2026-11-24'
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.