Connect the stock market to ChatGPT, Claude, Grok, Cursor, Codex, or Perplexity
Agent-first investment infrastructure for opportunity discovery, optimization, and execution.
Work in the agent you already trust.
Drop Providence into ChatGPT, Claude, Cursor, or any other agent and it can read the market, find the trade, and act. No new dashboard.
Live prices, history, and execution in the same conversation. Copy the prompt, authenticate, and start asking.
Agent-ready by design.
Run backtests, test strategies, and explore opportunities in minutes.
System2 endpoints
get/healthCheck API liveness
200
The API Worker process is up.
get/v1/healthCheck authenticated API health
Requires a WorkOS AuthKit access token with organization context and `account.read`.
200
Caller is authenticated and authorized for the resolved account.
401
Missing or invalid access token.
403
Authenticated but not permitted.
500
Unexpected server failure.
503
Authorization service unavailable.
Prices2 endpoints
get/v1/symbols/{ticker}/latest-priceGet the latest price for a symbol
Requires a WorkOS AuthKit access token and `stock_price.read` on the caller's account.
200
Latest persisted observation for the ticker.
401
Missing or invalid access token.
403
Authenticated but not permitted.
404
Symbol or price observation was not found.
500
Unexpected server failure.
503
Authorization service unavailable.
get/v1/symbols/{ticker}/barsList historical 5-minute OHLCV bars for a symbol
Requires a WorkOS AuthKit access token and `stock_price.read` on the caller's account. Returns stored 5-minute bars only (no aggregation). `from`/`to` is a UTC instant window (max 7 days). Page with `cursor` using the same filters. Empty pages return 200.
200
A page of stored 5-minute bars for the ticker.
400
Invalid query (validation_failed, invalid_range, window_too_large, or invalid_cursor).
401
Missing or invalid access token.
403
Authenticated but not permitted.
404
Symbol was not found or is inactive.
500
Unexpected server failure.
503
Authorization service unavailable.
Operations2 endpoints
post/v1/stock-backfillsTrigger a historical stock backfill
Internal platform operations endpoint for historical bar imports. Fans out into independent ticker×month queue jobs on the shared backfill pool (same concurrency limit as nightly bar sync). Not an account-scoped tenant API. Authenticate with AuthKit; access currently requires the caller's WorkOS user id in `PLATFORM_ADMIN_USER_IDS`. Reports via `@providence/escalation` (no account audit logs).
202
Backfill jobs accepted (one runId per ticker×month slice).
400
Invalid backfill request.
401
Missing or invalid access token.
403
Authenticated but not permitted.
500
Unexpected server failure.
post/v1/stock-backfills/{runId}/retryRetry an existing historical stock backfill run
Internal platform operations endpoint. Re-enqueues one ticker×month `stock.backfill.requested` job for an existing `runId` (resumes pending/failed chunks, resets auto-requeue attempt to 1). AuthKit + `PLATFORM_ADMIN_USER_IDS`. Uses `@providence/escalation` only (no account audit logs).
202
Backfill retry accepted.
400
Run is not retryable or metadata is invalid.
401
Missing or invalid access token.
403
Authenticated but not permitted.
404
Backfill run not found.
500
Unexpected server failure.
Auth5 endpoints
post/v1/auth/magicStart Magic Auth email code login
Public browserless AuthKit Magic Auth start. Always returns a uniform success body to avoid email enumeration.
200
Magic Auth code send accepted (uniform response).
400
Invalid request body.
500
Unexpected server failure.
post/v1/auth/magic/verifyVerify Magic Auth code and establish a session
Public Magic Auth verify. First-time users with zero WorkOS orgs must supply `accountName` to bootstrap a Providence account. Never returns org-less tokens.
200
Org-scoped AuthKit session tokens.
400
Invalid request or first-account name required.
401
Missing or invalid access token.
409
Caller must select a WorkOS organization.
500
Unexpected server failure.
post/v1/auth/organizationComplete organization selection for a session
Public. Completes a pending Magic Auth organization challenge or switches via refresh token.
200
Org-scoped AuthKit session tokens.
400
Invalid request body.
401
Missing or invalid access token.
500
Unexpected server failure.
post/v1/auth/tokenRefresh AuthKit session tokens
Public. Rotates refresh tokens for the current organization context.
200
Rotated org-scoped AuthKit session tokens.
400
Invalid request body.
401
Missing or invalid access token.
500
Unexpected server failure.
post/v1/auth/logoutRevoke an AuthKit session
Public. Verifies the AuthKit access token (JWKS), then revokes the WorkOS session identified by the `sid` claim.
200
Session revoked.
400
Access token missing a session id.
401
Missing or invalid access token.
500
Unexpected server failure.
Accounts2 endpoints
get/v1/accountsList accounts for the authenticated user
Returns the local membership projection for the AuthKit subject. Does not fan out to WorkOS.
200
Active account memberships for the caller.
401
Missing or invalid access token.
500
Unexpected server failure.
post/v1/accountsCreate an additional account and switch into it
Creates a new WorkOS organization + Providence account for the caller (max 5). Requires the current refresh token and returns switched org-scoped tokens for the new account. Preflight refresh may rotate the caller's token before provision; if create then fails, 401/500 responses include the rotated accessToken/refreshToken/expiresIn so clients can persist them.
201
Account created; session switched to the new organization.
400
Invalid request body.
401
Missing/invalid access token, or WorkOS rejected credentials. May include rotated session tokens when preflight refresh succeeded before failure.
403
Account limit reached or caller cannot create.
500
Unexpected server failure. May include rotated session tokens when preflight refresh succeeded before failure.
Request access.