{ "openapi": "3.0.3", "info": { "title": "AlphaLens Briefs API", "version": "1.0.0", "description": "Read/write HTTP access to thematic briefs produced by the AlphaLens daily pipeline." }, "paths": { "/v1/candidates/{date}/{ticker}": { "get": { "operationId": "v1_candidates_retrieve", "description": "``/v1/candidates/{date}/{ticker}`` — single candidate fetch.\n\nThe detail PK is supplied as a compound URL segment, not a single field.\nThe router pattern in ``urls.py`` is custom for this reason.", "parameters": [ { "in": "path", "name": "date", "schema": { "type": "string" }, "required": true }, { "in": "path", "name": "ticker", "schema": { "type": "string" }, "required": true } ], "tags": [ "v1" ], "security": [ { "CloudflareAccessJWT": [] }, { "cookieAuth": [] }, {} ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CandidateDetail" } } }, "description": "" } } } }, "/v1/days": { "get": { "operationId": "v1_days_list", "description": "``/v1/days`` — index + per-day envelope + per-day candidates.", "parameters": [ { "in": "query", "name": "from", "schema": { "type": "string", "format": "date" }, "description": "Inclusive ISO date lower bound." }, { "name": "limit", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "offset", "required": false, "in": "query", "description": "The initial index from which to return the results.", "schema": { "type": "integer" } }, { "in": "query", "name": "to", "schema": { "type": "string", "format": "date" }, "description": "Inclusive ISO date upper bound." } ], "tags": [ "v1" ], "security": [ { "CloudflareAccessJWT": [] }, { "cookieAuth": [] }, {} ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedDayMetaList" } } }, "description": "" } } } }, "/v1/days/{date}": { "get": { "operationId": "v1_days_retrieve", "description": "``/v1/days`` — index + per-day envelope + per-day candidates.", "parameters": [ { "in": "path", "name": "date", "schema": { "type": "string", "format": "date" }, "description": "ISO 8601 date (YYYY-MM-DD).", "required": true } ], "tags": [ "v1" ], "security": [ { "CloudflareAccessJWT": [] }, { "cookieAuth": [] }, {} ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DayBrief" } } }, "description": "" } } } }, "/v1/days/{date}/candidates": { "get": { "operationId": "v1_days_candidates_list", "description": "``/v1/days`` — index + per-day envelope + per-day candidates.", "parameters": [ { "in": "path", "name": "date", "schema": { "type": "string", "format": "date" }, "description": "ISO 8601 date (YYYY-MM-DD).", "required": true }, { "name": "limit", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "in": "query", "name": "min_score", "schema": { "type": "integer" }, "description": "Layer-4 score floor." }, { "name": "offset", "required": false, "in": "query", "description": "The initial index from which to return the results.", "schema": { "type": "integer" } }, { "in": "query", "name": "theme", "schema": { "type": "string" }, "description": "Exact theme match." } ], "tags": [ "v1" ], "security": [ { "CloudflareAccessJWT": [] }, { "cookieAuth": [] }, {} ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedCandidateList" } } }, "description": "" } } } }, "/v1/edge/chart/{brief_date}/{ticker}": { "get": { "operationId": "v1_edge_chart_retrieve", "description": "``/v1/edge/chart//`` — the pre-computed chart payload.", "parameters": [ { "in": "path", "name": "brief_date", "schema": { "type": "string", "format": "date" }, "description": "Brief date (ISO YYYY-MM-DD).", "required": true }, { "in": "path", "name": "ticker", "schema": { "type": "string" }, "description": "Candidate ticker (case-insensitive).", "required": true } ], "tags": [ "v1" ], "security": [ { "CloudflareAccessJWT": [] }, { "cookieAuth": [] }, {} ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChartResponse" } } }, "description": "" } } } }, "/v1/edge/excess-telemetry": { "get": { "operationId": "v1_edge_excess_telemetry_retrieve", "description": "``/v1/edge/excess-telemetry`` — per-trade SPY-excess scatter + gated trend.", "parameters": [ { "in": "query", "name": "window", "schema": { "type": "integer" }, "description": "Calendar days back from the latest brief date (default: all)." } ], "tags": [ "v1" ], "security": [ { "CloudflareAccessJWT": [] }, { "cookieAuth": [] }, {} ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EdgeExcessTelemetry" } } }, "description": "" } } } }, "/v1/edge/outcomes": { "get": { "operationId": "v1_edge_outcomes_retrieve", "description": "``/v1/edge/outcomes`` — per-candidate rows (theme joined from the brief).", "parameters": [ { "in": "query", "name": "classification", "schema": { "type": "string" }, "description": "Comma-separated ladder_classification values; unknown values match nothing. Applied after facets are computed; composes with 'status'." }, { "in": "query", "name": "status", "schema": { "type": "string" }, "description": "Filter: 'terminal' or 'ongoing' (default: all plannable)." }, { "in": "query", "name": "window", "schema": { "type": "integer" }, "description": "Calendar days back from the latest brief date (default: all)." } ], "tags": [ "v1" ], "security": [ { "CloudflareAccessJWT": [] }, { "cookieAuth": [] }, {} ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EdgeOutcomesResponse" } } }, "description": "" } } } }, "/v1/edge/summary": { "get": { "operationId": "v1_edge_summary_retrieve", "description": "``/v1/edge/summary`` — the N-gated, benchmark-relative aggregate.", "parameters": [ { "in": "query", "name": "window", "schema": { "type": "integer" }, "description": "Calendar days back from the latest brief date (default: all)." } ], "tags": [ "v1" ], "security": [ { "CloudflareAccessJWT": [] }, { "cookieAuth": [] }, {} ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EdgeSummary" } } }, "description": "" } } } }, "/v1/market/status": { "get": { "operationId": "market_status_retrieve", "description": "Returns whether the requested venue (defaulting to XNYS) holds a session on the anchor date, whether that session is a half-day, whether the venue is in a regular session right now, and the UTC ISO 8601 timestamps of the next session open and next session close. The day-level fields (``is_trading_day``, ``is_half_day``) are anchored on UTC today unless ``?as_of=YYYY-MM-DD`` is supplied; the intraday fields (``is_open_now``, ``next_open_iso``, ``next_close_iso``) always reflect the current wall-clock instant, so a pre-open trading day reports today's open rather than the following session.", "summary": "Current market-status snapshot", "parameters": [ { "in": "query", "name": "as_of", "schema": { "type": "string", "format": "date" }, "description": "ISO 8601 date (YYYY-MM-DD) to anchor the response on. Defaults to today (UTC). Date-only — time components are rejected with 400." } ], "tags": [ "v1" ], "security": [ { "CloudflareAccessJWT": [] }, { "cookieAuth": [] }, {} ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MarketStatus" } } }, "description": "" }, "400": { "content": { "application/json": { "schema": { "type": "object", "additionalProperties": {} } } }, "description": "" } } } }, "/v1/stats": { "get": { "operationId": "v1_stats_retrieve", "description": "``/v1/stats`` — top-line counters + N most-frequent themes.", "parameters": [ { "in": "query", "name": "top_n", "schema": { "type": "integer" }, "description": "Top themes to include (1-50)." } ], "tags": [ "v1" ], "security": [ { "CloudflareAccessJWT": [] }, { "cookieAuth": [] }, {} ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Stats" } } }, "description": "" } } } }, "/v1/themes": { "get": { "operationId": "v1_themes_list", "description": "``/v1/themes`` — distinct-theme aggregation + per-theme candidates.", "parameters": [ { "in": "query", "name": "from", "schema": { "type": "string", "format": "date" }, "description": "Inclusive ISO date lower bound." }, { "name": "limit", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "offset", "required": false, "in": "query", "description": "The initial index from which to return the results.", "schema": { "type": "integer" } }, { "in": "query", "name": "to", "schema": { "type": "string", "format": "date" }, "description": "Inclusive ISO date upper bound." } ], "tags": [ "v1" ], "security": [ { "CloudflareAccessJWT": [] }, { "cookieAuth": [] }, {} ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedThemeSummaryList" } } }, "description": "" } } } }, "/v1/themes/{theme}/candidates": { "get": { "operationId": "v1_themes_candidates_list", "description": "``/v1/themes`` — distinct-theme aggregation + per-theme candidates.", "parameters": [ { "in": "query", "name": "from", "schema": { "type": "string", "format": "date" }, "description": "Inclusive ISO date lower bound." }, { "name": "limit", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "offset", "required": false, "in": "query", "description": "The initial index from which to return the results.", "schema": { "type": "integer" } }, { "in": "path", "name": "theme", "schema": { "type": "string" }, "description": "Exact theme name.", "required": true }, { "in": "query", "name": "to", "schema": { "type": "string", "format": "date" }, "description": "Inclusive ISO date upper bound." } ], "tags": [ "v1" ], "security": [ { "CloudflareAccessJWT": [] }, { "cookieAuth": [] }, {} ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedCandidateList" } } }, "description": "" } } } }, "/v1/tickers/{ticker}/history": { "get": { "operationId": "v1_tickers_history_list", "description": "``/v1/tickers/{ticker}/history`` — every brief appearance for one ticker.", "parameters": [ { "in": "query", "name": "from", "schema": { "type": "string", "format": "date" }, "description": "Inclusive ISO date lower bound." }, { "name": "limit", "required": false, "in": "query", "description": "Number of results to return per page.", "schema": { "type": "integer" } }, { "name": "offset", "required": false, "in": "query", "description": "The initial index from which to return the results.", "schema": { "type": "integer" } }, { "in": "path", "name": "ticker", "schema": { "type": "string" }, "description": "Upper-case ticker symbol.", "required": true }, { "in": "query", "name": "to", "schema": { "type": "string", "format": "date" }, "description": "Inclusive ISO date upper bound." } ], "tags": [ "v1" ], "security": [ { "CloudflareAccessJWT": [] }, { "cookieAuth": [] }, {} ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaginatedCandidateList" } } }, "description": "" } } } } }, "components": { "schemas": { "Candidate": { "type": "object", "description": "One ranked candidate for a BULK list (day brief / theme / ticker history).\n\nAuto-exposes every Brief field except the composite pk — INCLUDING the\n``expert_assessments`` blob, which the SPA card reads (PR-5a). The *_str legacy\ndenormalisations live only in DRF method fields, not on the model, so they are\nnot auto-exposed here.", "properties": { "date": { "type": "string", "format": "date" }, "ticker": { "type": "string", "maxLength": 12 }, "theme": { "type": "string", "maxLength": 128 }, "company_name": { "type": "string", "maxLength": 256 }, "rationale": { "type": "string" }, "llm_confidence": { "type": "number", "format": "double", "nullable": true }, "market_cap": { "type": "number", "format": "double", "nullable": true }, "gates_passed": {}, "n_gates_passed": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "gates_failed": {}, "n_gates_failed": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "gates_unknown": {}, "n_gates_unknown": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "verified": { "type": "boolean" }, "gate_verdict_json": { "type": "string" }, "source_event_url": { "type": "string", "format": "uri", "maxLength": 2048 }, "source_event_title": { "type": "string", "maxLength": 512 }, "source_event_published_at": { "type": "string", "maxLength": 64 }, "theme_search_keywords": {}, "industry_id": { "type": "number", "format": "double", "nullable": true }, "industry_name": { "type": "string", "maxLength": 256 }, "sector_name": { "type": "string", "maxLength": 128 }, "peer_cohort_level": { "type": "string", "maxLength": 8 }, "insider_score_usd": { "type": "number", "format": "double", "nullable": true }, "insider_score_sector_percentile": { "type": "number", "format": "double", "nullable": true }, "insider_signal_version": { "type": "string", "maxLength": 128 }, "fcff_yield_pct": { "type": "number", "format": "double", "nullable": true }, "fcff_yield_sector_percentile": { "type": "number", "format": "double", "nullable": true }, "valuation_pe": { "type": "number", "format": "double", "nullable": true }, "valuation_ps": { "type": "number", "format": "double", "nullable": true }, "valuation_ev_rev": { "type": "number", "format": "double", "nullable": true }, "valuation_ev_ebitda": { "type": "number", "format": "double", "nullable": true }, "valuation_fcf_margin": { "type": "number", "format": "double", "nullable": true }, "valuation_composite_sector_percentile": { "type": "number", "format": "double", "nullable": true }, "valuation_financials_publish_date": { "type": "string", "maxLength": 32 }, "valuation_financials_age_days": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "roic_pct": { "type": "number", "format": "double", "nullable": true }, "roe_pct": { "type": "number", "format": "double", "nullable": true }, "magic_formula_health_pass": { "type": "boolean" }, "expert_assessments": { "nullable": true }, "technical_rsi": { "type": "number", "format": "double", "nullable": true }, "technical_ma50_distance_pct": { "type": "number", "format": "double", "nullable": true }, "technical_atr_pct": { "type": "number", "format": "double", "nullable": true }, "technical_volume_zscore": { "type": "number", "format": "double", "nullable": true }, "technical_pct_off_52w_high": { "type": "number", "format": "double", "nullable": true }, "technical_pct_off_52w_low": { "type": "number", "format": "double", "nullable": true }, "technical_ma200_distance_pct": { "type": "number", "format": "double", "nullable": true }, "technical_ma200_slope_pct_per_day": { "type": "number", "format": "double", "nullable": true }, "catalyst_strength": { "type": "number", "format": "double", "nullable": true }, "catalyst_event_type": { "type": "string", "maxLength": 64 }, "catalyst_confidence": { "type": "number", "format": "double", "nullable": true }, "magic_formula_rank": { "type": "number", "format": "double", "nullable": true }, "magic_formula_cohort_n": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "deep_drawdown_reversal": { "type": "boolean" }, "layer4_weighted_score": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "selection_score": { "type": "number", "format": "double", "nullable": true }, "atr_penalty": { "type": "number", "format": "double", "nullable": true }, "scorer_config_version": { "type": "string", "maxLength": 128 }, "source": { "type": "string", "maxLength": 32 }, "event_overlap": { "type": "boolean" }, "event_n_insiders": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "event_cluster_usd": { "type": "number", "format": "double", "nullable": true }, "event_buyers": { "nullable": true }, "event_arrival_session": { "type": "string", "format": "date", "nullable": true }, "event_filing_lag_bdays": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "event_gate_version": { "type": "string", "maxLength": 64 }, "market_state": { "type": "string", "maxLength": 32 }, "market_state_atr_pct": { "type": "number", "format": "double", "nullable": true }, "market_state_atr_pct_q": { "type": "number", "format": "double", "nullable": true }, "market_state_dist200": { "type": "number", "format": "double", "nullable": true }, "market_state_vix": { "type": "number", "format": "double", "nullable": true }, "market_state_vix_decile": { "type": "number", "format": "double", "nullable": true }, "market_state_squeeze_on": { "type": "boolean", "nullable": true }, "market_state_config_version": { "type": "string", "maxLength": 128 }, "market_ret5_spy": { "type": "number", "format": "double", "nullable": true }, "market_ret5_qqq": { "type": "number", "format": "double", "nullable": true }, "market_ret5_iwm": { "type": "number", "format": "double", "nullable": true }, "also_in_themes": {}, "rank_in_day": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "cohort_size_in_day": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "next_earnings_date": { "type": "string", "format": "date", "nullable": true }, "brief_model_used": { "type": "string", "maxLength": 64 }, "brief_tldr": { "type": "string" }, "brief_supply_chain_md": { "type": "string" }, "brief_bear_summary_md": { "type": "string" }, "brief_catalyst_failure_exit": { "type": "string" }, "brief_trade_setup": { "nullable": true }, "brief_template_id": { "type": "string", "maxLength": 128 }, "brief_template_facts": { "nullable": true }, "brief_generated_at": { "type": "string", "format": "date-time", "nullable": true }, "brief_status": { "type": "string", "nullable": true, "maxLength": 16 }, "brief_error_kind": { "type": "string", "nullable": true, "maxLength": 32 }, "brief_causal_support": { "type": "string", "nullable": true, "maxLength": 32 }, "brief_channel_grounding": { "type": "string", "nullable": true, "maxLength": 32 }, "brief_support_guard_status": { "type": "string", "nullable": true, "maxLength": 32 }, "channel_type": { "type": "string", "maxLength": 32 }, "channel_text": { "type": "string" }, "channel_evidence": { "type": "string" }, "channel_falsifier": { "type": "string" }, "channel_grounding_quote": { "type": "string" }, "channel_grounding_reason": { "type": "string" } }, "required": [ "company_name", "date", "theme", "ticker" ] }, "CandidateDetail": { "type": "object", "description": "One candidate for the single-candidate DETAIL endpoint\n(``/v1/candidates/{date}/{ticker}``). Identical to :class:`CandidateSerializer`\ntoday; kept distinct so a future N-expert payload-split can trim the bulk list\nagain without re-touching the endpoint wiring.", "properties": { "date": { "type": "string", "format": "date" }, "ticker": { "type": "string", "maxLength": 12 }, "theme": { "type": "string", "maxLength": 128 }, "company_name": { "type": "string", "maxLength": 256 }, "rationale": { "type": "string" }, "llm_confidence": { "type": "number", "format": "double", "nullable": true }, "market_cap": { "type": "number", "format": "double", "nullable": true }, "gates_passed": {}, "n_gates_passed": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "gates_failed": {}, "n_gates_failed": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "gates_unknown": {}, "n_gates_unknown": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "verified": { "type": "boolean" }, "gate_verdict_json": { "type": "string" }, "source_event_url": { "type": "string", "format": "uri", "maxLength": 2048 }, "source_event_title": { "type": "string", "maxLength": 512 }, "source_event_published_at": { "type": "string", "maxLength": 64 }, "theme_search_keywords": {}, "industry_id": { "type": "number", "format": "double", "nullable": true }, "industry_name": { "type": "string", "maxLength": 256 }, "sector_name": { "type": "string", "maxLength": 128 }, "peer_cohort_level": { "type": "string", "maxLength": 8 }, "insider_score_usd": { "type": "number", "format": "double", "nullable": true }, "insider_score_sector_percentile": { "type": "number", "format": "double", "nullable": true }, "insider_signal_version": { "type": "string", "maxLength": 128 }, "fcff_yield_pct": { "type": "number", "format": "double", "nullable": true }, "fcff_yield_sector_percentile": { "type": "number", "format": "double", "nullable": true }, "valuation_pe": { "type": "number", "format": "double", "nullable": true }, "valuation_ps": { "type": "number", "format": "double", "nullable": true }, "valuation_ev_rev": { "type": "number", "format": "double", "nullable": true }, "valuation_ev_ebitda": { "type": "number", "format": "double", "nullable": true }, "valuation_fcf_margin": { "type": "number", "format": "double", "nullable": true }, "valuation_composite_sector_percentile": { "type": "number", "format": "double", "nullable": true }, "valuation_financials_publish_date": { "type": "string", "maxLength": 32 }, "valuation_financials_age_days": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "roic_pct": { "type": "number", "format": "double", "nullable": true }, "roe_pct": { "type": "number", "format": "double", "nullable": true }, "magic_formula_health_pass": { "type": "boolean" }, "expert_assessments": { "nullable": true }, "technical_rsi": { "type": "number", "format": "double", "nullable": true }, "technical_ma50_distance_pct": { "type": "number", "format": "double", "nullable": true }, "technical_atr_pct": { "type": "number", "format": "double", "nullable": true }, "technical_volume_zscore": { "type": "number", "format": "double", "nullable": true }, "technical_pct_off_52w_high": { "type": "number", "format": "double", "nullable": true }, "technical_pct_off_52w_low": { "type": "number", "format": "double", "nullable": true }, "technical_ma200_distance_pct": { "type": "number", "format": "double", "nullable": true }, "technical_ma200_slope_pct_per_day": { "type": "number", "format": "double", "nullable": true }, "catalyst_strength": { "type": "number", "format": "double", "nullable": true }, "catalyst_event_type": { "type": "string", "maxLength": 64 }, "catalyst_confidence": { "type": "number", "format": "double", "nullable": true }, "magic_formula_rank": { "type": "number", "format": "double", "nullable": true }, "magic_formula_cohort_n": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "deep_drawdown_reversal": { "type": "boolean" }, "layer4_weighted_score": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "selection_score": { "type": "number", "format": "double", "nullable": true }, "atr_penalty": { "type": "number", "format": "double", "nullable": true }, "scorer_config_version": { "type": "string", "maxLength": 128 }, "source": { "type": "string", "maxLength": 32 }, "event_overlap": { "type": "boolean" }, "event_n_insiders": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "event_cluster_usd": { "type": "number", "format": "double", "nullable": true }, "event_buyers": { "nullable": true }, "event_arrival_session": { "type": "string", "format": "date", "nullable": true }, "event_filing_lag_bdays": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "event_gate_version": { "type": "string", "maxLength": 64 }, "market_state": { "type": "string", "maxLength": 32 }, "market_state_atr_pct": { "type": "number", "format": "double", "nullable": true }, "market_state_atr_pct_q": { "type": "number", "format": "double", "nullable": true }, "market_state_dist200": { "type": "number", "format": "double", "nullable": true }, "market_state_vix": { "type": "number", "format": "double", "nullable": true }, "market_state_vix_decile": { "type": "number", "format": "double", "nullable": true }, "market_state_squeeze_on": { "type": "boolean", "nullable": true }, "market_state_config_version": { "type": "string", "maxLength": 128 }, "market_ret5_spy": { "type": "number", "format": "double", "nullable": true }, "market_ret5_qqq": { "type": "number", "format": "double", "nullable": true }, "market_ret5_iwm": { "type": "number", "format": "double", "nullable": true }, "also_in_themes": {}, "rank_in_day": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "cohort_size_in_day": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64", "nullable": true }, "next_earnings_date": { "type": "string", "format": "date", "nullable": true }, "brief_model_used": { "type": "string", "maxLength": 64 }, "brief_tldr": { "type": "string" }, "brief_supply_chain_md": { "type": "string" }, "brief_bear_summary_md": { "type": "string" }, "brief_catalyst_failure_exit": { "type": "string" }, "brief_trade_setup": { "nullable": true }, "brief_template_id": { "type": "string", "maxLength": 128 }, "brief_template_facts": { "nullable": true }, "brief_generated_at": { "type": "string", "format": "date-time", "nullable": true }, "brief_status": { "type": "string", "nullable": true, "maxLength": 16 }, "brief_error_kind": { "type": "string", "nullable": true, "maxLength": 32 }, "brief_causal_support": { "type": "string", "nullable": true, "maxLength": 32 }, "brief_channel_grounding": { "type": "string", "nullable": true, "maxLength": 32 }, "brief_support_guard_status": { "type": "string", "nullable": true, "maxLength": 32 }, "channel_type": { "type": "string", "maxLength": 32 }, "channel_text": { "type": "string" }, "channel_evidence": { "type": "string" }, "channel_falsifier": { "type": "string" }, "channel_grounding_quote": { "type": "string" }, "channel_grounding_reason": { "type": "string" } }, "required": [ "company_name", "date", "theme", "ticker" ] }, "ChartBar": { "type": "object", "description": "One daily OHLC candle (folded from the cached minute bars, RTH-only).\n\n``time`` is an ISO date string (``YYYY-MM-DD``) so it maps 1:1 to a\nLightweight-Charts daily bar time.", "properties": { "time": { "type": "string" }, "open": { "type": "number", "format": "double" }, "high": { "type": "number", "format": "double" }, "low": { "type": "number", "format": "double" }, "close": { "type": "number", "format": "double" }, "volume": { "type": "number", "format": "double" } }, "required": [ "close", "high", "low", "open", "time", "volume" ] }, "ChartMarker": { "type": "object", "description": "One modeled fill / exit marker, snapped to a daily bar ``time``.\n\n``kind`` is the pipeline's marker vocabulary; opaque to this serializer (a\nplain passthrough, so new kinds need no change here). ``ambiguous`` carries\nthe SL-first intrabar flag (a bar that touched both a TP high and the SL\nlow, resolved SL-first).", "properties": { "time": { "type": "string" }, "kind": { "type": "string" }, "level_id": { "type": "string" }, "price": { "type": "number", "format": "double", "nullable": true }, "label": { "type": "string" }, "ambiguous": { "type": "boolean" } }, "required": [ "ambiguous", "kind", "label", "level_id", "price", "time" ] }, "ChartPriceLines": { "type": "object", "description": "The resting ladder levels drawn as horizontal price lines.\n\n``tp`` is the ordered list of take-profit targets. TIME_STOP is NOT a price\nline — it is an exit event drawn only as a marker.", "properties": { "entry": { "type": "number", "format": "double", "nullable": true }, "tp": { "type": "array", "items": { "type": "number", "format": "double" } }, "stop": { "type": "number", "format": "double", "nullable": true } }, "required": [ "entry", "stop", "tp" ] }, "ChartResponse": { "type": "object", "description": "``/v1/edge/chart//`` — the pre-computed chart payload.\n\nThe SHAPE is stable across ``status``: a NO_DATA / NO_STRUCTURE payload carries\nempty ``bars`` / ``markers`` and null/empty ``price_lines`` so the SPA branches\non ``status`` without a 2nd request. ``rth_only`` is always true in PR-1\n(RTH-only daily candles; intraday is a later PR).", "properties": { "brief_date": { "type": "string", "format": "date" }, "ticker": { "type": "string" }, "ladder_classification": { "type": "string" }, "terminal": { "type": "boolean" }, "holding_days_elapsed": { "type": "integer", "nullable": true }, "open_r": { "type": "number", "format": "double", "nullable": true }, "realized_r": { "type": "number", "format": "double", "nullable": true }, "status": { "$ref": "#/components/schemas/ChartResponseStatusEnum" }, "context": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ContextEnum" }, { "$ref": "#/components/schemas/NullEnum" } ] }, "bars": { "type": "array", "items": { "$ref": "#/components/schemas/ChartBar" } }, "price_lines": { "$ref": "#/components/schemas/ChartPriceLines" }, "markers": { "type": "array", "items": { "$ref": "#/components/schemas/ChartMarker" } }, "ambiguous_bars": { "type": "integer" }, "intrabar_rule": { "type": "string" }, "rth_only": { "type": "boolean" } }, "required": [ "ambiguous_bars", "bars", "brief_date", "context", "holding_days_elapsed", "intrabar_rule", "ladder_classification", "markers", "open_r", "price_lines", "realized_r", "rth_only", "status", "terminal", "ticker" ] }, "ChartResponseStatusEnum": { "enum": [ "OK", "NO_DATA", "NO_STRUCTURE" ], "type": "string", "description": "* `OK` - OK\n* `NO_DATA` - NO_DATA\n* `NO_STRUCTURE` - NO_STRUCTURE" }, "ContextEnum": { "enum": [ "OK", "reused", "in_trade_only" ], "type": "string", "description": "* `OK` - OK\n* `reused` - reused\n* `in_trade_only` - in_trade_only" }, "DayBrief": { "type": "object", "description": "Full payload for one day: meta + every ranked candidate.", "properties": { "date": { "type": "string", "format": "date" }, "n_candidates": { "type": "integer" }, "n_themes": { "type": "integer" }, "top_theme": { "type": "string", "nullable": true }, "theme_counts": { "type": "object", "additionalProperties": { "type": "integer" } }, "candidates": { "type": "array", "items": { "$ref": "#/components/schemas/Candidate" } }, "meta": { "$ref": "#/components/schemas/DayMetaBlock" } }, "required": [ "candidates", "date", "meta", "n_candidates", "n_themes", "theme_counts", "top_theme" ] }, "DayMeta": { "type": "object", "description": "Row in ``/v1/days``: per-day metadata only (no candidates).", "properties": { "date": { "type": "string", "format": "date" }, "n_candidates": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "n_themes": { "type": "integer", "maximum": 9223372036854775807, "minimum": -9223372036854775808, "format": "int64" }, "top_theme": { "type": "string", "nullable": true, "description": "Empty-string DB default → None on the wire (parity with legacy API).", "readOnly": true } }, "required": [ "date", "n_candidates", "n_themes", "top_theme" ] }, "DayMetaBlock": { "type": "object", "description": "The additive top-level ``meta`` block on ``/v1/days/{date}``.", "properties": { "validation": { "$ref": "#/components/schemas/DayValidation" } }, "required": [ "validation" ] }, "DayValidation": { "type": "object", "description": "Machine-generated honesty context (see ``briefs.api.day_validation``).", "properties": { "selection_status": { "type": "string" }, "layer4_weighted_score_note": { "type": "string" }, "edge_base_rate": { "$ref": "#/components/schemas/EdgeBaseRate" }, "brief_dating": { "type": "string" }, "scorer_config_version": { "type": "string", "nullable": true } }, "required": [ "brief_dating", "edge_base_rate", "layer4_weighted_score_note", "scorer_config_version", "selection_status" ] }, "DeploymentPanel": { "type": "object", "description": "The DEPLOYMENT panel — N-INDEPENDENT, always populated.", "properties": { "n_terminal": { "type": "integer" }, "n_filled": { "type": "integer" }, "n_no_fill": { "type": "integer" }, "fill_rate": { "type": "number", "format": "double", "nullable": true }, "no_fill_rate": { "type": "number", "format": "double", "nullable": true }, "mean_tiers_filled_count": { "type": "number", "format": "double", "nullable": true } }, "required": [ "fill_rate", "mean_tiers_filled_count", "n_filled", "n_no_fill", "n_terminal", "no_fill_rate" ] }, "EdgeBaseRate": { "type": "object", "description": "Live edge base rate for ``meta.validation`` (see ``edge.api.base_rate``).\n\nPool = plannable AND terminal AND finite realized_r over all dates. N-gated\nlike /edge (stats null below 30 matured); degenerate math is null, never inf.", "properties": { "n_matured": { "type": "integer", "description": "Size of the realized-R pool (plannable, terminal, finite realized_r) — /edge's gross_realized_r_n, NOT its excess-keyed n_matured." }, "mean_realized_r": { "type": "number", "format": "double", "nullable": true }, "payoff_ratio": { "type": "number", "format": "double", "nullable": true }, "breakeven_win_rate": { "type": "number", "format": "double", "nullable": true }, "as_of": { "type": "string", "format": "date", "nullable": true, "description": "Max matured_at among contributing rows; null for an empty pool." } }, "required": [ "as_of", "breakeven_win_rate", "mean_realized_r", "n_matured", "payoff_ratio" ] }, "EdgeExcessPoint": { "type": "object", "description": "One per-trade point in the SPY-excess scatter.", "properties": { "date": { "type": "string" }, "excess": { "type": "number", "format": "double" }, "ticker": { "type": "string" }, "holding_days": { "type": "integer", "nullable": true }, "episode_repeat": { "type": "boolean" } }, "required": [ "date", "episode_repeat", "excess", "holding_days", "ticker" ] }, "EdgeExcessTelemetry": { "type": "object", "description": "``/v1/edge/excess-telemetry`` — per-trade SPY-excess scatter + gated trend.", "properties": { "benchmark": { "type": "string" }, "status": { "$ref": "#/components/schemas/EdgeExcessTelemetryStatusEnum" }, "gate_threshold": { "type": "integer" }, "n_total": { "type": "integer" }, "n_effective": { "type": "integer" }, "median_holding_days": { "type": "number", "format": "double", "nullable": true }, "smoother_window": { "type": "integer" }, "metric_note": { "type": "string" }, "benchmark_note": { "type": "string" }, "points": { "type": "array", "items": { "$ref": "#/components/schemas/EdgeExcessPoint" } }, "trend": { "type": "array", "items": { "$ref": "#/components/schemas/EdgeExcessTrend" } } }, "required": [ "benchmark", "benchmark_note", "gate_threshold", "median_holding_days", "metric_note", "n_effective", "n_total", "points", "smoother_window", "status", "trend" ] }, "EdgeExcessTelemetryStatusEnum": { "enum": [ "accumulating", "ok" ], "type": "string", "description": "* `accumulating` - accumulating\n* `ok` - ok" }, "EdgeExcessTrend": { "type": "object", "description": "One trailing-window smoothed value in the SPY-excess trend line.", "properties": { "date": { "type": "string" }, "mean": { "type": "number", "format": "double" }, "lo": { "type": "number", "format": "double" }, "hi": { "type": "number", "format": "double" } }, "required": [ "date", "hi", "lo", "mean" ] }, "EdgeOutcomeRow": { "type": "object", "description": "The lean per-candidate shape for ``/v1/edge/outcomes`` (memo §5 table).", "properties": { "ticker": { "type": "string" }, "brief_date": { "type": "string", "format": "date" }, "matured_at": { "type": "string", "format": "date", "nullable": true }, "theme": { "type": "string", "nullable": true }, "scorer_config_version": { "type": "string", "nullable": true }, "source": { "type": "string" }, "event_overlap": { "type": "boolean" }, "ladder_classification": { "type": "string" }, "captured_tp_count": { "type": "integer", "nullable": true }, "touched_tp_count": { "type": "integer", "nullable": true }, "terminal": { "type": "boolean" }, "realized_r": { "type": "number", "format": "double", "nullable": true }, "open_r": { "type": "number", "format": "double", "nullable": true }, "market_excess_return": { "type": "number", "format": "double", "nullable": true }, "forward_return": { "type": "number", "format": "double", "nullable": true }, "benchmark_window_return": { "type": "number", "format": "double", "nullable": true }, "holding_days_elapsed": { "type": "integer", "nullable": true }, "realized_return_pct_of_book": { "type": "number", "format": "double", "nullable": true } }, "required": [ "benchmark_window_return", "brief_date", "event_overlap", "forward_return", "holding_days_elapsed", "ladder_classification", "market_excess_return", "open_r", "realized_r", "realized_return_pct_of_book", "source", "terminal", "ticker" ] }, "EdgeOutcomesFacetClassification": { "type": "object", "description": "Per-view classification counts over the pre-filter window population.\n\nEach map keys ``ladder_classification`` values to their count among the\nrows whose actual per-row ``terminal`` flag matches the view, so the same\nclass can appear in both maps with disjoint counts. The empty-string\n(not-yet-priced) bucket is dropped; terminal rows always carry a real\nclassification, so the ``terminal`` map sums to the terminal status count.", "properties": { "terminal": { "type": "object", "additionalProperties": { "type": "integer" } }, "ongoing": { "type": "object", "additionalProperties": { "type": "integer" } } }, "required": [ "ongoing", "terminal" ] }, "EdgeOutcomesFacetStatus": { "type": "object", "description": "Window+plannable population split by terminal state.\n\nComputed BEFORE the ``status``/``classification`` filters and before the\nper-page cap, so the counts describe the whole window population.", "properties": { "terminal": { "type": "integer" }, "ongoing": { "type": "integer" } }, "required": [ "ongoing", "terminal" ] }, "EdgeOutcomesFacets": { "type": "object", "description": "Pre-filter facet counts for the ``/v1/edge/outcomes`` window population.\n\n``classification`` splits the counts per view by the actual per-row\n``terminal`` flag, so the same class can appear in both maps with\ndisjoint counts.", "properties": { "status": { "$ref": "#/components/schemas/EdgeOutcomesFacetStatus" }, "classification": { "$ref": "#/components/schemas/EdgeOutcomesFacetClassification" } }, "required": [ "classification", "status" ] }, "EdgeOutcomesResponse": { "type": "object", "description": "The real ``/v1/edge/outcomes`` envelope.\n\n``total``/``returned``/``truncated`` describe the CURRENT (filtered,\ncapped) listing; ``facets`` describe the pre-filter window population.", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/EdgeOutcomeRow" } }, "total": { "type": "integer" }, "returned": { "type": "integer" }, "truncated": { "type": "boolean" }, "facets": { "$ref": "#/components/schemas/EdgeOutcomesFacets" } }, "required": [ "data", "facets", "returned", "total", "truncated" ] }, "EdgePanel": { "type": "object", "description": "The EDGE panel — gated. ``status='insufficient'`` nulls the stat fields.\n\nThe key SHAPE is stable (every field always present); the N-gate hides the\nnumbers by setting them to ``null`` rather than dropping the keys, so the\nfrontend can build a single static type and branch on ``status``.", "properties": { "status": { "$ref": "#/components/schemas/Status3b9Enum" }, "n_matured": { "type": "integer" }, "threshold": { "type": "integer" }, "market_excess_mean": { "type": "number", "format": "double", "nullable": true }, "market_excess_median": { "type": "number", "format": "double", "nullable": true }, "market_excess_quantiles": { "$ref": "#/components/schemas/_Quantiles" }, "hit_rate": { "type": "number", "format": "double", "nullable": true }, "gross_realized_r_mean": { "type": "number", "format": "double", "nullable": true }, "gross_realized_r_median": { "type": "number", "format": "double", "nullable": true }, "gross_realized_r_n": { "type": "integer" }, "holding_days_n": { "type": "integer" }, "holding_days_p50": { "type": "number", "format": "double", "nullable": true }, "holding_days_p95": { "type": "number", "format": "double", "nullable": true }, "gross_of_cost": { "type": "boolean" }, "regime_stratified": { "type": "boolean" } }, "required": [ "gross_of_cost", "gross_realized_r_mean", "gross_realized_r_median", "gross_realized_r_n", "hit_rate", "holding_days_n", "holding_days_p50", "holding_days_p95", "market_excess_mean", "market_excess_median", "market_excess_quantiles", "n_matured", "regime_stratified", "status", "threshold" ] }, "EdgeSummary": { "type": "object", "description": "``/v1/edge/summary`` — the full N-gated, benchmark-relative aggregate.", "properties": { "n_brief": { "type": "integer" }, "n_plannable": { "type": "integer" }, "n_terminal": { "type": "integer" }, "n_matured": { "type": "integer" }, "n_quarantined": { "type": "integer", "description": "Terminal rows that carry no benchmark and never will (the corporate-action quarantine, SPLIT_INVALIDATED): n_terminal == n_matured + n_quarantined + retriable gaps. The completeness banner divides by n_terminal - n_quarantined." }, "n_gate_threshold": { "type": "integer" }, "benchmark": { "type": "string" }, "metric_note": { "type": "string" }, "edge": { "$ref": "#/components/schemas/EdgePanel" }, "portfolio": { "$ref": "#/components/schemas/PortfolioPanel" }, "whatif": { "$ref": "#/components/schemas/WhatIfPanel" }, "deployment": { "$ref": "#/components/schemas/DeploymentPanel" }, "open_positions": { "$ref": "#/components/schemas/OpenPositions" }, "enriched_at": { "type": "string", "format": "date-time", "nullable": true } }, "required": [ "benchmark", "deployment", "edge", "enriched_at", "metric_note", "n_brief", "n_gate_threshold", "n_matured", "n_plannable", "n_quarantined", "n_terminal", "open_positions", "portfolio", "whatif" ] }, "MarketStatus": { "type": "object", "properties": { "is_trading_day": { "type": "boolean" }, "is_half_day": { "type": "boolean" }, "is_open_now": { "type": "boolean" }, "next_open_iso": { "type": "string", "format": "date-time" }, "next_close_iso": { "type": "string", "format": "date-time" }, "exchange": { "type": "string" } }, "required": [ "exchange", "is_half_day", "is_open_now", "is_trading_day", "next_close_iso", "next_open_iso" ] }, "NullEnum": { "enum": [ null ] }, "OpenPositions": { "type": "object", "description": "Ongoing positions as a DESCRIPTIVE distribution (never a scalar mean).", "properties": { "n_open": { "type": "integer" }, "near_tp": { "type": "integer" }, "near_sl": { "type": "integer" }, "note": { "type": "string" } }, "required": [ "n_open", "near_sl", "near_tp", "note" ] }, "PaginatedCandidateList": { "type": "object", "required": [ "data", "meta" ], "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Candidate" } }, "meta": { "type": "object", "required": [ "total", "limit", "offset" ], "properties": { "total": { "type": "integer", "example": 123 }, "limit": { "type": "integer", "example": 50 }, "offset": { "type": "integer", "example": 0 } } } } }, "PaginatedDayMetaList": { "type": "object", "required": [ "data", "meta" ], "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/DayMeta" } }, "meta": { "type": "object", "required": [ "total", "limit", "offset" ], "properties": { "total": { "type": "integer", "example": 123 }, "limit": { "type": "integer", "example": 50 }, "offset": { "type": "integer", "example": 0 } } } } }, "PaginatedThemeSummaryList": { "type": "object", "required": [ "data", "meta" ], "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/ThemeSummary" } }, "meta": { "type": "object", "required": [ "total", "limit", "offset" ], "properties": { "total": { "type": "integer", "example": 123 }, "limit": { "type": "integer", "example": 50 }, "offset": { "type": "integer", "example": 0 } } } } }, "PortfolioPanel": { "type": "object", "description": "The PORTFOLIO (per-name size) panel — gated, same N-gate as EDGE.\n\nReports per-name risk geometry only; the shared-book aggregates were removed\n(no single capital book exists for this tool, ADR 0012).", "properties": { "status": { "$ref": "#/components/schemas/Status3b9Enum" }, "n_matured": { "type": "integer" }, "threshold": { "type": "integer" }, "mean_realized_risk_pct": { "type": "number", "format": "double", "nullable": true }, "mean_tiers_filled_count": { "type": "number", "format": "double", "nullable": true }, "gross_of_cost": { "type": "boolean" } }, "required": [ "gross_of_cost", "mean_realized_risk_pct", "mean_tiers_filled_count", "n_matured", "status", "threshold" ] }, "Stats": { "type": "object", "description": "Top-line counters and most-frequent themes for ``/v1/stats``.", "properties": { "n_days": { "type": "integer" }, "n_candidates": { "type": "integer" }, "n_themes": { "type": "integer" }, "earliest_date": { "type": "string", "format": "date", "nullable": true }, "latest_date": { "type": "string", "format": "date", "nullable": true }, "last_rebuild_at": { "type": "string", "format": "date-time", "nullable": true }, "top_themes": { "type": "array", "items": { "$ref": "#/components/schemas/TopTheme" } } }, "required": [ "earliest_date", "last_rebuild_at", "latest_date", "n_candidates", "n_days", "n_themes", "top_themes" ] }, "Status3b9Enum": { "enum": [ "insufficient", "early", "ok" ], "type": "string", "description": "* `insufficient` - insufficient\n* `early` - early\n* `ok` - ok" }, "ThemeSummary": { "type": "object", "description": "Row in ``/v1/themes``: distinct theme + appearance counts.", "properties": { "theme": { "type": "string" }, "n_candidates": { "type": "integer" }, "n_days": { "type": "integer" }, "first_seen": { "type": "string", "format": "date" }, "last_seen": { "type": "string", "format": "date" } }, "required": [ "first_seen", "last_seen", "n_candidates", "n_days", "theme" ] }, "TopTheme": { "type": "object", "properties": { "theme": { "type": "string" }, "n_days": { "type": "integer" }, "n_candidates": { "type": "integer" } }, "required": [ "n_candidates", "n_days", "theme" ] }, "WhatIfLens": { "type": "object", "description": "One break-even lens's gated R aggregate (keyed by lens_id in the parent map).\n\n``mean_r`` / ``median_r`` are null below the N-gate; ``n`` survives so the UI can\nshow coverage.", "properties": { "n": { "type": "integer" }, "mean_r": { "type": "number", "format": "double", "nullable": true }, "median_r": { "type": "number", "format": "double", "nullable": true }, "realized_r_baseline": { "type": "number", "format": "double", "nullable": true }, "realized_r_baseline_n": { "type": "integer" }, "n_helped": { "type": "integer", "nullable": true }, "n_harmed": { "type": "integer", "nullable": true }, "preregistered_ref": { "type": "string", "nullable": true } }, "required": [ "mean_r", "median_r", "n", "n_harmed", "n_helped", "preregistered_ref", "realized_r_baseline", "realized_r_baseline_n" ] }, "WhatIfPanel": { "type": "object", "description": "The WHAT-IF panel — display-only, IN-SAMPLE counterfactual exit lenses.\n\nGated like EDGE. The realized headline is never touched by this block. The lens\nregistry (labels + scope + ``in_sample``/``validated`` status) lives client-side,\nso the ``lenses`` map is keyed by ``lens_id`` only.\n\nLenses are NOT all exit-stop policies: some move only the stop, one also\ncollapses the entry ladder, and the ATR-bracket pair discards the brief\ntake-profit tranches for a single target. Describing them collectively as\nexit-stop was issue #1160.", "properties": { "status": { "$ref": "#/components/schemas/Status3b9Enum" }, "n_matured": { "type": "integer" }, "threshold": { "type": "integer" }, "in_sample": { "type": "boolean" }, "note": { "type": "string" }, "lenses": { "type": "object", "additionalProperties": { "$ref": "#/components/schemas/WhatIfLens" } } }, "required": [ "in_sample", "lenses", "n_matured", "note", "status", "threshold" ] }, "_Quantiles": { "type": "object", "properties": { "p10": { "type": "number", "format": "double", "nullable": true }, "p50": { "type": "number", "format": "double", "nullable": true }, "p90": { "type": "number", "format": "double", "nullable": true } }, "required": [ "p10", "p50", "p90" ] } }, "securitySchemes": { "CloudflareAccessJWT": { "type": "apiKey", "in": "header", "name": "Cf-Access-Jwt-Assertion", "description": "Cloudflare Access service token / SSO JWT, injected by the Cloudflare edge after the user passes the configured identity provider (Google SSO). Verified server-side against the team's JWKS." }, "cookieAuth": { "type": "apiKey", "in": "cookie", "name": "sessionid" } } } }