API Reference

AlphaSmith exposes a REST API for programmatic access to analytics, portfolio data, and predictions. The API is available to subscribers on the API tier ($99/mo).

Base URL
https://api.alphasmith.ai
Authentication
Authorization: Bearer {token}
Rate limits
500/min (API), 200/min (Premium), 100/min (Pro)

All responses are JSON. Errors follow Laravel’s standard {message, errors?} shape. Respect 429 responses and the Retry-After header. See the API Terms of Use and sign up to get started.

Quick start

Create a key in Settings → API Keys (API tier only), then call the API with an Authorization header.

# 1. Verify your token
curl -H "Authorization: Bearer YOUR_API_KEY" \
     https://api.alphasmith.ai/api/auth/me

# 2. Fetch analytics for AAPL
curl -H "Authorization: Bearer YOUR_API_KEY" \
     https://api.alphasmith.ai/api/stocks/AAPL/analytics

# 3. Run the stock screener
curl -X POST https://api.alphasmith.ai/api/screener/stocks \
     -H "Authorization: Bearer YOUR_API_KEY" \
     -H "Content-Type: application/json" \
     -d '{"filters":{"ssi_state":["green"],"vq_pct":{"max":25}},"limit":25}'

Authentication

Register, log in, and manage session tokens. All protected endpoints expect Authorization: Bearer {token}.

MethodPathAuthDescription
POSTapi/auth/registerPublicRegister a new user account
POSTapi/auth/loginPublicAuthenticate and receive a bearer token
POSTapi/auth/logoutBearerRevoke the current token
POSTapi/auth/forgot-passwordPublicRequest a password-reset email
POSTapi/auth/reset-passwordPublicComplete password reset with token
POSTapi/auth/change-passwordBearerChange the current password
POSTapi/auth/2fa/enableBearerBegin 2FA enrollment (returns TOTP secret)
POSTapi/auth/2fa/verifyBearerConfirm 2FA enrollment with a TOTP code
POSTapi/auth/2fa/disableBearerDisable two-factor authentication

Profile & Account

Current-user info, session management, API keys, and CCPA/GDPR self-serve account deletion.

MethodPathAuthDescription
GETapi/auth/meBearerFetch the current authenticated user
PUTapi/auth/profileBearerUpdate profile (name, timezone, etc.)
GETapi/auth/sessionsBearerList active bearer-token sessions
DELETEapi/auth/sessions/{tokenId}BearerRevoke a specific session token
GETapi/settings/api-keysBearerList the user’s API keys
POSTapi/settings/api-keysBearerCreate a new API key (returned once in full)
DELETEapi/settings/api-keys/{id}BearerRevoke an API key
GETapi/account/deletionBearerGet deletion-request status
POSTapi/account/deletionBearerSubmit an account-deletion request
DELETEapi/account/deletionBearerCancel a pending deletion request

Portfolios

CRUD for portfolios, positions, CSV import, and portfolio-level risk/allocation views.

MethodPathAuthDescription
GETapi/portfoliosBearerList user portfolios
POSTapi/portfoliosBearerCreate a portfolio
GETapi/portfolios/{id}BearerShow a portfolio with positions
PUTapi/portfolios/{id}BearerUpdate portfolio metadata
DELETEapi/portfolios/{id}BearerDelete a portfolio
GETapi/portfolios/{id}/healthBearerAggregate risk & SSI health for the portfolio
GETapi/portfolios/{id}/allocationBearerAllocation breakdown by asset/sector
GETapi/portfolios/{id}/positionsBearerList positions in a portfolio
POSTapi/portfolios/{id}/positionsBearerAdd a position
PUTapi/portfolios/{id}/positions/{posId}BearerUpdate a position
DELETEapi/portfolios/{id}/positions/{posId}BearerRemove a position
POSTapi/portfolios/{id}/import/previewBearerParse an uploaded CSV and preview positions
POSTapi/portfolios/{id}/import/commitBearerCommit a previously previewed CSV import

Stocks

Per-symbol data: profile, analytics (VQ/SSI/rating), price history, fundamentals, institutional holdings, options, GEX, and AI predictions.

MethodPathAuthDescription
GETapi/stocks/{symbol}BearerFull stock profile
GETapi/stocks/{symbol}/analyticsBearerVQ, SSI, composite rating, momentum
GETapi/stocks/{symbol}/historyBearerOHLCV price history
GETapi/stocks/{symbol}/fundamentalsBearerFundamental financial data
GETapi/stocks/{symbol}/institutionalBearer13F institutional-holdings data
GETapi/stocks/{symbol}/predictionsBearer (Pro+)21-day AI price projection
POSTapi/stocks/{symbol}/explainBearer (Pro+)SHAP explainability for the prediction
GETapi/stocks/{symbol}/optionsBearer (Pro+)Options chain for the symbol
GETapi/stocks/{symbol}/cyclesBearer (Pro+)Cycle analysis (Fourier decomposition)
GETapi/stocks/{symbol}/quantumBearer (Pro+)Quantum composite score breakdown
GETapi/stocks/{symbol}/gexBearer (Premium+)Gamma exposure levels
GETapi/stocks/{symbol}/volatilityBearer (Premium+)IV surface + IV rank/percentile

Markets

Overall market health and major-index quotes.

MethodPathAuthDescription
GETapi/market/healthBearerOverall market SSI, sector breakdown, breadth
GETapi/market/indexesBearerQuotes for S&P 500, Nasdaq, Dow, Russell

Screener

Filter stocks and options by analytics, rating, cycles, and more. Saved screeners persist per user.

MethodPathAuthDescription
POSTapi/screener/stocksBearerRun the stock screener with custom filters

Example request body

{
  "filters": {
    "ssi_state": ["green"],
    "vq_pct": { "max": 25 },
    "rating": ["strong_bullish", "bullish"],
    "sector": ["Technology"],
    "market_cap": { "min": 2000000000 }
  },
  "sort": "rating_score",
  "limit": 50
}
POSTapi/screener/optionsBearer (Pro+)Run the options screener (covered calls, CSPs, spreads)

Example request body

{
  "strategy": "covered_call",
  "min_pop_pct": 70,
  "min_annualized_roi": 20,
  "max_days_to_expiry": 45,
  "symbols": ["AAPL", "MSFT", "NVDA"]
}
GETapi/screener/prebuiltBearerList pre-built strategy screeners
GETapi/screener/prebuilt/{strategy}BearerRun a pre-built screener (e.g. growth, value, billionaire_picks)
GETapi/screener/savedBearerList the user’s saved screeners
POSTapi/screener/savedBearerSave a screener configuration
DELETEapi/screener/saved/{id}BearerDelete a saved screener

AI

AI-curated watchlists, price predictions, explainability, and model-performance transparency.

MethodPathAuthDescription
GETapi/ai/watchlistBearer (Pro+)Daily AI-curated watchlist
GETapi/ai/predict/{symbol}Bearer (Pro+)21-day AI price projection
POSTapi/ai/explain/{symbol}Bearer (Pro+)SHAP feature importance for a prediction
GETapi/ai/performanceBearer (Pro+)Rolling model accuracy metrics
POSTapi/ai/nl-screenerBearer (Pro+)Translate a natural-language query into a screener config

Options

Unusual options-activity scanner. Per-symbol chain and GEX live under Stocks.

MethodPathAuthDescription
GETapi/options/unusualBearer (Pro+)Scan for unusual options activity across a liquid universe

Alerts

User-defined alerts (SSI change, VQ-stop, price target, AI signal) and reusable alert rule templates.

MethodPathAuthDescription
GETapi/alertsBearerList alerts
POSTapi/alertsBearerCreate an alert

Example request body

{
  "symbol": "AAPL",
  "alert_type": "ssi_change",
  "condition": { "to_state": "red" },
  "delivery_channels": ["email", "push"]
}
GETapi/alerts/{id}BearerShow a specific alert
PUTapi/alerts/{id}BearerUpdate an alert
DELETEapi/alerts/{id}BearerDelete an alert
GETapi/alerts/historyBearerHistory of triggered alerts
GETapi/alerts/rulesBearerList saved alert-rule templates
POSTapi/alerts/rulesBearerCreate an alert rule
PUTapi/alerts/rules/{rule}BearerUpdate an alert rule
PUTapi/alerts/rules/{rule}/defaultBearerMark a rule as the default for its alert type
DELETEapi/alerts/rules/{rule}BearerDelete an alert rule

Watchlists

User watchlists plus bulk analytics for all symbols on a list.

MethodPathAuthDescription
GETapi/watchlistsBearerList watchlists
POSTapi/watchlistsBearerCreate a watchlist
GETapi/watchlists/{id}BearerShow a watchlist
PUTapi/watchlists/{id}BearerUpdate a watchlist
DELETEapi/watchlists/{id}BearerDelete a watchlist
GETapi/watchlists/{id}/analyticsBearerAnalytics rollup for all symbols on a watchlist

Checklists

Reusable pre-trade and review checklists with per-item CRUD.

MethodPathAuthDescription
GETapi/checklistsBearerList checklists
POSTapi/checklistsBearerCreate a checklist
GETapi/checklists/{id}BearerShow a checklist with items
PUTapi/checklists/{id}BearerUpdate a checklist
DELETEapi/checklists/{id}BearerDelete a checklist
POSTapi/checklists/{id}/itemsBearerAdd an item to a checklist
PUTapi/checklists/{id}/items/{item}BearerUpdate a checklist item
DELETEapi/checklists/{id}/items/{item}BearerDelete a checklist item

Calendar

Upcoming market events (earnings, dividends, macro data).

MethodPathAuthDescription
GETapi/calendar/eventsBearerList upcoming calendar events
GETapi/calendar/events/{date}BearerEvents for a specific date (YYYY-MM-DD)

Smart Money

Institutional and billionaire 13F filers and their holdings.

MethodPathAuthDescription
GETapi/smart-money/filersBearerList 13F filers
GETapi/smart-money/filers/{cik}BearerShow a filer’s recent holdings by CIK

Backtest

Submit, poll, and retrieve results for strategy backtests.

MethodPathAuthDescription
GETapi/backtest/runsBearer (Premium+)List the user’s backtest runs
POSTapi/backtest/runBearer (Premium+)Submit a new backtest job

Example request body

{
  "name": "SSI-green breakout",
  "start_date": "2021-01-01",
  "end_date": "2025-12-31",
  "symbols": ["AAPL", "MSFT", "NVDA"],
  "strategy_config": {
    "entry": { "ssi_state": "green", "rating": ["bullish", "strong_bullish"] },
    "exit":  { "ssi_state": ["yellow", "red"] },
    "sizing": { "method": "vq_kelly", "max_risk_pct": 1.0 }
  }
}
GETapi/backtest/runs/{id}Bearer (Premium+)Retrieve a completed run with metrics
GETapi/backtest/runs/{id}/statusBearer (Premium+)Poll backtest job status
DELETEapi/backtest/runs/{id}Bearer (Premium+)Delete a backtest run

Briefings

Daily AI-generated market briefings. Read-only for any authenticated user.

MethodPathAuthDescription
GETapi/briefings/todayBearerToday’s market briefing
GETapi/briefings/archiveBearerPaginated briefing archive
GETapi/briefings/{date}BearerBriefing for a specific date (YYYY-MM-DD)

Activity

Combined activity feed (alerts, portfolio events) and aggregate counters.

MethodPathAuthDescription
GETapi/activityBearerCombined activity feed
GETapi/activity/statsBearerActivity counters and summary stats

Services

Publication cards (daily briefings surfaced for the dashboard services panel).

MethodPathAuthDescription
GETapi/services/publicationsBearerList publication cards

Risk

Position-sizing helpers (Kelly criterion, VQ-adjusted sizing).

MethodPathAuthDescription
POSTapi/risk/position-sizeBearerRecommend a position size based on account risk and VQ

Example request body

{
  "symbol": "AAPL",
  "account_value": 100000,
  "risk_per_trade_pct": 1.0,
  "entry_price": 185.20,
  "method": "vq_stop"
}

Billing

Plan listing is public. Subscribe, invoice, and Stripe portal access require authentication. Stripe webhook is excluded (internal).

MethodPathAuthDescription
GETapi/billing/plansPublicList subscription plans and prices
POSTapi/billing/subscribeBearerStart a Stripe Checkout session for a tier
POSTapi/billing/portalBearerGet a Stripe customer-portal URL
GETapi/billing/invoicesBearerList past invoices

Admin

Admin-only operational endpoints. Restricted to the configured admin allowlist (config/auth.admin_emails).

MethodPathAuthDescription
GETapi/admin/overviewAdminOperational overview (users, subs, compute)
GETapi/admin/users/recentAdminRecently registered users
POSTapi/admin/briefings/generateAdminDispatch GenerateBriefingJob (returns 202)
POSTapi/admin/alerts/evaluate-nowAdminForce an alert-evaluation pass
POSTapi/admin/test-broadcastAdminPublish a test WebSocket event (ops smoke test)

Status

Public health + status endpoint for uptime monitors and the status page.

MethodPathAuthDescription
GETapi/statusPublicOverall API + compute health snapshot

Informational analytics only — not investment advice. See the API Terms of Use and Risk Disclosure.