Alpaca Accounts API

The Accounts API from Alpaca — 14 operation(s) for accounts.

GitHub OpenAPI
Business capability
Customer Onboarding Management BC-1300.10

Operations 16

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/accounts List my brokerage accounts · Get All Accounts #
Ask an LLM
“Which brokerage accounts do I hold?”
“Can I list only my closed accounts?”
Tell an agent
List all my brokerage accounts.
List accounts with status {status}.
POST /v1/accounts Open a new brokerage account · Create an Account #
Ask an LLM
“How do I open a new account for a new customer?”
“Can I open an IRA account with beneficiaries?”
Tell an agent
Create a {account_type} account for {identity}.
Open an IRA account {account_type} with beneficiaries {beneficiaries}.
GET /v1/accounts/{account_id} Get a brokerage account · Get An Account by ID #
Ask an LLM
“What are the details of one of my accounts?”
“Can I fetch a single account by ID?”
Tell an agent
Get account {account_id}.
Show me the details of account {account_id}.
PATCH /v1/accounts/{account_id} Update a brokerage account · Update an Account #
Ask an LLM
“Can I change the contact details on an existing account?”
“How do I update the enabled assets on an account?”
Tell an agent
Update the contact on account {account_id} to {contact}.
Set enabled assets on account {account_id} to {enabled_assets}.
DELETE /v1/accounts/{account_id} Request to close an account · Request to close an account #
Ask an LLM
“How do I close an account I no longer need?”
“Can I close an account through the API?”
Tell an agent destructive · confirm first
Request to close account {account_id}.
Close the inactive account {account_id}.
POST /v1/accounts/{account_id}/actions/close Close an account by posting the close action · Close an Account #
Ask an LLM
“What's the POST endpoint for closing an account?”
“Do I need to close positions before closing an account?”
Tell an agent destructive · confirm first
Close account {account_id} by posting the close action.
Submit the account close request for {account_id}.
GET /v1/accounts/{account_id}/recipient_banks List bank relationships on an account · Retrieve Bank Relationships for an Account #
Ask an LLM
“Which bank accounts are linked to my brokerage account?”
“Can I filter recipient banks by status?”
Tell an agent
List recipient banks on account {account_id}.
Show {status} recipient banks for account {account_id}.
POST /v1/accounts/{account_id}/recipient_banks Add a bank to an account · Create a Bank Relationship for an Account #
Ask an LLM
“How do I add a bank account so I can withdraw money?”
“Can I add an international bank with a BIC routing number?”
Tell an agent
Add bank {name} with routing {bank_code} to account {account_id}.
Link {name} ({bank_code_type}) {bank_code} as a recipient bank on {account_id}.
POST /v1/accounts/{account_id}/transfers Request a withdrawal from an account · Request a New Transfer #
Ask an LLM
“How do I withdraw money from a brokerage account?”
“Can I request a wire transfer out of an account?”
Tell an agent
Transfer {amount} from account {account_id} {direction}.
Request a {direction} wire of {amount} from {account_id} to bank {bank_id}.
GET /v1/accounts/activities List account activities · Retrieve Account Activities #
Ask an LLM
“What has happened on my accounts recently?”
“Can I list only the trades or fees on an account?”
Tell an agent
List activities on account {account_id}.
Show {activity_types} activities on account {account_id}.
GET /v1/accounts/activities/{activity_type} List account activities of one type · Retrieve Account Activities of Specific Type #
Ask an LLM
“What trades and activity happened on my account on a given day?”
“Can I see only the trades or only the funding activity by type?”
Tell an agent
List {activity_type} activities for account {account}.
Show {activity_type} activity created between {after} and {until}.
GET /v1/trading/accounts/{account_id}/account Get trading details for an account · Retrieve Trading Details for an Account #
Ask an LLM
“What trading details are available for a user's account?”
“Can I see the trading account model for an account?”
Tell an agent
Get the trading details for account {account_id}.
Show the trading account model for {account_id}.
GET /v2beta1/accounts/{account_id}/events/activities/{event_id} Get one account activity event · Get a single activity (V2) event by event_id ULID #
Ask an LLM
“Can I fetch a single activity event by its ULID?”
“What does one account activity event contain?”
Tell an agent
Get activity event {event_id} on account {account_id}.
Show the single activity event {event_id} for account {account_id}.
POST /v1/accounts/{account_id}/options/approval Request options trading for an account · Request options trading for an account (BETA) #
Ask an LLM
“How do I enable options trading on an account?”
“Can I request a specific options trading level?”
Tell an agent
Request options trading level {level} for account {account_id}.
Enable options trading on account {account_id}.
GET /v1/accounts/options/approvals List options trading approval requests · Retrieve options level approval requests (BETA) #
Ask an LLM
“Which options trading requests are still pending?”
“Can I filter options approval requests by level?”
Tell an agent
List options approval requests with status {status}.
Show pending options requests for account {account_id}.
GET /v2/account Get my account details · Get Account #
Ask an LLM
“What are my own account details?”
“Can I fetch my account information with the v2 endpoint?”
Tell an agent
Get my account details.
Show my account information using the v2 account endpoint.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/alpaca:alpaca-accounts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

alpaca-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Alpaca Accounts API
  contact:
    email: support@alpaca.markets
    name: Alpaca Support
    url: https://alpaca.markets/support
  version: '1.0'
  description: 'Operations tagged Accounts across 4 of this provider''s published API definitions: alpaca-eu-broker-api-openapi.json, alpaca-us-broker-api-openapi.json, alpaca-us-trading-api-openapi.json, alpaca-accounts-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- description: Sandbox endpoint
  url: https://broker-api.sandbox.eu.alpaca.markets
- description: Production endpoint
  url: https://broker-api.eu.alpaca.markets
- description: Sandbox endpoint
  url: https://broker-api.sandbox.alpaca.markets
- description: Production endpoint
  url: https://broker-api.alpaca.markets
- description: Paper
  url: https://paper-api.alpaca.markets
- description: Live
  url: https://api.alpaca.markets
tags:


# --- truncated at 32 KB (254 KB total) ---
# Full source: https://artifacts.apis.io/alpaca/openapi/alpaca-accounts-api-openapi.yml