Api Portfolio Post Import Fetch
Phase 1: validate + estimate credit cost for a post-import AI fetch.
Accepts a freshly-imported ticker list + action type ('news' or 'research') and returns the gate decision: how many credits the Phase 2 fetch will cost (low + high bounds), or a 402/422 with branch-specific context if the request can't proceed.
Plus-tier gated (require_min_tier("plus")). plus_trial users are accepted by the tier check but rejected at the AI-action gate per OWNER Q3 ratification (research-deck + news AI summaries are upgrade-only; non-AI actions remain trial-accessible — none implemented in Phase 1).
Request body: {action: "news"|"research", tickers: [str, ...], idempotency_key: str}
Response: PostImportFetchEstimateResponse. Always 200 on the OK branch; 402 on tier/balance/cap rejection; 422 on overflow; 400 on malformed input.
Does NOT call the AI provider, NOT decrement credits, NOT stream. Phase 2 wires those in.
Request
- Base URL: https://www.oxfordledge.com (the document declares no server; this is the origin it was published from)
- URL: https://www.oxfordledge.com/api/portfolio/post-import-fetch
- Auth: none declared
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.