{"components": {"schemas": {"AlertState": {"enum": ["active", "paused", "done"], "title": "AlertState", "type": "string"}, "ArticleRecommendationsResponse": {"examples": [{"related": [{"access_level": "public", "created_at": "2026-11-04T13:30:00Z", "id": "f43679d3-0ab5-5f68-8bda-f0a4c5560594", "locale": "en", "published_at": "2026-11-04T13:30:00Z", "requested_locale": "en", "slug": "fed-holds-rates-steady-as-inflation-cools", "status": "published", "title": "Fed holds rates steady as inflation cools", "type": "news", "updated_at": "2026-11-04T13:30:00Z"}], "trending": []}], "properties": {"related": {"items": {"$ref": "#/components/schemas/ArticleSummaryResponse"}, "title": "Related", "type": "array"}, "trending": {"items": {"$ref": "#/components/schemas/ArticleSummaryResponse"}, "title": "Trending", "type": "array"}}, "required": ["related", "trending"], "title": "ArticleRecommendationsResponse", "type": "object"}, "ArticleSuggestionsResponse": {"description": "A short list for a search box. It has no cursor, because a reader types more instead.", "examples": [{"items": [{"access_level": "public", "created_at": "2026-11-04T13:30:00Z", "id": "f43679d3-0ab5-5f68-8bda-f0a4c5560594", "locale": "en", "published_at": "2026-11-04T13:30:00Z", "requested_locale": "en", "slug": "inflation-cools-in-the-euro-area", "status": "published", "title": "Inflation cools in the euro area", "type": "news", "updated_at": "2026-11-04T13:30:00Z"}]}], "properties": {"items": {"items": {"$ref": "#/components/schemas/ArticleSummaryResponse"}, "title": "Items", "type": "array"}}, "required": ["items"], "title": "ArticleSuggestionsResponse", "type": "object"}, "ArticleSummaryResponse": {"description": "A list row: the article plus the one translation being shown.", "examples": [{"access_level": "public", "byline": {"name": "Hafizah Rina", "url": "https://www.linkedin.com/in/hafizah-rina-43a1531a4"}, "created_at": "2026-11-04T13:30:00Z", "hero_image_url": "https://cdn.renzo-digital.com/articles/fed-holds-rates.jpg", "id": "f43679d3-0ab5-5f68-8bda-f0a4c5560594", "is_editors_pick": false, "is_scheduled": false, "locale": "en", "published_at": "2026-11-04T13:30:00Z", "requested_locale": "en", "seo_description": "The Fed kept rates unchanged and signalled patience.", "slug": "fed-holds-rates-steady-as-inflation-cools", "status": "published", "symbols": [{"asset_class": "index", "display_name": "US 500 Index", "exchange": "INDEX", "id": "63d60d4b-cbbd-510b-8352-cdb4ac4859ae", "is_active": true, "role": "primary", "slug": "us500-index", "ticker": "US500"}], "title": "Fed holds rates steady as inflation cools", "type": "news", "updated_at": "2026-11-04T13:30:00Z"}], "properties": {"access_level": {"description": "Who may read the full text: `public`, `registered` or `premium`.", "enum": ["public", "registered", "premium"], "title": "Access Level", "type": "string"}, "byline": {"$ref": "#/components/schemas/BylineResponse", "description": "The author shown to readers."}, "created_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created At"}, "hero_image_url": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The main image. Null when the article has none.", "title": "Hero Image Url"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "is_editors_pick": {"default": false, "description": "True when the editors chose this article to feature.", "title": "Is Editors Pick", "type": "boolean"}, "is_scheduled": {"default": false, "title": "Is Scheduled", "type": "boolean"}, "locale": {"description": "Public language tag of the locale served.", "title": "Locale", "type": "string"}, "publish_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Publish At"}, "published_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When the article went live.", "title": "Published At"}, "requested_locale": {"description": "The language the caller asked for. `locale` may differ after fallback.", "title": "Requested Locale", "type": "string"}, "seo_description": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "A short description for search results.", "title": "Seo Description"}, "slug": {"description": "The URL name of the article in this language.", "title": "Slug", "type": "string"}, "status": {"enum": ["draft", "published", "archived"], "title": "Status", "type": "string"}, "symbols": {"items": {"$ref": "#/components/schemas/ArticleSymbolRef"}, "title": "Symbols", "type": "array"}, "title": {"title": "Title", "type": "string"}, "type": {"description": "`news`, `opinion`, `editorial` or `guide`.", "enum": ["news", "opinion", "editorial", "guide"], "title": "Type", "type": "string"}, "updated_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Updated At"}}, "required": ["id", "type", "access_level", "status", "locale", "requested_locale", "title", "slug", "byline", "created_at", "updated_at"], "title": "ArticleSummaryResponse", "type": "object"}, "ArticleSymbolRef": {"description": "A tag on an article: the symbol and how much the article is about it.", "properties": {"asset_class": {"description": "The kind of instrument, for example `equity` or `forex`.", "enum": ["equity", "index", "forex", "crypto", "commodity", "bond", "etf", "future", "option"], "title": "Asset Class", "type": "string"}, "display_name": {"title": "Display Name", "type": "string"}, "exchange": {"description": "The exchange or market the symbol trades on.", "title": "Exchange", "type": "string"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "is_active": {"description": "False when the symbol is retired. Old tags still show it.", "title": "Is Active", "type": "boolean"}, "role": {"$ref": "#/components/schemas/TagRole", "description": "`primary` when the article is about the symbol; `mentioned` when only the body names it. Primary tags come first."}, "slug": {"description": "The URL name of the symbol, for example `aapl-nasdaq`.", "title": "Slug", "type": "string"}, "ticker": {"description": "The trading code, for example AAPL.", "title": "Ticker", "type": "string"}}, "required": ["id", "slug", "ticker", "exchange", "display_name", "asset_class", "is_active", "role"], "title": "ArticleSymbolRef", "type": "object"}, "BylineResponse": {"description": "The author readers see. The backend decides it, so clients need no fallback.", "properties": {"name": {"description": "The author's display name.", "title": "Name", "type": "string"}, "url": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The author's profile page. Left out when there is none.", "title": "Url"}}, "required": ["name"], "title": "BylineResponse", "type": "object"}, "ChannelConnectionListResponse": {"description": "Every channel and its connection state, unpaginated: the list is the enum.", "examples": [{"channels": [{"available": true, "channel": "email", "connected": true, "price_alerts_available": true}, {"available": true, "channel": "telegram", "connected": true, "connected_at": "2026-10-06T09:12:00Z", "display_name": "@marketwatcher", "price_alerts_available": true}, {"available": false, "channel": "whatsapp", "connected": false, "price_alerts_available": false}]}], "properties": {"channels": {"items": {"$ref": "#/components/schemas/ChannelConnectionResponse"}, "title": "Channels", "type": "array"}}, "required": ["channels"], "title": "ChannelConnectionListResponse", "type": "object"}, "ChannelConnectionResponse": {"description": "Whether one channel can reach the caller.", "properties": {"available": {"description": "False when Renzo cannot deliver on this channel yet.", "title": "Available", "type": "boolean"}, "channel": {"title": "Channel", "type": "string"}, "connected": {"description": "True when messages on this channel can reach the caller.", "title": "Connected", "type": "boolean"}, "connected_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When the channel was linked. Null when none is linked.", "title": "Connected At"}, "display_name": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The linked chat or account name. Null when none is linked.", "title": "Display Name"}, "locked": {"default": false, "description": "True when the caller's plan does not include this channel, such as WhatsApp on the free plan. Connecting is refused with `notification_channel_locked`.", "title": "Locked", "type": "boolean"}, "price_alerts_available": {"description": "False when Renzo cannot send price alerts on this channel right now, such as while WhatsApp's price-alert template is paused.", "title": "Price Alerts Available", "type": "boolean"}}, "required": ["channel", "available", "price_alerts_available", "connected"], "title": "ChannelConnectionResponse", "type": "object"}, "ChannelStateResponse": {"description": "One cell of the matrix. `available` is false where no adapter delivers.", "properties": {"available": {"description": "False when no adapter can deliver on this channel yet.", "title": "Available", "type": "boolean"}, "channel": {"title": "Channel", "type": "string"}, "connected": {"description": "False when this channel still needs a connection step.", "title": "Connected", "type": "boolean"}, "enabled": {"title": "Enabled", "type": "boolean"}, "locked": {"default": false, "description": "True when the caller's plan does not include this channel, such as WhatsApp on the free plan. Turning it on is refused with `notification_channel_locked`.", "title": "Locked", "type": "boolean"}}, "required": ["channel", "enabled", "available", "connected"], "title": "ChannelStateResponse", "type": "object"}, "CheckoutPreviewResponse": {"description": "What a checkout charges now and at the next bill, in USD cents before tax.", "examples": [{"amount_today_cents": 1520, "discount_cents": 380, "full_price_cents": 1900, "grant_credit_cents": 760, "grant_days_left": 12, "next_bill_at": "2026-12-04T13:30:00Z", "next_bill_cents": 1140, "referral_discount_percent": 20}], "properties": {"amount_today_cents": {"description": "What the first payment charges, in cents.", "title": "Amount Today Cents", "type": "integer"}, "discount_cents": {"description": "The amount the discount takes off, in cents.", "title": "Discount Cents", "type": "integer"}, "full_price_cents": {"description": "The regular price, charged from the next bill on.", "title": "Full Price Cents", "type": "integer"}, "grant_credit_cents": {"description": "Those days as a credit on the next bill.", "title": "Grant Credit Cents", "type": "integer"}, "grant_days_left": {"description": "Unused days of a referral grant that ends now.", "title": "Grant Days Left", "type": "integer"}, "next_bill_at": {"title": "Next Bill At", "type": "string"}, "next_bill_cents": {"description": "The full price less the grant credit.", "title": "Next Bill Cents", "type": "integer"}, "referral_discount_percent": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Percent off the first payment. Null when no code applies.", "title": "Referral Discount Percent"}}, "required": ["full_price_cents", "referral_discount_percent", "discount_cents", "amount_today_cents", "grant_days_left", "grant_credit_cents", "next_bill_at", "next_bill_cents"], "title": "CheckoutPreviewResponse", "type": "object"}, "CheckoutRequest": {"examples": [{"price_id": "e20b39bd-9326-5178-9074-9c31733f3a2f"}], "properties": {"price_id": {"description": "An active price from `GET /products`.", "format": "uuid", "title": "Price Id", "type": "string"}, "return_to": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "A path on this site to send the reader back to after payment, such as `/en/articles/x`. It is added to the success page URL as the `return_to` query parameter. Must start with one `/`; another host or a scheme is refused.", "title": "Return To"}}, "required": ["price_id"], "title": "CheckoutRequest", "type": "object"}, "CheckoutSessionResponse": {"description": "Send the reader to `url`. The subscription exists only after the payment webhook.", "examples": [{"expires_at": "2026-11-04T14:00:00Z", "id": "cs_test_a1B2c3D4e5F6g7H8", "url": "https://checkout.stripe.com/c/pay/cs_test_a1B2c3D4e5F6g7H8"}], "properties": {"expires_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When the payment page stops working. Null when it does not expire.", "title": "Expires At"}, "id": {"description": "The provider's checkout session ID.", "title": "Id", "type": "string"}, "url": {"description": "The hosted payment page. Send the reader here.", "title": "Url", "type": "string"}}, "required": ["id", "url"], "title": "CheckoutSessionResponse", "type": "object"}, "ClaimReferrerRequest": {"examples": [{"code": "RENZO-A7K2"}], "properties": {"code": {"description": "The referral code of the friend who invited the caller.", "maxLength": 32, "minLength": 1, "title": "Code", "type": "string"}}, "required": ["code"], "title": "ClaimReferrerRequest", "type": "object"}, "ConnectTicketResponse": {"description": "The single-use link that ties a chat to the caller's account.", "examples": [{"channel": "telegram", "deep_link": "https://t.me/RenzoAlertsBot?start=Zk3p9QxT2mVw", "expires_at": "2026-11-04T13:40:00Z"}], "properties": {"channel": {"description": "The channel to connect, for example `telegram`.", "title": "Channel", "type": "string"}, "deep_link": {"description": "Open this to hand the one-time token to the bot.", "title": "Deep Link", "type": "string"}, "expires_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "After this the link stops working and a new one is needed.", "title": "Expires At"}}, "required": ["channel", "deep_link", "expires_at"], "title": "ConnectTicketResponse", "type": "object"}, "ConnectionResponse": {"description": "One app that can act for the reader. Only AI clients in v1.", "examples": [{"client_id": "dcr_8f2a91c4e7b3", "created_at": "2026-10-20T08:00:00Z", "id": "02c91c24-eb6c-5972-9b2b-be598e4f29df", "kind": "ai_client", "last_used_at": "2026-11-04T13:30:00Z", "name": "Claude", "scopes": ["renzo.read", "renzo.alerts"]}], "properties": {"client_id": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The app's identifier. Null when it has none.", "title": "Client Id"}, "created_at": {"title": "Created At", "type": "string"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "kind": {"const": "ai_client", "default": "ai_client", "description": "The type of app. Only `ai_client` for now.", "title": "Kind", "type": "string"}, "last_used_at": {"description": "When the app last acted for the reader.", "title": "Last Used At", "type": "string"}, "name": {"description": "The name the app gives itself.", "title": "Name", "type": "string"}, "scopes": {"description": "What the app may do, for example `renzo.read`.", "items": {"type": "string"}, "title": "Scopes", "type": "array"}}, "required": ["id", "name", "scopes", "created_at", "last_used_at"], "title": "ConnectionResponse", "type": "object"}, "ContentAccess": {"description": "What the caller may receive for one article.", "enum": ["full", "preview", "sign_in_required"], "title": "ContentAccess", "type": "string"}, "CursorPageResponse_ArticleSummaryResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/ArticleSummaryResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[ArticleSummaryResponse]", "type": "object"}, "CursorPageResponse_ConnectionResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/ConnectionResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[ConnectionResponse]", "type": "object"}, "CursorPageResponse_CustomerOrderResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/CustomerOrderResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[CustomerOrderResponse]", "type": "object"}, "CursorPageResponse_EconReleaseResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/EconReleaseResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[EconReleaseResponse]", "type": "object"}, "CursorPageResponse_FeedbackResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/FeedbackResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[FeedbackResponse]", "type": "object"}, "CursorPageResponse_FuturesRollResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/FuturesRollResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[FuturesRollResponse]", "type": "object"}, "CursorPageResponse_IndexDividendResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/IndexDividendResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[IndexDividendResponse]", "type": "object"}, "CursorPageResponse_MarketBarResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/MarketBarResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[MarketBarResponse]", "type": "object"}, "CursorPageResponse_MarketHolidayResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/MarketHolidayResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[MarketHolidayResponse]", "type": "object"}, "CursorPageResponse_MarketQuoteResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/MarketQuoteResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[MarketQuoteResponse]", "type": "object"}, "CursorPageResponse_NotificationTypeResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/NotificationTypeResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[NotificationTypeResponse]", "type": "object"}, "CursorPageResponse_PriceAlertFireResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/PriceAlertFireResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[PriceAlertFireResponse]", "type": "object"}, "CursorPageResponse_PriceAlertResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/PriceAlertResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[PriceAlertResponse]", "type": "object"}, "CursorPageResponse_PublicProductResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/PublicProductResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[PublicProductResponse]", "type": "object"}, "CursorPageResponse_StockDividendResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/StockDividendResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[StockDividendResponse]", "type": "object"}, "CursorPageResponse_SymbolResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/SymbolResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[SymbolResponse]", "type": "object"}, "CursorPageResponse_TagResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/TagResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[TagResponse]", "type": "object"}, "CursorPageResponse_WatchlistResponse_": {"properties": {"has_more": {"description": "Whether a further page exists.", "title": "Has More", "type": "boolean"}, "items": {"description": "This page of results, in the endpoint's sort order.", "items": {"$ref": "#/components/schemas/WatchlistResponse"}, "title": "Items", "type": "array"}, "limit": {"description": "Page size that was applied.", "title": "Limit", "type": "integer"}, "next_cursor": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Token for the next page. Null on the last cursor page or in numbered mode.", "title": "Next Cursor"}, "page": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Actual numbered page, starting at one.", "title": "Page"}, "page_size": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page size that was applied.", "title": "Page Size"}, "total": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Filtered row count in numbered mode.", "title": "Total"}, "total_pages": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Numbered page count; at least one.", "title": "Total Pages"}}, "required": ["items", "has_more", "limit"], "title": "CursorPageResponse[WatchlistResponse]", "type": "object"}, "CustomerBillingViewResponse": {"description": "Your subscription and one cursor-paginated order page.", "examples": [{"orders": {"has_more": false, "items": [{"amount_cents": 1900, "created_at": "2026-11-04T13:30:00Z", "currency": "USD", "id": "1dfc79cc-e393-582b-8d31-95630e266a46", "interval": "month", "paid_at": "2026-11-04T13:30:00Z", "payments": [{"amount_cents": 1900, "created_at": "2026-11-04T13:30:00Z", "currency": "USD", "id": "e0297886-e69a-5310-8dc7-b747c68e51cf", "order_id": "1dfc79cc-e393-582b-8d31-95630e266a46", "payment_method": "card", "provider": "stripe", "refunded_cents": 0, "refunds": [], "status": "succeeded", "succeeded_at": "2026-11-04T13:30:00Z", "updated_at": "2026-11-04T13:30:00Z", "user_id": "eca8506d-1dfa-56a2-8765-96305e99f89c"}], "period_end": "2026-11-04T13:30:00Z", "period_start": "2026-10-04T13:30:00Z", "price_id": "e20b39bd-9326-5178-9074-9c31733f3a2f", "product_id": "52108830-cd62-51b4-9ce3-f0051ed42666", "product_name": "Premium", "provider": "stripe", "status": "paid", "subscription_id": "cf4b1077-d871-5ff7-82f3-9a9bbe9514d3", "subtotal_cents": 1900, "tax_cents": 0, "total_cents": 1900, "updated_at": "2026-11-04T13:30:00Z", "user_id": "eca8506d-1dfa-56a2-8765-96305e99f89c"}], "limit": 20}, "subscription": {"amount_cents": 1900, "cancel_at_period_end": false, "currency": "USD", "current_period_end": "2026-11-04T13:30:00Z", "current_period_start": "2026-10-04T13:30:00Z", "id": "cf4b1077-d871-5ff7-82f3-9a9bbe9514d3", "interval": "month", "price_id": "e20b39bd-9326-5178-9074-9c31733f3a2f", "product_code": "premium", "referral_grant": false, "source": "provider", "started_at": "2026-10-04T13:30:00Z", "status": "active", "user_id": "eca8506d-1dfa-56a2-8765-96305e99f89c"}}], "properties": {"orders": {"$ref": "#/components/schemas/CursorPageResponse_CustomerOrderResponse_"}, "subscription": {"anyOf": [{"$ref": "#/components/schemas/CustomerSubscriptionResponse"}, {"type": "null"}], "description": "Null when the caller has no subscription."}}, "required": ["subscription", "orders"], "title": "CustomerBillingViewResponse", "type": "object"}, "CustomerOrderResponse": {"description": "One billing period as the payer sees it. No provider IDs.", "examples": [{"amount_cents": 1900, "created_at": "2026-11-04T13:30:00Z", "currency": "USD", "id": "1dfc79cc-e393-582b-8d31-95630e266a46", "interval": "month", "paid_at": "2026-11-04T13:30:00Z", "payments": [{"amount_cents": 1900, "created_at": "2026-11-04T13:30:00Z", "currency": "USD", "id": "e0297886-e69a-5310-8dc7-b747c68e51cf", "order_id": "1dfc79cc-e393-582b-8d31-95630e266a46", "payment_method": "card", "provider": "stripe", "refunded_cents": 0, "refunds": [], "status": "succeeded", "succeeded_at": "2026-11-04T13:30:00Z", "updated_at": "2026-11-04T13:30:00Z", "user_id": "eca8506d-1dfa-56a2-8765-96305e99f89c"}], "period_end": "2026-11-04T13:30:00Z", "period_start": "2026-10-04T13:30:00Z", "price_id": "e20b39bd-9326-5178-9074-9c31733f3a2f", "product_id": "52108830-cd62-51b4-9ce3-f0051ed42666", "product_name": "Premium", "provider": "stripe", "status": "paid", "subscription_id": "cf4b1077-d871-5ff7-82f3-9a9bbe9514d3", "subtotal_cents": 1900, "tax_cents": 0, "total_cents": 1900, "updated_at": "2026-11-04T13:30:00Z", "user_id": "eca8506d-1dfa-56a2-8765-96305e99f89c"}], "properties": {"amount_cents": {"description": "The plan price for the period, in cents.", "title": "Amount Cents", "type": "integer"}, "created_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created At"}, "currency": {"description": "ISO currency code, for example USD.", "title": "Currency", "type": "string"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "interval": {"description": "The billing period: `month` or `year`.", "title": "Interval", "type": "string"}, "paid_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When the order was paid. Null until then.", "title": "Paid At"}, "payments": {"items": {"$ref": "#/components/schemas/CustomerPaymentResponse"}, "title": "Payments", "type": "array"}, "period_end": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "End of the period this order pays for.", "title": "Period End"}, "period_start": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Start of the period this order pays for.", "title": "Period Start"}, "price_id": {"format": "uuid", "title": "Price Id", "type": "string"}, "product_id": {"format": "uuid", "title": "Product Id", "type": "string"}, "product_name": {"title": "Product Name", "type": "string"}, "provider": {"title": "Provider", "type": "string"}, "status": {"description": "`pending`, `paid`, `failed`, `void`, `refunded` or `partially_refunded`.", "title": "Status", "type": "string"}, "subscription_id": {"format": "uuid", "title": "Subscription Id", "type": "string"}, "subtotal_cents": {"description": "The amount before tax, in cents.", "title": "Subtotal Cents", "type": "integer"}, "tax_cents": {"description": "Tax in cents.", "title": "Tax Cents", "type": "integer"}, "total_cents": {"description": "What the reader pays, with tax, in cents.", "title": "Total Cents", "type": "integer"}, "updated_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Updated At"}, "user_id": {"format": "uuid", "title": "User Id", "type": "string"}}, "required": ["id", "user_id", "subscription_id", "product_id", "price_id", "product_name", "amount_cents", "currency", "interval", "subtotal_cents", "tax_cents", "total_cents", "period_start", "period_end", "status", "provider", "created_at", "updated_at"], "title": "CustomerOrderResponse", "type": "object"}, "CustomerPaymentResponse": {"description": "One charge attempt as the payer sees it. No provider IDs.", "properties": {"amount_cents": {"description": "The amount of this charge in cents.", "title": "Amount Cents", "type": "integer"}, "created_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created At"}, "currency": {"description": "ISO currency code, for example USD.", "title": "Currency", "type": "string"}, "failed_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When the payment failed. Null if it did not.", "title": "Failed At"}, "failure_code": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The provider's reason code. Set when the payment failed.", "title": "Failure Code"}, "failure_message": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "A readable reason. Set when the payment failed.", "title": "Failure Message"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "order_id": {"format": "uuid", "title": "Order Id", "type": "string"}, "payment_method": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The kind of payment method, for example `card`. Null when unknown.", "title": "Payment Method"}, "provider": {"title": "Provider", "type": "string"}, "refunded_cents": {"description": "The total refunded so far, in cents.", "title": "Refunded Cents", "type": "integer"}, "refunds": {"items": {"$ref": "#/components/schemas/CustomerRefundResponse"}, "title": "Refunds", "type": "array"}, "status": {"description": "`pending`, `succeeded` or `failed`.", "title": "Status", "type": "string"}, "succeeded_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When the payment went through. Null until then.", "title": "Succeeded At"}, "updated_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Updated At"}, "user_id": {"format": "uuid", "title": "User Id", "type": "string"}}, "required": ["id", "order_id", "user_id", "amount_cents", "currency", "status", "refunded_cents", "provider", "created_at", "updated_at"], "title": "CustomerPaymentResponse", "type": "object"}, "CustomerRefundResponse": {"description": "A refund as the payer sees it. No note, staff ID or provider ID.", "properties": {"amount_cents": {"title": "Amount Cents", "type": "integer"}, "created_at": {"title": "Created At", "type": "string"}, "currency": {"title": "Currency", "type": "string"}, "status": {"title": "Status", "type": "string"}}, "required": ["amount_cents", "currency", "status", "created_at"], "title": "CustomerRefundResponse", "type": "object"}, "CustomerSubscriptionResponse": {"description": "A subscription as its owner sees it. No staff identifiers.", "properties": {"amount_cents": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "The price in cents. Null for a grant.", "title": "Amount Cents"}, "cancel_at_period_end": {"description": "True when the plan ends at the period end and will not renew.", "title": "Cancel At Period End", "type": "boolean"}, "cancelled_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When the plan was cancelled. Null if it was not.", "title": "Cancelled At"}, "currency": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "ISO currency code, for example USD.", "title": "Currency"}, "current_period_end": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "End of the paid period. Null for a grant with no end date.", "title": "Current Period End"}, "current_period_start": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Start of the paid period.", "title": "Current Period Start"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "interval": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The billing period: `month` or `year`. Null for a grant.", "title": "Interval"}, "price_id": {"anyOf": [{"format": "uuid", "type": "string"}, {"type": "null"}], "description": "The price being paid. Null for a grant.", "title": "Price Id"}, "product_code": {"title": "Product Code", "type": "string"}, "referral_grant": {"default": false, "description": "A hand grant earned by referring. A purchase ends it.", "title": "Referral Grant", "type": "boolean"}, "source": {"description": "`provider` for a paid plan, `manual` for a grant.", "title": "Source", "type": "string"}, "started_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Started At"}, "status": {"description": "`trialing`, `active`, `past_due` or `cancelled`.", "title": "Status", "type": "string"}, "user_id": {"format": "uuid", "title": "User Id", "type": "string"}}, "required": ["id", "user_id", "product_code", "status", "source", "started_at", "cancel_at_period_end"], "title": "CustomerSubscriptionResponse", "type": "object"}, "CustomerTokenPairResponse": {"description": "Bearer credentials for the customer surface. The refresh token is single-use,\nand replaying a spent one revokes the session.", "examples": [{"access_token": "eyJhbGciOiJIUzI1NiIs...example", "expires_at": "2026-11-04T13:45:00Z", "expires_in": 900, "refresh_expires_at": "2026-12-04T13:30:00Z", "refresh_token": "eyJhbGciOiJIUzI1NiIs...refresh-example", "token_type": "Bearer"}], "properties": {"access_token": {"description": "Send it as `Authorization: Bearer <token>`.", "title": "Access Token", "type": "string"}, "expires_at": {"description": "When the access token stops working, in UTC.", "title": "Expires At", "type": "string"}, "expires_in": {"description": "Access token lifetime in seconds.", "title": "Expires In", "type": "integer"}, "refresh_expires_at": {"description": "When the refresh token stops working, in UTC.", "title": "Refresh Expires At", "type": "string"}, "refresh_token": {"description": "Trade it for a new token pair. It works once.", "title": "Refresh Token", "type": "string"}, "token_type": {"default": "Bearer", "title": "Token Type", "type": "string"}}, "required": ["access_token", "refresh_token", "expires_in", "expires_at", "refresh_expires_at"], "title": "CustomerTokenPairResponse", "type": "object"}, "DefaultWatchlistResponse": {"description": "Symbols use the watchlist item shape, so a client renders both lists alike.", "examples": [{"asset_class": "equity", "kind": "winners", "symbols": [{"asset_class": "equity", "display_name": "NVIDIA Corp.", "exchange": "NASDAQ", "id": "a24ff11d-4ac9-5506-9aba-5598104ae499", "is_active": true, "slug": "nvda-nasdaq", "ticker": "NVDA"}, {"asset_class": "equity", "display_name": "Apple Inc.", "exchange": "NASDAQ", "id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "is_active": true, "slug": "aapl-nasdaq", "ticker": "AAPL"}]}], "properties": {"asset_class": {"anyOf": [{"enum": ["equity", "index", "forex", "crypto", "commodity", "bond", "etf", "future", "option"], "type": "string"}, {"type": "null"}], "description": "Null for `popular`.", "title": "Asset Class"}, "kind": {"description": "`popular`, `most_active`, `winners` or `losers`.", "enum": ["popular", "most_active", "winners", "losers"], "title": "Kind", "type": "string"}, "symbols": {"items": {"$ref": "#/components/schemas/SymbolRef"}, "title": "Symbols", "type": "array"}}, "required": ["kind", "asset_class", "symbols"], "title": "DefaultWatchlistResponse", "type": "object"}, "Direction": {"enum": ["above", "below"], "title": "Direction", "type": "string"}, "DividendConstituentResponse": {"properties": {"amount": {"description": "Gross cash dividend per share.", "pattern": "^-?\\d+(\\.\\d+)?$", "title": "Amount", "type": "string"}, "currency": {"description": "ISO 4217 code. Only amounts in the index currency count in the points.", "title": "Currency", "type": "string"}, "dividend_type_code": {"enum": ["regular", "special", "irregular", "unknown"], "title": "Dividend Type Code", "type": "string"}, "franking": {"anyOf": [{"pattern": "^-?\\d+(\\.\\d+)?$", "type": "string"}, {"type": "null"}], "description": "Australia only: the franked share of the dividend, 0 to 1.", "title": "Franking"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The catalog name for a US stock; the fund file's name for other markets.", "title": "Name"}, "priced": {"description": "False when no close or an amount in another currency kept it out.", "title": "Priced", "type": "boolean"}, "special": {"description": "A special dividend; brokers may adjust it differently.", "title": "Special", "type": "boolean"}, "symbol_slug": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The catalog symbol, when Renzo lists it.", "title": "Symbol Slug"}, "ticker": {"description": "The stock's trading code.", "title": "Ticker", "type": "string"}}, "required": ["ticker", "name", "symbol_slug", "amount", "currency", "dividend_type_code", "special", "priced", "franking"], "title": "DividendConstituentResponse", "type": "object"}, "EconCalendarFeedFiltersRequest": {"additionalProperties": false, "examples": [{"countries": ["US", "EU"], "importances": ["high", "medium"], "locale": "en"}], "properties": {"countries": {"description": "Country codes to include. Empty means every country.", "items": {"pattern": "^[A-Za-z]{2,8}$", "type": "string"}, "maxItems": 100, "title": "Countries", "type": "array"}, "importances": {"description": "Importance levels to include. Empty means every level.", "items": {"enum": ["none", "low", "medium", "high"], "type": "string"}, "maxItems": 4, "title": "Importances", "type": "array"}, "locale": {"anyOf": [{"maxLength": 16, "type": "string"}, {"type": "null"}], "description": "Language of the file, as the public tag or the engine code. Omit it to keep the saved one.", "title": "Locale"}}, "title": "EconCalendarFeedFiltersRequest", "type": "object"}, "EconCalendarFeedResponse": {"examples": [{"countries": ["US", "EU"], "feed_url": "https://api.uat.renzo-digital.com/api/v1/economic-calendar/feed/Xk29fQ7mTp3LwZ8a.ics", "importances": ["high"], "locale": "en"}], "properties": {"countries": {"description": "Empty means every country.", "items": {"type": "string"}, "title": "Countries", "type": "array"}, "feed_url": {"description": "Secret. Anyone with it can read the feed.", "title": "Feed Url", "type": "string"}, "importances": {"description": "Empty means every importance.", "items": {"enum": ["none", "low", "medium", "high"], "type": "string"}, "title": "Importances", "type": "array"}, "locale": {"description": "Language of the file's titles and labels.", "enum": ["en", "zh-Hans", "zh-Hant", "ru", "kk", "th"], "title": "Locale", "type": "string"}}, "required": ["feed_url", "countries", "importances", "locale"], "title": "EconCalendarFeedResponse", "type": "object"}, "EconCountriesResponse": {"examples": [{"countries": ["AU", "CA", "CN", "DE", "EU", "GB", "JP", "US"]}], "properties": {"countries": {"description": "Codes with at least one visible Release, sorted.", "items": {"type": "string"}, "title": "Countries", "type": "array"}}, "required": ["countries"], "title": "EconCountriesResponse", "type": "object"}, "EconIndicatorRef": {"description": "Values are stored fully scaled; `scale` says how to show them, for example B.", "examples": [{"category": "labour", "country": "US", "id": "8ca8c52f-1867-5d5d-bdfd-8e6321eed7e8", "period_granularity": "month", "scale": "K", "title": "Nonfarm Payrolls", "title_locale": "en"}], "properties": {"category": {"anyOf": [{"enum": ["prices", "labour", "gdp", "business", "consumer", "housing", "trade", "money", "government", "bonds", "markets", "energy"], "type": "string"}, {"type": "null"}], "description": "The topic group, for example `labour` or `prices`. Null when unknown.", "title": "Category"}, "country": {"description": "The country code, for example US. EU for the euro area.", "title": "Country", "type": "string"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "period_granularity": {"anyOf": [{"enum": ["day", "week", "month", "quarter", "year"], "type": "string"}, {"type": "null"}], "description": "How long one `reference_period` is. Null when no Source says.", "title": "Period Granularity"}, "scale": {"anyOf": [{"enum": ["K", "M", "B", "T"], "type": "string"}, {"type": "null"}], "title": "Scale"}, "title": {"title": "Title", "type": "string"}, "title_locale": {"description": "The language `title` is really in. English when no translation exists.", "enum": ["en", "zh-Hans", "zh-Hant", "ru", "kk", "th"], "title": "Title Locale", "type": "string"}, "unit": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "\"%\" or an ISO currency code, for example USD.", "title": "Unit"}}, "required": ["id", "title", "title_locale", "country", "category", "unit", "scale", "period_granularity"], "title": "EconIndicatorRef", "type": "object"}, "EconReleaseResponse": {"examples": [{"forecast": 185000, "id": "d36efe59-2724-5241-b8c6-01e51cac7942", "importance": "high", "indicator": {"category": "labour", "country": "US", "id": "8ca8c52f-1867-5d5d-bdfd-8e6321eed7e8", "period_granularity": "month", "scale": "K", "title": "Nonfarm Payrolls", "title_locale": "en"}, "previous": 254000, "reference_period": "2026-10", "scheduled_at": "2026-11-06T13:30:00Z", "time_precision": "exact"}], "properties": {"actual": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Null until the value is confirmed and its publish time has passed.", "title": "Actual"}, "forecast": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "The consensus forecast. Null when none exists.", "title": "Forecast"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "importance": {"description": "How much the figure usually moves markets: `none`, `low`, `medium` or `high`.", "enum": ["none", "low", "medium", "high"], "title": "Importance", "type": "string"}, "indicator": {"$ref": "#/components/schemas/EconIndicatorRef"}, "previous": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "The figure of the last period. Null when none exists.", "title": "Previous"}, "reference_period": {"description": "The period the figure covers, for example 2026-10 or 2026-Q3.", "title": "Reference Period", "type": "string"}, "revised": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "A later revision of the actual.", "title": "Revised"}, "scheduled_at": {"description": "When the figure is due, in UTC.", "format": "date-time", "title": "Scheduled At", "type": "string"}, "time_precision": {"description": "`exact` has a known time, `date_only` only a day, `tentative` may move.", "enum": ["exact", "date_only", "tentative"], "title": "Time Precision", "type": "string"}}, "required": ["id", "indicator", "reference_period", "scheduled_at", "time_precision", "importance", "forecast", "previous", "actual", "revised"], "title": "EconReleaseResponse", "type": "object"}, "EmailChangeRequest": {"examples": [{"email": "new.address@example.com"}], "properties": {"email": {"description": "The new address. A code is sent to it.", "format": "email", "title": "Email", "type": "string"}}, "required": ["email"], "title": "EmailChangeRequest", "type": "object"}, "EmailUnsubscribeRequest": {"examples": [{"token": "eyJhbGciOi...example"}], "properties": {"token": {"description": "From the unsubscribe link.", "maxLength": 256, "minLength": 1, "title": "Token", "type": "string"}}, "required": ["token"], "title": "EmailUnsubscribeRequest", "type": "object"}, "EmailUnsubscribeResponse": {"description": "What the link turned off. No login is needed, so no account data.\n\nThe name fields are null when the type or the alert no longer exists.", "examples": [{"kind": "digest", "type_key": "market.pre_market_summary", "type_label": "Pre-market summary"}], "properties": {"alert_id": {"anyOf": [{"format": "uuid", "type": "string"}, {"type": "null"}], "description": "The price alert turned off. Null when it no longer exists.", "title": "Alert Id"}, "kind": {"description": "`digest` for a summary email, `price_alert` for an alert email.", "enum": ["digest", "price_alert"], "title": "Kind", "type": "string"}, "ticker": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The ticker of that alert. Null when it no longer exists.", "title": "Ticker"}, "type_key": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The notification type turned off. Null when it no longer exists.", "title": "Type Key"}, "type_label": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The name of that type. Null when it no longer exists.", "title": "Type Label"}}, "required": ["kind"], "title": "EmailUnsubscribeResponse", "type": "object"}, "EntitlementResponse": {"description": "What the caller may do. The client reads its limits from here rather than\nholding a copy of them.", "examples": [{"capabilities": {"content.tier": "premium", "markets.data_download": true, "mcp.full_text": true, "notifications.whatsapp": true, "price_alerts.max_active": 50, "watchlist.max_lists": 10}, "product_code": "premium"}], "properties": {"capabilities": {"additionalProperties": true, "description": "Each limit of the plan, and the paid-access keys any paid plan opens.", "title": "Capabilities", "type": "object"}, "product_code": {"description": "The plan the caller is on, for example `free` or `premium`.", "title": "Product Code", "type": "string"}}, "required": ["product_code", "capabilities"], "title": "EntitlementResponse", "type": "object"}, "FeedbackCreateRequest": {"examples": [{"contact_ok": true, "kind": "idea", "locale": "en", "message": "Please add a dark mode.", "page_url": "/en/pricing"}], "properties": {"contact_ok": {"default": true, "description": "Staff may email the account address.", "title": "Contact Ok", "type": "boolean"}, "kind": {"default": "other", "description": "`bug`, `idea` or `other`.", "enum": ["bug", "idea", "other"], "title": "Kind", "type": "string"}, "locale": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The UI locale. Dropped if unknown.", "title": "Locale"}, "message": {"maxLength": 4000, "minLength": 1, "title": "Message", "type": "string"}, "page_url": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Path the user came from. Dropped unless it starts with `/`.", "title": "Page Url"}}, "required": ["message"], "title": "FeedbackCreateRequest", "type": "object"}, "FeedbackResponse": {"description": "The caller's own item. It never carries staff notes or the browser string.", "examples": [{"created_at": "2026-11-17T09:00:00Z", "id": "6ca4458e-77ae-5441-b992-1b389fe10186", "kind": "idea", "message": "Please add a dark mode.", "status": "new", "updated_at": "2026-11-17T09:00:00Z"}], "properties": {"created_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created At"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "kind": {"enum": ["bug", "idea", "other"], "title": "Kind", "type": "string"}, "message": {"title": "Message", "type": "string"}, "replied_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Replied At"}, "reply": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Reply"}, "status": {"enum": ["new", "reviewed", "planned", "done", "closed"], "title": "Status", "type": "string"}, "updated_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Updated At"}}, "required": ["id", "kind", "message", "status", "reply", "replied_at", "created_at", "updated_at"], "title": "FeedbackResponse", "type": "object"}, "FireDeliveryResponse": {"properties": {"channel": {"title": "Channel", "type": "string"}, "status": {"description": "sent, sending (queued or retrying), failed for good, or skipped (not sent).", "enum": ["sent", "sending", "failed", "skipped"], "title": "Status", "type": "string"}}, "required": ["channel", "status"], "title": "FireDeliveryResponse", "type": "object"}, "FuturesRollResponse": {"examples": [{"as_of": "2026-11-03", "category_code": "energy", "expiring_contract": "CLZ6", "expiring_month": "2026-12", "expiring_price": "61.42", "gap": "-0.35", "id": "CL:CLZ6-CLF7", "last_trade_date": "2026-11-20", "next_contract": "CLF7", "next_month": "2027-01", "next_price": "61.07", "price_unit": "USD per barrel", "price_unit_code": "usd_per_barrel", "roll_date": "2026-11-19", "root": "CL", "root_name": "WTI Crude Oil", "status": "indicative", "venue": "XNYM"}], "properties": {"as_of": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "The session the gap comes from.", "title": "As Of"}, "category_code": {"description": "Instrument group. Clients translate it.", "enum": ["indices", "energy", "metals", "grains", "bonds", "fx", "softs"], "title": "Category Code", "type": "string"}, "expiring_contract": {"description": "Ticker of the contract that expires, e.g. CLZ6.", "title": "Expiring Contract", "type": "string"}, "expiring_month": {"description": "Contract month, YYYY-MM.", "title": "Expiring Month", "type": "string"}, "expiring_price": {"anyOf": [{"pattern": "^-?\\d+(\\.\\d+)?$", "type": "string"}, {"type": "null"}], "description": "Settlement price of the expiring contract on `as_of`. Null when not priced.", "title": "Expiring Price"}, "first_notice_date": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "First notice day of a physically delivered root. Null when none applies.", "title": "First Notice Date"}, "gap": {"anyOf": [{"pattern": "^-?\\d+(\\.\\d+)?$", "type": "string"}, {"type": "null"}], "description": "Estimate: next minus expiring settlement on `as_of`. Null when not priced.", "title": "Gap"}, "id": {"description": "Stable. Root, expiring and next contract, e.g. CL:CLZ6-CLF7.", "title": "Id", "type": "string"}, "last_trade_date": {"description": "The expiring contract's last trading day.", "format": "date", "title": "Last Trade Date", "type": "string"}, "next_contract": {"description": "Ticker of the contract the roll moves to, for example CLF7.", "title": "Next Contract", "type": "string"}, "next_month": {"description": "Contract month, YYYY-MM.", "title": "Next Month", "type": "string"}, "next_price": {"anyOf": [{"pattern": "^-?\\d+(\\.\\d+)?$", "type": "string"}, {"type": "null"}], "description": "Settlement price of the next contract on `as_of`. Null when not priced.", "title": "Next Price"}, "price_unit": {"description": "The unit in English. Clients translate `price_unit_code`.", "title": "Price Unit", "type": "string"}, "price_unit_code": {"enum": ["usd_per_barrel", "usd_per_mmbtu", "usd_per_pound", "usd_per_troy_ounce", "index_points", "points_of_par", "us_cents_per_bushel", "usd_per_eur", "usd_per_metric_ton", "us_cents_per_pound"], "title": "Price Unit Code", "type": "string"}, "roll_date": {"description": "A typical roll day: one CME business day before the earlier of the last trade and the first notice. Each broker picks its own day.", "format": "date", "title": "Roll Date", "type": "string"}, "root": {"description": "The product code, for example CL.", "title": "Root", "type": "string"}, "root_name": {"description": "The product name, for example WTI Crude Oil.", "title": "Root Name", "type": "string"}, "status": {"description": "`final`: priced on the session before the roll day. `indicative`: the latest common session so far. `scheduled`: later rolls, not priced yet. `unavailable`: a past roll the data does not cover.", "enum": ["final", "indicative", "scheduled", "unavailable"], "title": "Status", "type": "string"}, "venue": {"description": "Exchange MIC code, e.g. XNYM.", "title": "Venue", "type": "string"}}, "required": ["id", "root", "root_name", "category_code", "venue", "expiring_contract", "expiring_month", "next_contract", "next_month", "last_trade_date", "first_notice_date", "roll_date", "gap", "expiring_price", "next_price", "price_unit", "price_unit_code", "status", "as_of"], "title": "FuturesRollResponse", "type": "object"}, "FuturesRootResponse": {"properties": {"category_code": {"description": "Instrument group. Clients translate it.", "enum": ["indices", "energy", "metals", "grains", "bonds", "fx", "softs"], "title": "Category Code", "type": "string"}, "code": {"description": "The CME product code, e.g. CL.", "title": "Code", "type": "string"}, "delivery": {"description": "`cash` or `physical` settlement.", "enum": ["cash", "physical"], "title": "Delivery", "type": "string"}, "first_notice": {"description": "True when the first notice day can set the roll.", "title": "First Notice", "type": "boolean"}, "name": {"description": "The product name, for example WTI Crude Oil.", "title": "Name", "type": "string"}, "price_unit": {"description": "The unit in English. Clients translate `price_unit_code`.", "title": "Price Unit", "type": "string"}, "price_unit_code": {"enum": ["usd_per_barrel", "usd_per_mmbtu", "usd_per_pound", "usd_per_troy_ounce", "index_points", "points_of_par", "us_cents_per_bushel", "usd_per_eur", "usd_per_metric_ton", "us_cents_per_pound"], "title": "Price Unit Code", "type": "string"}, "roll_months": {"description": "Contract month letters the calendar follows.", "items": {"type": "string"}, "title": "Roll Months", "type": "array"}, "venue": {"description": "Exchange MIC code, for example XNYM.", "title": "Venue", "type": "string"}}, "required": ["code", "name", "category_code", "venue", "delivery", "roll_months", "first_notice", "price_unit", "price_unit_code"], "title": "FuturesRootResponse", "type": "object"}, "FuturesRootsResponse": {"examples": [{"instruments": [{"category_code": "energy", "code": "CL", "delivery": "physical", "first_notice": false, "name": "WTI Crude Oil", "price_unit": "USD per barrel", "price_unit_code": "usd_per_barrel", "roll_months": ["F", "G", "H", "J", "K", "M", "N", "Q", "U", "V", "X", "Z"], "venue": "XNYM"}]}], "properties": {"instruments": {"items": {"$ref": "#/components/schemas/FuturesRootResponse"}, "title": "Instruments", "type": "array"}}, "required": ["instruments"], "title": "FuturesRootsResponse", "type": "object"}, "IdentityListResponse": {"examples": [{"items": [{"created_at": "2026-10-04T13:30:00Z", "email": "reader@gmail.com", "last_login_at": "2026-11-04T13:30:00Z", "provider": "google"}]}], "properties": {"items": {"items": {"$ref": "#/components/schemas/IdentityResponse"}, "title": "Items", "type": "array"}}, "required": ["items"], "title": "IdentityListResponse", "type": "object"}, "IdentityResponse": {"examples": [{"created_at": "2026-10-04T13:30:00Z", "email": "reader@gmail.com", "last_login_at": "2026-11-04T13:30:00Z", "provider": "google"}], "properties": {"created_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When it was linked, in UTC.", "title": "Created At"}, "email": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "What the provider said when it was linked.", "title": "Email"}, "last_login_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When it last signed in. Null if it never has.", "title": "Last Login At"}, "provider": {"$ref": "#/components/schemas/Provider"}}, "required": ["provider", "email", "created_at"], "title": "IdentityResponse", "type": "object"}, "IndexDividendResponse": {"examples": [{"adjustment_session": "2026-11-05", "as_of": "2026-11-03", "constituent_count": 2, "constituents": [{"amount": "0.26", "currency": "USD", "dividend_type_code": "regular", "name": "Apple Inc.", "priced": true, "special": false, "symbol_slug": "aapl-nasdaq", "ticker": "AAPL"}, {"amount": "0.91", "currency": "USD", "dividend_type_code": "regular", "name": "Microsoft Corp.", "priced": true, "special": false, "symbol_slug": "msft-nasdaq", "ticker": "MSFT"}], "currency": "USD", "ex_date": "2026-11-06", "has_special": false, "id": "US500:2026-11-06", "index_code": "US500", "index_name": "S&P 500", "level_basis_code": "cash_index", "points": "0.8421", "status": "estimate"}], "properties": {"adjustment_session": {"description": "The session before the ex-date. Brokers adjust after its cash close.", "format": "date", "title": "Adjustment Session", "type": "string"}, "as_of": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "The session the closes and the level come from.", "title": "As Of"}, "constituent_count": {"description": "How many stocks go ex that day.", "title": "Constituent Count", "type": "integer"}, "constituents": {"description": "Stocks that go ex that day, largest contribution first.", "items": {"$ref": "#/components/schemas/DividendConstituentResponse"}, "title": "Constituents", "type": "array"}, "currency": {"description": "ISO 4217 code of the index's stocks.", "title": "Currency", "type": "string"}, "ex_date": {"description": "The first session the stocks trade without the dividend.", "format": "date", "title": "Ex Date", "type": "string"}, "has_special": {"description": "A special dividend is in the points. Brokers may treat it differently.", "title": "Has Special", "type": "boolean"}, "id": {"description": "Stable. Index and ex-date, e.g. US500:2026-10-23.", "title": "Id", "type": "string"}, "index_code": {"description": "The index code, for example US500.", "enum": ["US500", "US30", "USTEC", "US2000", "UK100", "AUS200", "HK50", "EU50", "NETH25", "CA60", "CN50", "GER40", "TecDE30", "MidDE50", "NOR25"], "title": "Index Code", "type": "string"}, "index_name": {"description": "The index name.", "title": "Index Name", "type": "string"}, "level_basis_code": {"anyOf": [{"enum": ["cash_index", "futures"], "type": "string"}, {"type": "null"}], "description": "`cash_index` or `futures`: what gave the index level.", "title": "Level Basis Code"}, "points": {"anyOf": [{"pattern": "^-?\\d+(\\.\\d+)?$", "type": "string"}, {"type": "null"}], "description": "Estimated gross index points that go ex. A long CFD is credited and a short is debited by this amount; brokers may net withholding tax. Null when not priced.", "title": "Points"}, "points_with_franking": {"anyOf": [{"pattern": "^-?\\d+(\\.\\d+)?$", "type": "string"}, {"type": "null"}], "description": "AUS200 only: the points with the franking credit added, as some brokers credit them. `points` stays the cash value. Null elsewhere.", "title": "Points With Franking"}, "status": {"description": "`final`: priced on the session before the ex-date. `estimate`: the latest closes so far, or some stocks unpriced. `unavailable`: no prices or index level.", "enum": ["final", "estimate", "unavailable"], "title": "Status", "type": "string"}}, "required": ["id", "index_code", "index_name", "currency", "ex_date", "points", "points_with_franking", "status", "as_of", "adjustment_session", "has_special", "constituent_count", "constituents", "level_basis_code"], "title": "IndexDividendResponse", "type": "object"}, "LatestPriceResponse": {"description": "The intraday price that price alerts read for this symbol.", "examples": [{"observed_at": "2026-11-04T15:42:10Z", "price": 187.42, "replayed": false, "source": "massive", "symbol_id": "ed6621c0-5979-526b-8ba1-452bf82b80c0"}], "properties": {"observed_at": {"description": "When the price was observed, in UTC.", "title": "Observed At", "type": "string"}, "price": {"description": "The latest intraday price.", "title": "Price", "type": "number"}, "replay": {"anyOf": [{"$ref": "#/components/schemas/SymbolReplayClockResponse"}, {"type": "null"}], "description": "The Symbol replay this price follows, outside prod only."}, "replayed": {"description": "True outside prod: the price is from a Symbol replay.", "title": "Replayed", "type": "boolean"}, "source": {"description": "The data provider the price comes from.", "title": "Source", "type": "string"}, "symbol_id": {"format": "uuid", "title": "Symbol Id", "type": "string"}}, "required": ["symbol_id", "price", "observed_at", "replayed", "source"], "title": "LatestPriceResponse", "type": "object"}, "LoginResponse": {"description": "The tokens and the account they belong to, so the client can route a\n`pending_profile` user straight to the username step.", "examples": [{"created": false, "profile": {"article_language": "en", "country": "US", "created_at": "2026-10-04T13:30:00Z", "currency": "USD", "email": "reader@example.com", "id": "eca8506d-1dfa-56a2-8765-96305e99f89c", "last_login_at": "2026-11-04T13:30:00Z", "status": "active", "timezone": "America/New_York", "ui_language": "en", "username": "marketwatcher"}, "tokens": {"access_token": "eyJhbGciOiJIUzI1NiIs...example", "expires_at": "2026-11-04T13:45:00Z", "expires_in": 900, "refresh_expires_at": "2026-12-04T13:30:00Z", "refresh_token": "eyJhbGciOiJIUzI1NiIs...refresh-example", "token_type": "Bearer"}}], "properties": {"created": {"description": "True when this login created the account.", "title": "Created", "type": "boolean"}, "profile": {"$ref": "#/components/schemas/ProfileResponse"}, "tokens": {"$ref": "#/components/schemas/CustomerTokenPairResponse"}}, "required": ["tokens", "profile", "created"], "title": "LoginResponse", "type": "object"}, "MarketBarResponse": {"description": "One trading day of a symbol. Volume is null when the provider sends none.", "examples": [{"close": 187.42, "high": 188.4, "low": 186.2, "open": 186.9, "trading_day": "2026-11-03", "volume": 52318400}], "properties": {"close": {"description": "The last price of the day.", "title": "Close", "type": "number"}, "high": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "The highest price of the day. Null when the provider sends none.", "title": "High"}, "low": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "The lowest price of the day. Null when the provider sends none.", "title": "Low"}, "open": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "The first price of the day. Null when the provider sends none.", "title": "Open"}, "trading_day": {"description": "The trading date, in the market's own time zone.", "format": "date", "title": "Trading Day", "type": "string"}, "volume": {"anyOf": [{"type": "number"}, {"type": "null"}], "title": "Volume"}}, "required": ["trading_day", "close"], "title": "MarketBarResponse", "type": "object"}, "MarketDataErrorResponse": {"description": "Stable client-safe error classification.", "properties": {"code": {"description": "A stable error code for the quote.", "title": "Code", "type": "string"}, "provider_code": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The data provider's own code. Null when none.", "title": "Provider Code"}}, "required": ["code"], "title": "MarketDataErrorResponse", "type": "object"}, "MarketHolidayResponse": {"examples": [{"close_at": "2026-11-27T18:00:00Z", "close_local": "13:00", "country": "US", "date": "2026-11-27", "estimated": false, "id": "XNYS:2026-11-27", "market": "XNYS", "market_name": "NYSE / Nasdaq", "market_name_locale": "en", "name": "Day after Thanksgiving Day", "name_locale": "en", "status": "early_close", "time_zone": "America/New_York"}], "properties": {"close_at": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "description": "The early close as a UTC time.", "title": "Close At"}, "close_local": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "HH:MM in `time_zone`, on an early close.", "title": "Close Local"}, "country": {"description": "ISO 3166 code of the exchange.", "title": "Country", "type": "string"}, "date": {"description": "The local date of the market.", "format": "date", "title": "Date", "type": "string"}, "estimated": {"description": "True when the exchange has not yet published this date. It can change.", "title": "Estimated", "type": "boolean"}, "id": {"description": "Stable. For example XNYS:2026-11-26.", "title": "Id", "type": "string"}, "market": {"description": "The exchange MIC code.", "title": "Market", "type": "string"}, "market_name": {"title": "Market Name", "type": "string"}, "market_name_locale": {"description": "The locale `market_name` is really in.", "enum": ["en", "kk", "ru", "th", "zh-Hans", "zh-Hant"], "title": "Market Name Locale", "type": "string"}, "name": {"description": "The holiday. `(observed)` when the day moved off a weekend.", "title": "Name", "type": "string"}, "name_locale": {"description": "The locale `name` is really in. English when the locale had no name.", "enum": ["en", "kk", "ru", "th", "zh-Hans", "zh-Hant"], "title": "Name Locale", "type": "string"}, "status": {"description": "The exchange's, not Juno's.", "enum": ["closed", "early_close"], "title": "Status", "type": "string"}, "time_zone": {"description": "IANA zone of the market.", "title": "Time Zone", "type": "string"}}, "required": ["id", "date", "market", "market_name", "market_name_locale", "country", "name", "name_locale", "status", "close_local", "close_at", "time_zone", "estimated"], "title": "MarketHolidayResponse", "type": "object"}, "MarketPerformanceResponse": {"description": "Percent change of the latest close against the close on or before each period start.\nNull when history is too short.", "properties": {"m1": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "One month.", "title": "M1"}, "m3": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Three months.", "title": "M3"}, "m6": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Six months.", "title": "M6"}, "w1": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "One week.", "title": "W1"}, "y1": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "One year.", "title": "Y1"}, "ytd": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Since the last close of last year.", "title": "Ytd"}}, "title": "MarketPerformanceResponse", "type": "object"}, "MarketQuoteResponse": {"description": "Catalog identity and its quote from the stored daily bars.", "examples": [{"asset_class": "equity", "daily_change": 1.31, "daily_change_percent": 0.7, "display_name": "Apple Inc.", "exchange": "NASDAQ", "fetched_at": "2026-11-04T06:15:00Z", "high": 188.4, "is_active": true, "latest_close": 187.42, "low": 186.2, "mapping": {"is_active": true, "mapping_version": "v1", "provider": "massive", "provider_symbol": "AAPL", "venue": "XNAS"}, "mapping_state": "mapped", "observation_at": "2026-11-03T21:00:00Z", "open": 186.9, "performance": {"m1": 3.4, "m3": 6.8, "m6": 12.1, "w1": 1.2, "y1": 24.5, "ytd": 18.9}, "price_scale": 2, "provider": "massive", "quote_state": "fresh", "session": {"close_at": "2026-11-04T21:00:00Z", "open_at": "2026-11-04T14:30:00Z"}, "slug": "aapl-nasdaq", "sparkline": [177.4, 175.78, 176.16, 178.54, 176.92, 177.3, 179.68, 178.06, 178.44, 180.82, 179.2, 179.58, 181.96, 180.34, 180.72, 183.1, 181.48, 181.86, 184.24, 182.62, 183.0, 185.38, 183.76, 184.14, 186.52, 184.9, 185.28, 187.66, 186.04, 186.42], "stale": false, "symbol_id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "ticker": "AAPL", "trading_day": "2026-11-03", "week52_high": 199.62, "week52_low": 164.08}], "properties": {"asset_class": {"description": "The kind of instrument, for example `equity` or `forex`. A `bond` quote is a US Treasury yield in percent.", "enum": ["equity", "index", "forex", "crypto", "commodity", "bond", "etf", "future", "option"], "title": "Asset Class", "type": "string"}, "daily_change": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Latest close minus the close before it.", "title": "Daily Change"}, "daily_change_percent": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "The daily change as a percent of the close before it.", "title": "Daily Change Percent"}, "display_name": {"title": "Display Name", "type": "string"}, "error": {"anyOf": [{"$ref": "#/components/schemas/MarketDataErrorResponse"}, {"type": "null"}], "description": "Why no quote is available. Null when there is one."}, "exchange": {"title": "Exchange", "type": "string"}, "fetched_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When Renzo last got this price, in UTC.", "title": "Fetched At"}, "high": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "High of the latest bar.", "title": "High"}, "is_active": {"title": "Is Active", "type": "boolean"}, "latest_close": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "The most recent daily close.", "title": "Latest Close"}, "low": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Low of the latest bar.", "title": "Low"}, "mapping": {"anyOf": [{"$ref": "#/components/schemas/ProviderMappingResponse"}, {"type": "null"}]}, "mapping_state": {"description": "`mapped` when a data provider supplies prices, else `unmapped`.", "enum": ["mapped", "unmapped"], "title": "Mapping State", "type": "string"}, "observation_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When the latest price was observed, in UTC.", "title": "Observation At"}, "open": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Open of the latest bar.", "title": "Open"}, "performance": {"$ref": "#/components/schemas/MarketPerformanceResponse"}, "price_scale": {"description": "Decimals a client shows for this symbol's prices.", "title": "Price Scale", "type": "integer"}, "provider": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The data provider the quote comes from. Null when there is no quote.", "title": "Provider"}, "quote_state": {"description": "`fresh`, `stale` when the price is out of date, or `unavailable`.", "enum": ["fresh", "stale", "unavailable"], "title": "Quote State", "type": "string"}, "session": {"anyOf": [{"$ref": "#/components/schemas/MarketSessionResponse"}, {"type": "null"}], "description": "The running or next trading session. Null when not known."}, "slug": {"title": "Slug", "type": "string"}, "sparkline": {"description": "Closes of the last 30 trading days, oldest first.", "items": {"type": "number"}, "title": "Sparkline", "type": "array"}, "stale": {"description": "True when the price is out of date.", "title": "Stale", "type": "boolean"}, "symbol_id": {"format": "uuid", "title": "Symbol Id", "type": "string"}, "ticker": {"title": "Ticker", "type": "string"}, "trading_day": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "The date of the latest bar.", "title": "Trading Day"}, "week52_high": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "The highest price in the last 52 weeks.", "title": "Week52 High"}, "week52_low": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "The lowest price in the last 52 weeks.", "title": "Week52 Low"}}, "required": ["symbol_id", "slug", "ticker", "exchange", "display_name", "asset_class", "is_active", "price_scale", "mapping_state", "quote_state", "performance", "sparkline", "stale"], "title": "MarketQuoteResponse", "type": "object"}, "MarketResponse": {"properties": {"code": {"description": "The exchange MIC code, for example XNYS.", "title": "Code", "type": "string"}, "country": {"description": "ISO 3166 country code of the exchange.", "title": "Country", "type": "string"}, "name": {"title": "Name", "type": "string"}, "name_locale": {"description": "The locale `name` is really in. English when the locale had no name.", "enum": ["en", "kk", "ru", "th", "zh-Hans", "zh-Hant"], "title": "Name Locale", "type": "string"}, "time_zone": {"description": "IANA time zone of the exchange, for example America/New_York.", "title": "Time Zone", "type": "string"}}, "required": ["code", "name", "name_locale", "country", "time_zone"], "title": "MarketResponse", "type": "object"}, "MarketSessionResponse": {"description": "The running session, or the next one when the market is closed.", "properties": {"close_at": {"description": "When the session closes, in UTC.", "title": "Close At", "type": "string"}, "open_at": {"description": "When the session opens, in UTC.", "title": "Open At", "type": "string"}}, "required": ["open_at", "close_at"], "title": "MarketSessionResponse", "type": "object"}, "MarketsResponse": {"examples": [{"markets": [{"code": "XNYS", "country": "US", "name": "NYSE / Nasdaq", "name_locale": "en", "time_zone": "America/New_York"}]}], "properties": {"markets": {"items": {"$ref": "#/components/schemas/MarketResponse"}, "title": "Markets", "type": "array"}}, "required": ["markets"], "title": "MarketsResponse", "type": "object"}, "Mode": {"enum": ["single", "continuous"], "title": "Mode", "type": "string"}, "MyRewardResponse": {"description": "What a friend's subscription would give the caller today. Null kind: nothing.", "properties": {"amount_cents": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "USD cents off the next bill, for a credit.", "title": "Amount Cents"}, "applies_on": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The next bill date, for a credit.", "title": "Applies On"}, "days": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Days of Pro, for a grant.", "title": "Days"}, "kind": {"anyOf": [{"enum": ["grant", "credit"], "type": "string"}, {"type": "null"}], "title": "Kind"}}, "required": ["kind", "days", "amount_cents", "applies_on"], "title": "MyRewardResponse", "type": "object"}, "MySubscriptionResponse": {"description": "The reader's live subscription. `scheduled_price` starts at `current_period_end`.", "examples": [{"cancel_at_period_end": false, "current_period_end": "2026-11-04T13:30:00Z", "current_period_start": "2026-10-04T13:30:00Z", "id": "cf4b1077-d871-5ff7-82f3-9a9bbe9514d3", "price": {"amount_cents": 1900, "currency": "USD", "id": "e20b39bd-9326-5178-9074-9c31733f3a2f", "interval": "month", "product_code": "premium", "product_id": "52108830-cd62-51b4-9ce3-f0051ed42666", "product_name": "Premium"}, "product_code": "premium", "referral_grant": false, "source": "provider", "status": "active"}], "properties": {"cancel_at_period_end": {"description": "True when the plan ends at the period end and will not renew.", "title": "Cancel At Period End", "type": "boolean"}, "current_period_end": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "End of the paid period. Null for a grant with no end date.", "title": "Current Period End"}, "current_period_start": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Start of the paid period. Null for a grant with no period.", "title": "Current Period Start"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "price": {"anyOf": [{"$ref": "#/components/schemas/SubscriptionPriceResponse"}, {"type": "null"}], "description": "Null for a hand grant."}, "product_code": {"title": "Product Code", "type": "string"}, "referral_grant": {"default": false, "description": "A hand grant earned by referring. A purchase ends it.", "title": "Referral Grant", "type": "boolean"}, "scheduled_price": {"anyOf": [{"$ref": "#/components/schemas/SubscriptionPriceResponse"}, {"type": "null"}], "description": "A downgrade that applies at the period end."}, "source": {"description": "`provider` for a paid plan, `manual` for a grant.", "enum": ["manual", "provider"], "title": "Source", "type": "string"}, "status": {"description": "`trialing`, `active` or `past_due`.", "enum": ["trialing", "active", "past_due"], "title": "Status", "type": "string"}}, "required": ["id", "status", "source", "product_code", "price", "cancel_at_period_end"], "title": "MySubscriptionResponse", "type": "object"}, "NoAdjustmentResponse": {"properties": {"code": {"const": "total_return", "title": "Code", "type": "string"}, "reason": {"description": "English text; clients may translate by `code`.", "title": "Reason", "type": "string"}}, "required": ["code", "reason"], "title": "NoAdjustmentResponse", "type": "object"}, "NotificationTypeResponse": {"description": "One catalog entry, so a client can draw a row of the matrix.", "examples": [{"default_channels": ["email"], "description": "A short summary of the markets before the US open.", "id": "673b6764-9c5c-5187-895f-079e3e5f67ab", "key": "market.pre_market_summary", "label": "Pre-market summary", "position": 2, "schedule_kind": "daily", "send_hour_local": 8}], "properties": {"default_channels": {"description": "Channels that start switched on for a new account.", "items": {"type": "string"}, "title": "Default Channels", "type": "array"}, "description": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Description"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "key": {"description": "Stable name of the type, for example `market.pre_market_summary`.", "title": "Key", "type": "string"}, "label": {"title": "Label", "type": "string"}, "min_product": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The lowest plan that gets this type. Null when every plan does.", "title": "Min Product"}, "position": {"description": "Order of this type in the list, from zero.", "title": "Position", "type": "integer"}, "schedule_kind": {"description": "`hourly`, `daily` or `event`. An event is sent when something happens.", "title": "Schedule Kind", "type": "string"}, "send_hour_local": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "The hour of day (0 to 23) in the reader's time zone. Null unless daily.", "title": "Send Hour Local"}}, "required": ["id", "key", "label", "schedule_kind", "position"], "title": "NotificationTypeResponse", "type": "object"}, "OneClickUnsubscribeResponse": {"description": "The answer a mailbox provider gets. A repeat answers the same.", "examples": [{"unsubscribed": true}], "properties": {"unsubscribed": {"default": true, "title": "Unsubscribed", "type": "boolean"}}, "title": "OneClickUnsubscribeResponse", "type": "object"}, "OtpChallengeResponse": {"description": "A pending email challenge. Identical in shape whether or not the address has\nan account, so nobody can enumerate the user base.", "examples": [{"attempts_remaining": 5, "challenge_token": "ch_7Hq2mXz9Kp4TnV1b", "code_expires_at": "2026-11-04T13:35:00Z", "expires_at": "2026-11-04T13:40:00Z"}], "properties": {"attempts_remaining": {"description": "Wrong codes left before the challenge closes.", "title": "Attempts Remaining", "type": "integer"}, "challenge_token": {"description": "Names the pending challenge. Authorises nothing but verify.", "title": "Challenge Token", "type": "string"}, "code_expires_at": {"description": "After this the emailed code needs a new request.", "title": "Code Expires At", "type": "string"}, "expires_at": {"description": "After this the whole attempt is dead.", "title": "Expires At", "type": "string"}}, "required": ["challenge_token", "expires_at", "code_expires_at", "attempts_remaining"], "title": "OtpChallengeResponse", "type": "object"}, "OtpRequest": {"examples": [{"email": "reader@example.com"}], "properties": {"email": {"description": "The address to send the sign-in code to.", "format": "email", "title": "Email", "type": "string"}}, "required": ["email"], "title": "OtpRequest", "type": "object"}, "OtpVerifyRequest": {"examples": [{"challenge_token": "ch_7Hq2mXz9Kp4TnV1b", "code": "482913", "referral_code": "RENZO-A7K2", "referral_source": "link", "timezone": "America/New_York"}], "properties": {"challenge_token": {"description": "From the request response.", "minLength": 1, "title": "Challenge Token", "type": "string"}, "code": {"description": "The emailed code. Spaces and dashes a paste brings are ignored.", "maxLength": 32, "minLength": 1, "title": "Code", "type": "string"}, "referral_code": {"anyOf": [{"maxLength": 32, "type": "string"}, {"type": "null"}], "description": "A friend's referral code. Used only when the account is created. A bad code is ignored and never fails the sign-in.", "title": "Referral Code"}, "referral_source": {"default": "link", "description": "`link` when the code came from a referral link, `typed` when entered by hand.", "enum": ["link", "typed"], "title": "Referral Source", "type": "string"}, "timezone": {"anyOf": [{"maxLength": 64, "type": "string"}, {"type": "null"}], "description": "IANA name from the browser. Used only when the account is created.", "title": "Timezone"}}, "required": ["challenge_token", "code"], "title": "OtpVerifyRequest", "type": "object"}, "PasswordLoginRequest": {"examples": [{"email": "reader@example.com", "password": "correct-horse-battery"}], "properties": {"email": {"format": "email", "title": "Email", "type": "string"}, "password": {"description": "The account password.", "maxLength": 1024, "minLength": 1, "title": "Password", "type": "string"}}, "required": ["email", "password"], "title": "PasswordLoginRequest", "type": "object"}, "PortalSessionResponse": {"description": "Send the reader to `url` to change the card or download receipts.", "examples": [{"url": "https://billing.stripe.com/p/session/test_YWNjdF8xT3hZ"}], "properties": {"url": {"title": "Url", "type": "string"}}, "required": ["url"], "title": "PortalSessionResponse", "type": "object"}, "PreferenceEntryRequest": {"properties": {"channel": {"description": "The channel of a column of the matrix.", "maxLength": 16, "minLength": 1, "title": "Channel", "type": "string"}, "enabled": {"description": "True to send this type on this channel.", "title": "Enabled", "type": "boolean"}, "type_key": {"description": "The `type_key` of a row of the matrix.", "maxLength": 64, "minLength": 1, "title": "Type Key", "type": "string"}}, "required": ["type_key", "channel", "enabled"], "title": "PreferenceEntryRequest", "type": "object"}, "PreferenceMatrixResponse": {"description": "The whole channel by type matrix of the caller.\n\nOne resource, not a collection: a client draws it all or not at all.", "examples": [{"channels": ["email", "whatsapp", "telegram", "wechat"], "types": [{"channels": [{"available": true, "channel": "email", "connected": true, "enabled": true}, {"available": true, "channel": "telegram", "connected": true, "enabled": false}], "description": "A short summary of the markets before the US open.", "label": "Pre-market summary", "type_key": "market.pre_market_summary"}]}], "properties": {"channels": {"description": "Every channel, in the order to draw the columns.", "items": {"type": "string"}, "title": "Channels", "type": "array"}, "email_suppression": {"anyOf": [{"enum": ["bounce", "spam"], "type": "string"}, {"type": "null"}], "description": "Why email cannot reach the caller: the address bounced, or the caller marked our email as spam. Null when email works. Turning an email cell on clears spam.", "title": "Email Suppression"}, "types": {"items": {"$ref": "#/components/schemas/TypePreferenceResponse"}, "title": "Types", "type": "array"}}, "required": ["channels", "types"], "title": "PreferenceMatrixResponse", "type": "object"}, "PreferenceUpdateRequest": {"examples": [{"preferences": [{"channel": "telegram", "enabled": true, "type_key": "market.pre_market_summary"}]}], "properties": {"preferences": {"description": "The cells to set. Cells left out keep their value.", "items": {"$ref": "#/components/schemas/PreferenceEntryRequest"}, "minItems": 1, "title": "Preferences", "type": "array"}}, "required": ["preferences"], "title": "PreferenceUpdateRequest", "type": "object"}, "PriceAlertCreateRequest": {"examples": [{"channels": ["telegram", "email"], "direction": "above", "mode": "single", "symbol_id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "target_price": "200.00"}], "properties": {"channels": {"description": "Where the alert sends. Telegram and WhatsApp need a connected account.", "items": {"enum": ["telegram", "whatsapp", "email"], "type": "string"}, "maxItems": 3, "minItems": 1, "title": "Channels", "type": "array"}, "direction": {"$ref": "#/components/schemas/Direction", "description": "`above` fires when the price rises to the target, `below` when it falls."}, "mode": {"$ref": "#/components/schemas/Mode", "default": "single", "description": "`single` fires once. `continuous` fires on every new cross."}, "symbol_id": {"format": "uuid", "title": "Symbol Id", "type": "string"}, "target_price": {"anyOf": [{"exclusiveMinimum": 0.0, "type": "number"}, {"pattern": "^(?!^[-+.]*$)[+-]?0*(?:\\d{0,18}|(?=[\\d.]{1,31}0*$)\\d{0,18}\\.\\d{0,12}0*$)", "type": "string"}], "description": "The exact target. Send it as a string to keep every digit.", "title": "Target Price"}}, "required": ["symbol_id", "direction", "target_price", "channels"], "title": "PriceAlertCreateRequest", "type": "object"}, "PriceAlertFireResponse": {"examples": [{"alert_id": "6ca4458e-77ae-5441-b992-1b389fe10186", "channels": ["telegram"], "deliveries": [{"channel": "telegram", "status": "sent"}], "direction": "above", "fired_at": "2026-11-04T15:42:10Z", "id": "c4566de0-dd1f-597e-be82-e8ed221f75bc", "mode": "single", "observed_at": "2026-11-04T15:42:10Z", "price": 200.15, "replayed": false, "symbol": {"asset_class": "equity", "display_name": "Apple Inc.", "exchange": "NASDAQ", "id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "is_active": true, "slug": "aapl-nasdaq", "ticker": "AAPL"}, "target_price": 200}], "properties": {"alert_id": {"anyOf": [{"format": "uuid", "type": "string"}, {"type": "null"}], "description": "Null once the alert itself was deleted.", "title": "Alert Id"}, "channels": {"description": "The channels this fire was sent on.", "items": {"type": "string"}, "title": "Channels", "type": "array"}, "deliveries": {"description": "What happened per channel. Empty when no delivery record is left.", "items": {"$ref": "#/components/schemas/FireDeliveryResponse"}, "title": "Deliveries", "type": "array"}, "direction": {"$ref": "#/components/schemas/Direction"}, "fired_at": {"description": "When the alert fired, in UTC.", "title": "Fired At", "type": "string"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "mode": {"$ref": "#/components/schemas/Mode"}, "observed_at": {"description": "When that price was observed, in UTC.", "title": "Observed At", "type": "string"}, "price": {"description": "The price that fired the alert.", "title": "Price", "type": "number"}, "replayed": {"description": "True outside production, when the price came from a replay.", "title": "Replayed", "type": "boolean"}, "symbol": {"$ref": "#/components/schemas/SymbolRef"}, "target_price": {"description": "The target at the time of the fire.", "title": "Target Price", "type": "number"}}, "required": ["id", "alert_id", "symbol", "direction", "mode", "target_price", "price", "observed_at", "replayed", "channels", "deliveries", "fired_at"], "title": "PriceAlertFireResponse", "type": "object"}, "PriceAlertResponse": {"examples": [{"channels": ["telegram", "email"], "created_at": "2026-11-04T13:30:00Z", "current_price": 187.42, "direction": "above", "distance_percent": 6.71, "id": "6ca4458e-77ae-5441-b992-1b389fe10186", "mode": "single", "price_observed_at": "2026-11-04T15:42:10Z", "price_replayed": false, "state": "active", "symbol": {"asset_class": "equity", "display_name": "Apple Inc.", "exchange": "NASDAQ", "id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "is_active": true, "slug": "aapl-nasdaq", "ticker": "AAPL"}, "target_price": 200, "updated_at": "2026-11-04T13:30:00Z"}], "properties": {"channels": {"items": {"type": "string"}, "title": "Channels", "type": "array"}, "created_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created At"}, "current_price": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "Null when no price is available.", "title": "Current Price"}, "direction": {"$ref": "#/components/schemas/Direction"}, "distance_percent": {"anyOf": [{"type": "number"}, {"type": "null"}], "description": "(target - price) / price x 100. Positive means the target is above.", "title": "Distance Percent"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "last_fired_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When the alert last fired. Null if it never did.", "title": "Last Fired At"}, "mode": {"$ref": "#/components/schemas/Mode", "description": "`single` fires once. `continuous` fires on every new cross."}, "pause_reason": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "user, inactive, no_channel or symbol_inactive when paused.", "title": "Pause Reason"}, "paused_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When the alert was paused. Null when it is not.", "title": "Paused At"}, "price_observed_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When `current_price` was observed. Null when no price is available.", "title": "Price Observed At"}, "price_replayed": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "description": "True outside production, when the price comes from a replay.", "title": "Price Replayed"}, "state": {"$ref": "#/components/schemas/AlertState", "description": "`active`, `paused` or `done` (a single alert that fired)."}, "symbol": {"$ref": "#/components/schemas/SymbolRef"}, "target_price": {"description": "The price that fires the alert.", "title": "Target Price", "type": "number"}, "updated_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Updated At"}}, "required": ["id", "symbol", "direction", "target_price", "mode", "channels", "state", "pause_reason", "paused_at", "last_fired_at", "current_price", "price_observed_at", "price_replayed", "distance_percent", "created_at", "updated_at"], "title": "PriceAlertResponse", "type": "object"}, "PriceAlertStopRequest": {"examples": [{"token": "eyJhbGciOi...example"}], "properties": {"token": {"description": "From the stop link.", "maxLength": 256, "minLength": 1, "title": "Token", "type": "string"}}, "required": ["token"], "title": "PriceAlertStopRequest", "type": "object"}, "PriceAlertStopResponse": {"description": "The alert the link named, after the stop. No login is needed, so no account data.", "examples": [{"alert_id": "6ca4458e-77ae-5441-b992-1b389fe10186", "direction": "above", "state": "paused", "target_price": 200, "ticker": "AAPL"}], "properties": {"alert_id": {"format": "uuid", "title": "Alert Id", "type": "string"}, "direction": {"$ref": "#/components/schemas/Direction"}, "state": {"$ref": "#/components/schemas/AlertState", "description": "The state of the alert after the stop."}, "target_price": {"title": "Target Price", "type": "number"}, "ticker": {"title": "Ticker", "type": "string"}}, "required": ["alert_id", "ticker", "direction", "target_price", "state"], "title": "PriceAlertStopResponse", "type": "object"}, "PriceAlertUpdateRequest": {"description": "Every field is optional. `state` pauses or resumes; `active` also re-arms a fired alert.", "examples": [{"channels": ["email"], "direction": "above", "mode": "continuous", "state": "active", "target_price": "195.50"}], "properties": {"channels": {"anyOf": [{"items": {"enum": ["telegram", "whatsapp", "email"], "type": "string"}, "maxItems": 3, "minItems": 1, "type": "array"}, {"type": "null"}], "description": "Where the alert sends: any of `telegram`, `whatsapp` and `email`.", "title": "Channels"}, "direction": {"anyOf": [{"$ref": "#/components/schemas/Direction"}, {"type": "null"}], "description": "`above` fires when the price rises to the target, `below` when it falls."}, "mode": {"anyOf": [{"$ref": "#/components/schemas/Mode"}, {"type": "null"}], "description": "`single` fires once. `continuous` fires on every new cross."}, "state": {"anyOf": [{"enum": ["active", "paused"], "type": "string"}, {"type": "null"}], "title": "State"}, "target_price": {"anyOf": [{"exclusiveMinimum": 0.0, "type": "number"}, {"pattern": "^(?!^[-+.]*$)[+-]?0*(?:\\d{0,18}|(?=[\\d.]{1,31}0*$)\\d{0,18}\\.\\d{0,12}0*$)", "type": "string"}, {"type": "null"}], "description": "The exact target.", "title": "Target Price"}}, "title": "PriceAlertUpdateRequest", "type": "object"}, "PriceChangePreviewRequest": {"examples": [{"price_id": "026b9c9b-b877-592c-9954-cc9d8ee8e9d1"}], "properties": {"price_id": {"description": "The active price the reader may move to.", "format": "uuid", "title": "Price Id", "type": "string"}}, "required": ["price_id"], "title": "PriceChangePreviewRequest", "type": "object"}, "PriceChangePreviewResponse": {"description": "What a change to one price does. Only an upgrade charges now.", "examples": [{"amount_due_cents": 17500, "change": "upgrade", "currency": "USD", "lines": [{"amount_cents": -1500, "description": "Unused time on Premium (monthly)"}, {"amount_cents": 19000, "description": "Premium (yearly)"}], "next_amount_cents": 19000, "next_billing_at": "2027-11-04T13:30:00Z", "price": {"amount_cents": 19000, "currency": "USD", "id": "026b9c9b-b877-592c-9954-cc9d8ee8e9d1", "interval": "year", "product_code": "premium", "product_id": "52108830-cd62-51b4-9ce3-f0051ed42666", "product_name": "Premium"}, "proration_date": "2026-11-04T13:30:00Z", "subtotal_cents": 17500, "takes_effect_at": "2026-11-04T13:30:00Z", "tax_cents": 0}], "properties": {"amount_due_cents": {"description": "The charge now, with tax and any credit applied.", "title": "Amount Due Cents", "type": "integer"}, "change": {"description": "`upgrade` charges now. `downgrade` waits for the period end.", "enum": ["upgrade", "downgrade", "none", "clear_pending"], "title": "Change", "type": "string"}, "currency": {"description": "ISO currency code, for example USD.", "title": "Currency", "type": "string"}, "lines": {"description": "Empty unless the change charges now.", "items": {"$ref": "#/components/schemas/QuoteLineResponse"}, "title": "Lines", "type": "array"}, "next_amount_cents": {"description": "The price of that renewal, before tax.", "title": "Next Amount Cents", "type": "integer"}, "next_billing_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The next renewal after the change.", "title": "Next Billing At"}, "price": {"$ref": "#/components/schemas/SubscriptionPriceResponse", "description": "The price the reader would move to."}, "proration_date": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Send this back with the change. Set for an upgrade only.", "title": "Proration Date"}, "subtotal_cents": {"description": "The charge now before tax, in cents.", "title": "Subtotal Cents", "type": "integer"}, "takes_effect_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When the change applies. Null when nothing changes.", "title": "Takes Effect At"}, "tax_cents": {"description": "Tax on the charge now, in cents.", "title": "Tax Cents", "type": "integer"}}, "required": ["change", "price", "takes_effect_at", "currency", "lines", "subtotal_cents", "tax_cents", "amount_due_cents", "next_billing_at", "next_amount_cents", "proration_date"], "title": "PriceChangePreviewResponse", "type": "object"}, "PriceChangeRequest": {"examples": [{"price_id": "026b9c9b-b877-592c-9954-cc9d8ee8e9d1", "proration_date": "2026-11-04T13:30:00Z"}], "properties": {"price_id": {"description": "An active price. A dearer one applies now; a cheaper one at the period end.", "format": "uuid", "title": "Price Id", "type": "string"}, "proration_date": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "description": "The `proration_date` of the preview. An upgrade needs one at most 15 minutes old, so the charge is the amount the reader confirmed.", "title": "Proration Date"}}, "required": ["price_id"], "title": "PriceChangeRequest", "type": "object"}, "PriceChangeResponse": {"examples": [{"cancel_at_period_end": false, "current_period_end": "2026-11-04T13:30:00Z", "current_period_start": "2026-10-04T13:30:00Z", "id": "cf4b1077-d871-5ff7-82f3-9a9bbe9514d3", "price": {"amount_cents": 1900, "currency": "USD", "id": "e20b39bd-9326-5178-9074-9c31733f3a2f", "interval": "month", "product_code": "premium", "product_id": "52108830-cd62-51b4-9ce3-f0051ed42666", "product_name": "Premium"}, "product_code": "premium", "referral_grant": false, "source": "provider", "status": "active"}], "properties": {"cancel_at_period_end": {"description": "True when the plan ends at the period end and will not renew.", "title": "Cancel At Period End", "type": "boolean"}, "current_period_end": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "End of the paid period. Null for a grant with no end date.", "title": "Current Period End"}, "current_period_start": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Start of the paid period. Null for a grant with no period.", "title": "Current Period Start"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "payment_url": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Set when the bank asks the reader to approve the charge, or the card failed. Send the reader here. The change applies after the payment.", "title": "Payment Url"}, "price": {"anyOf": [{"$ref": "#/components/schemas/SubscriptionPriceResponse"}, {"type": "null"}], "description": "Null for a hand grant."}, "product_code": {"title": "Product Code", "type": "string"}, "referral_grant": {"default": false, "description": "A hand grant earned by referring. A purchase ends it.", "title": "Referral Grant", "type": "boolean"}, "scheduled_price": {"anyOf": [{"$ref": "#/components/schemas/SubscriptionPriceResponse"}, {"type": "null"}], "description": "A downgrade that applies at the period end."}, "source": {"description": "`provider` for a paid plan, `manual` for a grant.", "enum": ["manual", "provider"], "title": "Source", "type": "string"}, "status": {"description": "`trialing`, `active` or `past_due`.", "enum": ["trialing", "active", "past_due"], "title": "Status", "type": "string"}}, "required": ["id", "status", "source", "product_code", "price", "cancel_at_period_end"], "title": "PriceChangeResponse", "type": "object"}, "Problem": {"additionalProperties": true, "description": "RFC 7807 problem details \u2014 the only error shape `/api/v1` emits.", "properties": {"code": {"description": "Stable machine-readable error code. Clients branch on this, not on prose.", "title": "Code", "type": "string"}, "correlation_id": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Request correlation id, for log lookup and support.", "title": "Correlation Id"}, "detail": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Explanation for this occurrence.", "title": "Detail"}, "instance": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Path of this occurrence.", "title": "Instance"}, "status": {"description": "HTTP status code.", "title": "Status", "type": "integer"}, "title": {"description": "Short, human-readable summary of the problem type.", "title": "Title", "type": "string"}, "type": {"description": "URI identifying the problem type.", "title": "Type", "type": "string"}}, "required": ["type", "title", "status", "code"], "title": "Problem", "type": "object"}, "ProfileResponse": {"description": "The caller's own account. `ui_language` and `article_language` are two\nindependent fields; neither is derived from the other.", "examples": [{"article_language": "en", "country": "US", "created_at": "2026-10-04T13:30:00Z", "currency": "USD", "email": "reader@example.com", "id": "eca8506d-1dfa-56a2-8765-96305e99f89c", "last_login_at": "2026-11-04T13:30:00Z", "status": "active", "timezone": "America/New_York", "ui_language": "en", "username": "marketwatcher"}], "properties": {"article_language": {"description": "Language articles are served in, as a public tag.", "title": "Article Language", "type": "string"}, "country": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Two-letter country code. Null when not set.", "title": "Country"}, "created_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created At"}, "currency": {"description": "ISO 4217 code the reader prefers, for example USD.", "title": "Currency", "type": "string"}, "email": {"description": "The address as the database holds it.", "title": "Email", "type": "string"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "last_login_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When the reader last signed in. Null before the first sign-in.", "title": "Last Login At"}, "mobile": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Never collected at signup.", "title": "Mobile"}, "status": {"description": "`pending_profile` until a username is set, then `active`.", "title": "Status", "type": "string"}, "timezone": {"description": "IANA time zone, for example America/New_York.", "title": "Timezone", "type": "string"}, "ui_language": {"description": "Language of the interface, as a public tag.", "title": "Ui Language", "type": "string"}, "username": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Null until onboarding is finished.", "title": "Username"}}, "required": ["id", "email", "status", "ui_language", "article_language", "timezone", "currency", "created_at"], "title": "ProfileResponse", "type": "object"}, "ProfileUpdateRequest": {"description": "Every field optional: an omitted field is left alone.", "examples": [{"article_language": "en", "country": "US", "currency": "USD", "mobile": "+14155550123", "timezone": "America/New_York", "ui_language": "en", "username": "marketwatcher"}], "properties": {"article_language": {"anyOf": [{"maxLength": 16, "type": "string"}, {"type": "null"}], "description": "Language articles are served in, as a public tag such as `en`.", "title": "Article Language"}, "country": {"anyOf": [{"maxLength": 2, "minLength": 2, "type": "string"}, {"type": "null"}], "description": "Two-letter country code.", "title": "Country"}, "currency": {"anyOf": [{"maxLength": 3, "minLength": 3, "type": "string"}, {"type": "null"}], "description": "ISO 4217 code, for example USD.", "title": "Currency"}, "mobile": {"anyOf": [{"maxLength": 32, "type": "string"}, {"type": "null"}], "description": "Null clears it.", "title": "Mobile"}, "timezone": {"anyOf": [{"maxLength": 64, "type": "string"}, {"type": "null"}], "description": "IANA time zone, for example America/New_York.", "title": "Timezone"}, "ui_language": {"anyOf": [{"maxLength": 16, "type": "string"}, {"type": "null"}], "description": "Language of the interface, as a public tag such as `en`.", "title": "Ui Language"}, "username": {"anyOf": [{"maxLength": 30, "minLength": 3, "pattern": "^[A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?$", "type": "string"}, {"type": "null"}], "title": "Username"}}, "title": "ProfileUpdateRequest", "type": "object"}, "Provider": {"enum": ["google", "apple", "facebook", "x", "github"], "title": "Provider", "type": "string"}, "ProviderMappingResponse": {"description": "An explicit provider mapping safe for client display.", "properties": {"is_active": {"default": true, "description": "False when the mapping is switched off.", "title": "Is Active", "type": "boolean"}, "mapping_version": {"description": "The version of this mapping.", "title": "Mapping Version", "type": "string"}, "provider": {"description": "The data provider that supplies this symbol's prices.", "title": "Provider", "type": "string"}, "provider_symbol": {"description": "The symbol as the provider names it.", "title": "Provider Symbol", "type": "string"}, "venue": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The exchange the provider quotes. Null when not set.", "title": "Venue"}}, "required": ["provider", "provider_symbol", "mapping_version"], "title": "ProviderMappingResponse", "type": "object"}, "PublicArticleResponse": {"description": "The public view: one resolved translation, and nothing about drafts.", "examples": [{"access": "full", "access_level": "public", "available_locales": ["en", "ru"], "blocks": [{"level": 2, "text": "Rates unchanged, tone softer", "type": "heading"}, {"text": "The Fed held rates and said inflation nears its 2% goal.", "type": "paragraph"}, {"items": ["**Rates:** held at 5.25%", "[Next meeting](/economic-calendar) is in December"], "style": "bullet", "type": "list"}, {"exchange": "INDEX", "label": "S&P 500", "symbol": "US500", "type": "symbol_card"}, {"text": "Friday payrolls are the next test for rate expectations.", "title": "What to watch", "type": "callout", "variant": "info"}, {"items": [{"publisher": "Federal Reserve", "title": "FOMC statement", "url": "https://www.federalreserve.gov/"}], "type": "sources"}], "byline": {"name": "Hafizah Rina", "url": "https://www.linkedin.com/in/hafizah-rina-43a1531a4"}, "hero_image_url": "https://cdn.renzo-digital.com/articles/fed-holds-rates.jpg", "id": "f43679d3-0ab5-5f68-8bda-f0a4c5560594", "is_editors_pick": false, "locale": "en", "published_at": "2026-11-04T13:30:00Z", "requested_locale": "en", "seo_description": "The Fed kept rates unchanged and signalled patience.", "seo_title": "Fed holds rates steady as inflation cools | Renzo", "slug": "fed-holds-rates-steady-as-inflation-cools", "symbols": [{"asset_class": "index", "display_name": "US 500 Index", "exchange": "INDEX", "id": "63d60d4b-cbbd-510b-8352-cdb4ac4859ae", "is_active": true, "role": "primary", "slug": "us500-index", "ticker": "US500"}], "title": "Fed holds rates steady as inflation cools", "translations": [{"locale": "en", "slug": "fed-holds-rates-steady-as-inflation-cools"}, {"locale": "ru", "slug": "\u0444\u0440\u0441-\u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0430-\u0441\u0442\u0430\u0432\u043a\u0443"}], "type": "news", "updated_at": "2026-11-04T13:30:00Z"}], "properties": {"access": {"$ref": "#/components/schemas/ContentAccess", "default": "full", "description": "`preview` means the body is truncated behind a paywall."}, "access_level": {"description": "Who may read the full text: `public`, `registered` or `premium`.", "enum": ["public", "registered", "premium"], "title": "Access Level", "type": "string"}, "available_locales": {"description": "Public language tags that are live right now.", "items": {"type": "string"}, "title": "Available Locales", "type": "array"}, "blocks": {"description": "The article body as a list of typed blocks, such as `paragraph`, `heading` and `list` (`style` is `bullet` or `ordered`, with `items` of inline text). Paragraph text and list items accept inline marks: `**bold**` and `[label](url)`. A url is absolute `http(s)://` or a root-relative path with one leading `/`. A backslash escapes `*`, `[`, `]`, `(`, `)` and itself. An incomplete mark stays literal. A bad link url is refused with 422 and the block error code `invalid_link_url`.", "items": {"additionalProperties": true, "type": "object"}, "title": "Blocks", "type": "array"}, "byline": {"$ref": "#/components/schemas/BylineResponse", "description": "The author shown to readers."}, "hero_image_url": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The main image. Null when the article has none.", "title": "Hero Image Url"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "is_editors_pick": {"default": false, "description": "True when the editors chose this article to feature.", "title": "Is Editors Pick", "type": "boolean"}, "locale": {"description": "Public language tag of the locale served, after English fallback.", "title": "Locale", "type": "string"}, "published_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When the article went live.", "title": "Published At"}, "requested_locale": {"description": "The language the caller asked for. `locale` may differ after fallback.", "title": "Requested Locale", "type": "string"}, "seo_description": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "A short description for search results.", "title": "Seo Description"}, "seo_title": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "A title for search results. Null when the title is used.", "title": "Seo Title"}, "slug": {"description": "The URL name of the article in this language.", "title": "Slug", "type": "string"}, "symbols": {"items": {"$ref": "#/components/schemas/ArticleSymbolRef"}, "title": "Symbols", "type": "array"}, "title": {"title": "Title", "type": "string"}, "translations": {"description": "The slug of each live translation, because each locale has its own slug.", "items": {"$ref": "#/components/schemas/TranslationLink"}, "title": "Translations", "type": "array"}, "type": {"description": "`news`, `opinion`, `editorial` or `guide`.", "enum": ["news", "opinion", "editorial", "guide"], "title": "Type", "type": "string"}, "updated_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Updated At"}}, "required": ["id", "type", "access_level", "locale", "requested_locale", "title", "slug", "blocks", "available_locales", "translations", "byline", "updated_at"], "title": "PublicArticleResponse", "type": "object"}, "PublicPriceResponse": {"description": "One price a reader can buy. No provider ID leaves the API.", "properties": {"amount_cents": {"description": "The price in cents, so 1900 is $19.", "title": "Amount Cents", "type": "integer"}, "currency": {"description": "ISO currency code, for example USD.", "title": "Currency", "type": "string"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "interval": {"description": "The billing period: `month` or `year`.", "title": "Interval", "type": "string"}}, "required": ["id", "amount_cents", "currency", "interval"], "title": "PublicPriceResponse", "type": "object"}, "PublicProductResponse": {"examples": [{"capabilities": {"content.tier": "premium", "markets.data_download": true, "mcp.full_text": true, "notifications.whatsapp": true, "price_alerts.max_active": 50, "watchlist.max_lists": 10}, "code": "premium", "description": "Full articles, key takeaways and more price alerts.", "highlighted": true, "id": "52108830-cd62-51b4-9ce3-f0051ed42666", "is_default": false, "name": "Premium", "prices": [{"amount_cents": 1900, "currency": "USD", "id": "e20b39bd-9326-5178-9074-9c31733f3a2f", "interval": "month"}, {"amount_cents": 19000, "currency": "USD", "id": "026b9c9b-b877-592c-9954-cc9d8ee8e9d1", "interval": "year"}], "rank": 10}], "properties": {"capabilities": {"additionalProperties": true, "description": "Every catalog key with the value this product grants.", "title": "Capabilities", "type": "object"}, "code": {"description": "Short stable name of the plan, for example `premium`.", "title": "Code", "type": "string"}, "description": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Description"}, "highlighted": {"description": "True for the one plan to feature, for example with a badge. At most one plan is highlighted.", "title": "Highlighted", "type": "boolean"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "is_default": {"description": "True for the plan every new account starts on.", "title": "Is Default", "type": "boolean"}, "name": {"title": "Name", "type": "string"}, "prices": {"description": "Active prices only.", "items": {"$ref": "#/components/schemas/PublicPriceResponse"}, "title": "Prices", "type": "array"}, "rank": {"description": "Higher is a bigger plan. Decides upgrade or downgrade.", "minimum": 0.0, "title": "Rank", "type": "integer"}}, "required": ["id", "code", "name", "is_default", "rank", "highlighted", "capabilities", "prices"], "title": "PublicProductResponse", "type": "object"}, "QuoteLineResponse": {"properties": {"amount_cents": {"description": "Negative for a credit.", "title": "Amount Cents", "type": "integer"}, "description": {"title": "Description", "type": "string"}}, "required": ["description", "amount_cents"], "title": "QuoteLineResponse", "type": "object"}, "ReactionRequest": {"examples": [{"kind": "like"}], "properties": {"kind": {"description": "`like` or `dislike`.", "enum": ["like", "dislike"], "title": "Kind", "type": "string"}}, "required": ["kind"], "title": "ReactionRequest", "type": "object"}, "ReactionResponse": {"description": "The caller's own reaction, with the totals after the call.", "examples": [{"article_id": "f43679d3-0ab5-5f68-8bda-f0a4c5560594", "dislike_count": 7, "kind": "like", "like_count": 128}], "properties": {"article_id": {"format": "uuid", "title": "Article Id", "type": "string"}, "dislike_count": {"description": "Total dislikes of the article, in every language.", "title": "Dislike Count", "type": "integer"}, "kind": {"anyOf": [{"enum": ["like", "dislike"], "type": "string"}, {"type": "null"}], "description": "Null when the caller has no reaction.", "title": "Kind"}, "like_count": {"description": "Total likes of the article, in every language.", "title": "Like Count", "type": "integer"}}, "required": ["article_id", "like_count", "dislike_count"], "title": "ReactionResponse", "type": "object"}, "ReferralCodeResponse": {"description": "A code a friend may use, and what it takes off their first payment.", "examples": [{"code": "RENZO-A7K2", "discount_percent": 20}], "properties": {"code": {"description": "The code a friend enters at signup or checkout.", "title": "Code", "type": "string"}, "discount_percent": {"description": "Percent off the friend's first payment.", "title": "Discount Percent", "type": "integer"}}, "required": ["code", "discount_percent"], "title": "ReferralCodeResponse", "type": "object"}, "ReferralProgramResponse": {"description": "Whether the program is on, and the friend discount.", "examples": [{"discount_percent": 20, "enabled": true}], "properties": {"discount_percent": {"description": "Percent off a friend's first payment.", "title": "Discount Percent", "type": "integer"}, "enabled": {"description": "False when the referral program is switched off.", "title": "Enabled", "type": "boolean"}}, "required": ["enabled", "discount_percent"], "title": "ReferralProgramResponse", "type": "object"}, "ReferralSummaryResponse": {"description": "The Refer page. With the program off, `enabled` is false and `code` is null.", "examples": [{"can_add_code": true, "cap": 12, "code": "RENZO-A7K2", "discount_percent": 20, "enabled": true, "has_referrer": false, "hold_days": 14, "link_path": "/r/RENZO-A7K2", "my_reward": {"days": 30, "kind": "grant"}, "reward_days": 30, "totals": {"earned": 1, "earned_credit_cents": 0, "left_this_year": 11, "next_reward_at": "2026-11-18T13:30:00Z", "pending": 1, "signed_up": 5, "subscribed": 2}}], "properties": {"can_add_code": {"description": "Whether `POST /referrals/me/referrer` may succeed.", "title": "Can Add Code", "type": "boolean"}, "cap": {"description": "The most rewards in any 12 months.", "title": "Cap", "type": "integer"}, "code": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The caller's own referral code. Null when the program is off.", "title": "Code"}, "discount_percent": {"description": "Percent off a friend's first payment.", "title": "Discount Percent", "type": "integer"}, "enabled": {"title": "Enabled", "type": "boolean"}, "has_referrer": {"description": "True when the caller already entered a friend's code.", "title": "Has Referrer", "type": "boolean"}, "hold_days": {"description": "Days a reward waits before it is given.", "title": "Hold Days", "type": "integer"}, "link_path": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "`/r/{code}` on the customer web host.", "title": "Link Path"}, "my_reward": {"$ref": "#/components/schemas/MyRewardResponse"}, "reward_days": {"description": "Days of Premium the caller earns for each friend who subscribes.", "title": "Reward Days", "type": "integer"}, "totals": {"$ref": "#/components/schemas/ReferralTotalsResponse"}}, "required": ["enabled", "code", "link_path", "discount_percent", "reward_days", "hold_days", "cap", "totals", "has_referrer", "can_add_code", "my_reward"], "title": "ReferralSummaryResponse", "type": "object"}, "ReferralTotalsResponse": {"description": "Counts only. A friend is never named (GDPR).", "properties": {"earned": {"description": "Rewards given, all time.", "title": "Earned", "type": "integer"}, "earned_credit_cents": {"description": "USD cents of the given bill credits, all time.", "title": "Earned Credit Cents", "type": "integer"}, "left_this_year": {"description": "Rewards still possible in the last 12 months.", "title": "Left This Year", "type": "integer"}, "next_reward_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "When the next pending reward is due.", "title": "Next Reward At"}, "pending": {"description": "Rewards on the way.", "title": "Pending", "type": "integer"}, "signed_up": {"description": "Friends who signed up with this code.", "title": "Signed Up", "type": "integer"}, "subscribed": {"description": "Friends who paid their first invoice.", "title": "Subscribed", "type": "integer"}}, "required": ["signed_up", "subscribed", "pending", "next_reward_at", "earned", "earned_credit_cents", "left_this_year"], "title": "ReferralTotalsResponse", "type": "object"}, "ReplayState": {"enum": ["loading", "running", "paused", "finished", "stopped", "failed"], "title": "ReplayState", "type": "string"}, "SocialCallbackRequest": {"examples": [{"code": "4/0AeanS0b-example", "state": "Zx81kQ2v"}], "properties": {"code": {"description": "From the provider redirect.", "maxLength": 2048, "minLength": 1, "title": "Code", "type": "string"}, "state": {"description": "From the provider redirect.", "maxLength": 256, "minLength": 1, "title": "State", "type": "string"}, "user": {"anyOf": [{"maxLength": 4096, "type": "string"}, {"type": "null"}], "description": "Apple's first-login `user` JSON. Accepted and ignored: Renzo stores no name and never trusts an email from the browser.", "title": "User"}}, "required": ["code", "state"], "title": "SocialCallbackRequest", "type": "object"}, "SocialEmailRequest": {"examples": [{"email": "reader@example.com", "pending_token": "pd_Lm3Nq8Rt2Vw5"}], "properties": {"email": {"description": "Where to send the six-digit code.", "format": "email", "title": "Email", "type": "string"}, "pending_token": {"description": "From the callback or an earlier answer.", "maxLength": 256, "minLength": 1, "title": "Pending Token", "type": "string"}}, "required": ["pending_token", "email"], "title": "SocialEmailRequest", "type": "object"}, "SocialEmailRequiredResponse": {"description": "The provider gave no usable email. Ask for one and post it to /auth/social/email.", "examples": [{"expires_at": "2026-11-04T13:40:00Z", "pending_token": "pd_Lm3Nq8Rt2Vw5", "status": "email_required"}], "properties": {"expires_at": {"description": "After this the sign-in must start again.", "title": "Expires At", "type": "string"}, "pending_token": {"description": "Post it to /auth/social/email with the address.", "title": "Pending Token", "type": "string"}, "status": {"const": "email_required", "default": "email_required", "title": "Status", "type": "string"}}, "required": ["pending_token", "expires_at"], "title": "SocialEmailRequiredResponse", "type": "object"}, "SocialLinkedResponse": {"description": "`intent=link` finished: the provider is now on the signed-in account.", "examples": [{"identity": {"created_at": "2026-11-04T13:30:00Z", "email": "reader@example.com", "provider": "github"}, "status": "linked"}], "properties": {"identity": {"$ref": "#/components/schemas/IdentityResponse"}, "status": {"const": "linked", "default": "linked", "title": "Status", "type": "string"}}, "required": ["identity"], "title": "SocialLinkedResponse", "type": "object"}, "SocialProvidersResponse": {"examples": [{"providers": ["google", "apple", "github"]}], "properties": {"providers": {"description": "Show a button for these providers only.", "items": {"$ref": "#/components/schemas/Provider"}, "title": "Providers", "type": "array"}}, "required": ["providers"], "title": "SocialProvidersResponse", "type": "object"}, "SocialSignedInResponse": {"examples": [{"created": false, "profile": {"article_language": "en", "country": "US", "created_at": "2026-10-04T13:30:00Z", "currency": "USD", "email": "reader@example.com", "id": "eca8506d-1dfa-56a2-8765-96305e99f89c", "last_login_at": "2026-11-04T13:30:00Z", "status": "active", "timezone": "America/New_York", "ui_language": "en", "username": "marketwatcher"}, "status": "signed_in", "tokens": {"access_token": "eyJhbGciOiJIUzI1NiIs...example", "expires_at": "2026-11-04T13:45:00Z", "expires_in": 900, "refresh_expires_at": "2026-12-04T13:30:00Z", "refresh_token": "eyJhbGciOiJIUzI1NiIs...refresh-example", "token_type": "Bearer"}}], "properties": {"created": {"description": "True when this login created the account.", "title": "Created", "type": "boolean"}, "profile": {"$ref": "#/components/schemas/ProfileResponse"}, "status": {"const": "signed_in", "default": "signed_in", "title": "Status", "type": "string"}, "tokens": {"$ref": "#/components/schemas/CustomerTokenPairResponse"}}, "required": ["tokens", "profile", "created"], "title": "SocialSignedInResponse", "type": "object"}, "SocialStartRequest": {"examples": [{"intent": "login", "referral_source": "link", "timezone": "America/New_York"}], "properties": {"intent": {"default": "login", "description": "`link` adds the provider to the signed-in account and needs its token.", "enum": ["login", "link"], "title": "Intent", "type": "string"}, "referral_code": {"anyOf": [{"maxLength": 32, "type": "string"}, {"type": "null"}], "description": "A friend's referral code. Used only when the account is created.", "title": "Referral Code"}, "referral_source": {"default": "link", "description": "`link` when the code came from a referral link, `typed` when entered by hand.", "enum": ["link", "typed"], "title": "Referral Source", "type": "string"}, "timezone": {"anyOf": [{"maxLength": 64, "type": "string"}, {"type": "null"}], "description": "IANA name from the browser. Used only when the account is created.", "title": "Timezone"}}, "title": "SocialStartRequest", "type": "object"}, "SocialStartResponse": {"examples": [{"authorization_url": "https://accounts.google.com/o/oauth2/v2/auth?client_id=renzo&state=Zx81kQ2v&code_challenge=Q1w2E3r4"}], "properties": {"authorization_url": {"description": "Send the browser here. The provider returns to /auth/callback/{provider}.", "title": "Authorization Url", "type": "string"}}, "required": ["authorization_url"], "title": "SocialStartResponse", "type": "object"}, "SocialVerifyEmailResponse": {"description": "A code went to the address. Send it to /auth/social/verify.", "examples": [{"attempts_remaining": 5, "challenge_token": "ch_7Hq2mXz9Kp4TnV1b", "code_expires_at": "2026-11-04T13:35:00Z", "expires_at": "2026-11-04T13:40:00Z", "masked_email": "r*****@example.com", "pending_token": "pd_Lm3Nq8Rt2Vw5", "status": "verify_email"}], "properties": {"attempts_remaining": {"description": "Wrong codes left before the challenge closes.", "title": "Attempts Remaining", "type": "integer"}, "challenge_token": {"description": "Names the pending challenge. Authorises nothing but verify.", "title": "Challenge Token", "type": "string"}, "code_expires_at": {"description": "After this the emailed code needs a new request.", "title": "Code Expires At", "type": "string"}, "expires_at": {"description": "After this the whole attempt is dead.", "title": "Expires At", "type": "string"}, "masked_email": {"description": "Where the code went, partly hidden.", "title": "Masked Email", "type": "string"}, "pending_token": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Post it to /auth/social/email with another address to send the code there instead. The earlier code then stops working.", "title": "Pending Token"}, "status": {"const": "verify_email", "default": "verify_email", "title": "Status", "type": "string"}}, "required": ["challenge_token", "expires_at", "code_expires_at", "attempts_remaining", "masked_email"], "title": "SocialVerifyEmailResponse", "type": "object"}, "SocialVerifyRequest": {"examples": [{"challenge_token": "ch_7Hq2mXz9Kp4TnV1b", "code": "482913"}], "properties": {"challenge_token": {"description": "From the `verify_email` answer.", "minLength": 1, "title": "Challenge Token", "type": "string"}, "code": {"description": "The six-digit emailed code.", "maxLength": 32, "minLength": 1, "title": "Code", "type": "string"}}, "required": ["challenge_token", "code"], "title": "SocialVerifyRequest", "type": "object"}, "StockDividendResponse": {"examples": [{"amount": "0.26", "currency": "USD", "declaration_date": "2026-10-30", "dividend_type_code": "regular", "ex_date": "2026-11-10", "frequency": 4, "id": "AAPL-2026-11-10-0.26", "name": "Apple Inc.", "pay_date": "2026-11-13", "price_date": "2026-11-03", "record_date": "2026-11-10", "symbol_slug": "aapl-nasdaq", "ticker": "AAPL", "yield_percent": "0.55"}], "properties": {"amount": {"description": "Gross cash amount per share.", "pattern": "^-?\\d+(\\.\\d+)?$", "title": "Amount", "type": "string"}, "currency": {"description": "ISO 4217 code of the dividend.", "title": "Currency", "type": "string"}, "declaration_date": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "When the company announced the dividend. Null when unknown.", "title": "Declaration Date"}, "dividend_type_code": {"description": "`special` may be adjusted differently by brokers.", "enum": ["regular", "special", "irregular", "unknown"], "title": "Dividend Type Code", "type": "string"}, "ex_date": {"description": "The first day the stock trades without the dividend.", "format": "date", "title": "Ex Date", "type": "string"}, "frequency": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "Payments per year; 0 for a one-off. Null when unknown.", "title": "Frequency"}, "id": {"description": "Stable source id of this dividend.", "title": "Id", "type": "string"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The catalog name when Renzo lists the stock, else the exchange listing's.", "title": "Name"}, "pay_date": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "When the dividend is paid. Null when unknown.", "title": "Pay Date"}, "price_date": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "The close the yield uses: the session before the ex-date once it exists.", "title": "Price Date"}, "record_date": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "Holders on this date get the dividend. Null when unknown.", "title": "Record Date"}, "symbol_slug": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "The catalog symbol, when Renzo lists it.", "title": "Symbol Slug"}, "ticker": {"description": "The stock's trading code.", "title": "Ticker", "type": "string"}, "yield_percent": {"anyOf": [{"pattern": "^-?\\d+(\\.\\d+)?$", "type": "string"}, {"type": "null"}], "description": "Annualised: amount \u00d7 payments per year / close, in percent. A special dividend is not annualised. Null when the frequency or the close is unknown.", "title": "Yield Percent"}}, "required": ["id", "ticker", "name", "symbol_slug", "declaration_date", "ex_date", "record_date", "pay_date", "amount", "currency", "frequency", "dividend_type_code", "yield_percent", "price_date"], "title": "StockDividendResponse", "type": "object"}, "StockIndexResponse": {"properties": {"code": {"description": "The index code, for example US500.", "enum": ["US500", "US30", "USTEC", "US2000", "UK100", "AUS200", "HK50", "EU50", "NETH25", "CA60", "CN50", "GER40", "TecDE30", "MidDE50", "NOR25"], "title": "Code", "type": "string"}, "currency": {"description": "ISO 4217 code of the index's stocks.", "title": "Currency", "type": "string"}, "market": {"description": "Home exchange MIC code.", "title": "Market", "type": "string"}, "name": {"description": "The index name.", "title": "Name", "type": "string"}, "no_adjustment": {"anyOf": [{"$ref": "#/components/schemas/NoAdjustmentResponse"}, {"type": "null"}], "description": "Set when the index never has a dividend adjustment, and why. Such an index has no rows."}, "weighting_code": {"description": "`cap` or `price` weighted.", "enum": ["cap", "price"], "title": "Weighting Code", "type": "string"}}, "required": ["code", "name", "market", "currency", "weighting_code", "no_adjustment"], "title": "StockIndexResponse", "type": "object"}, "StockIndicesResponse": {"examples": [{"indices": [{"code": "US500", "currency": "USD", "market": "XNYS", "name": "S&P 500", "weighting_code": "cap"}, {"code": "GER40", "currency": "EUR", "market": "XETR", "name": "Germany 40", "no_adjustment": {"code": "total_return", "reason": "A total return index. No adjustment."}, "weighting_code": "cap"}]}], "properties": {"indices": {"items": {"$ref": "#/components/schemas/StockIndexResponse"}, "title": "Indices", "type": "array"}}, "required": ["indices"], "title": "StockIndicesResponse", "type": "object"}, "SubscriptionPriceResponse": {"description": "One price with its product, as the reader sees it.", "properties": {"amount_cents": {"description": "The price in cents, so 1900 is $19.", "title": "Amount Cents", "type": "integer"}, "currency": {"description": "ISO currency code, for example USD.", "title": "Currency", "type": "string"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "interval": {"description": "The billing period: `month` or `year`.", "title": "Interval", "type": "string"}, "product_code": {"description": "Short stable name of the plan, for example `premium`.", "title": "Product Code", "type": "string"}, "product_id": {"format": "uuid", "title": "Product Id", "type": "string"}, "product_name": {"title": "Product Name", "type": "string"}}, "required": ["id", "product_id", "product_code", "product_name", "amount_cents", "currency", "interval"], "title": "SubscriptionPriceResponse", "type": "object"}, "SymbolRef": {"description": "A symbol as it appears on an article. An inactive tag still resolves.", "properties": {"asset_class": {"description": "The kind of instrument, for example `equity` or `forex`.", "enum": ["equity", "index", "forex", "crypto", "commodity", "bond", "etf", "future", "option"], "title": "Asset Class", "type": "string"}, "display_name": {"title": "Display Name", "type": "string"}, "exchange": {"description": "The exchange or market the symbol trades on.", "title": "Exchange", "type": "string"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "is_active": {"description": "False when the symbol is retired. Old tags still show it.", "title": "Is Active", "type": "boolean"}, "slug": {"description": "The URL name of the symbol, for example `aapl-nasdaq`.", "title": "Slug", "type": "string"}, "ticker": {"description": "The trading code, for example AAPL.", "title": "Ticker", "type": "string"}}, "required": ["id", "slug", "ticker", "exchange", "display_name", "asset_class", "is_active"], "title": "SymbolRef", "type": "object"}, "SymbolReplayClockResponse": {"description": "The replay a symbol follows now. Every reader sees the same one.", "properties": {"day": {"format": "date", "title": "Day", "type": "string"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "replay_time": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "description": "The replayed moment. Null while loading.", "title": "Replay Time"}, "speed": {"description": "Replay minutes per real minute.", "title": "Speed", "type": "integer"}, "start_at": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "description": "Null while loading with no start time.", "title": "Start At"}, "state": {"$ref": "#/components/schemas/ReplayState", "description": "`loading`, `running`, `paused`, `finished`, `stopped` or `failed`."}, "time_zone": {"description": "The zone of the replay day and its times of day.", "title": "Time Zone", "type": "string"}}, "required": ["id", "day", "time_zone", "state", "speed", "start_at", "replay_time"], "title": "SymbolReplayClockResponse", "type": "object"}, "SymbolResponse": {"examples": [{"asset_class": "commodity", "created_at": "2026-09-01T08:00:00Z", "display_name": "Gold / US Dollar", "exchange": "FOREX", "id": "ef262e08-a113-551b-af16-238b630e7083", "is_active": true, "price_scale": 2, "slug": "xauusd-forex", "tags": ["metals", "safe-haven"], "ticker": "XAUUSD", "updated_at": "2026-11-04T13:30:00Z"}], "properties": {"asset_class": {"description": "The kind of instrument, for example `equity` or `forex`.", "enum": ["equity", "index", "forex", "crypto", "commodity", "bond", "etf", "future", "option"], "title": "Asset Class", "type": "string"}, "created_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Created At"}, "display_name": {"title": "Display Name", "type": "string"}, "exchange": {"description": "The exchange or market the symbol trades on.", "title": "Exchange", "type": "string"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "is_active": {"description": "False when the symbol is retired.", "title": "Is Active", "type": "boolean"}, "price_scale": {"description": "Decimals a client shows for this symbol's prices.", "title": "Price Scale", "type": "integer"}, "slug": {"description": "The URL name of the symbol, for example `aapl-nasdaq`.", "title": "Slug", "type": "string"}, "tags": {"items": {"type": "string"}, "title": "Tags", "type": "array"}, "ticker": {"description": "The trading code, for example AAPL.", "title": "Ticker", "type": "string"}, "updated_at": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Updated At"}}, "required": ["id", "slug", "ticker", "exchange", "display_name", "asset_class", "is_active", "price_scale", "created_at", "updated_at"], "title": "SymbolResponse", "type": "object"}, "TagLatestArticle": {"description": "The newest headline of a tag, in the reader's language or English.", "properties": {"published_at": {"title": "Published At", "type": "string"}, "slug": {"description": "The slug in the language of `title`.", "title": "Slug", "type": "string"}, "title": {"title": "Title", "type": "string"}}, "required": ["title", "slug", "published_at"], "title": "TagLatestArticle", "type": "object"}, "TagResponse": {"description": "A tag a reader can open: a symbol with published primary articles.", "examples": [{"article_count": 42, "asset_class": "commodity", "display_name": "Gold / US Dollar", "exchange": "FOREX", "id": "ef262e08-a113-551b-af16-238b630e7083", "is_active": true, "latest_article": {"published_at": "2026-11-04T13:30:00Z", "slug": "gold-holds-near-record", "title": "Gold holds near record as the dollar slips"}, "recent_count": 9, "slug": "xauusd-forex", "ticker": "XAUUSD", "weekly_counts": [1, 0, 2, 3, 1, 4, 2, 3]}], "properties": {"article_count": {"description": "Published articles about the symbol, all time.", "title": "Article Count", "type": "integer"}, "asset_class": {"description": "The kind of instrument, for example `equity` or `forex`.", "enum": ["equity", "index", "forex", "crypto", "commodity", "bond", "etf", "future", "option"], "title": "Asset Class", "type": "string"}, "display_name": {"title": "Display Name", "type": "string"}, "exchange": {"description": "The exchange or market the symbol trades on.", "title": "Exchange", "type": "string"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "is_active": {"description": "False when the symbol is retired. Old tags still show it.", "title": "Is Active", "type": "boolean"}, "latest_article": {"anyOf": [{"$ref": "#/components/schemas/TagLatestArticle"}, {"type": "null"}], "description": "The newest article about it in `locale`, or in English when that has none."}, "recent_count": {"description": "Published articles about it in the last 30 days.", "title": "Recent Count", "type": "integer"}, "slug": {"description": "The URL name of the symbol, for example `aapl-nasdaq`.", "title": "Slug", "type": "string"}, "ticker": {"description": "The trading code, for example AAPL.", "title": "Ticker", "type": "string"}, "weekly_counts": {"description": "Articles about it in each of the last 8 weeks, oldest first. Always 8 numbers.", "items": {"type": "integer"}, "title": "Weekly Counts", "type": "array"}}, "required": ["id", "slug", "ticker", "exchange", "display_name", "asset_class", "is_active", "article_count", "recent_count", "weekly_counts", "latest_article"], "title": "TagResponse", "type": "object"}, "TagRole": {"enum": ["primary", "mentioned"], "title": "TagRole", "type": "string"}, "TagSort": {"enum": ["popular", "name"], "title": "TagSort", "type": "string"}, "TranslationLink": {"description": "One live translation of an article, so a client can link to it.", "properties": {"locale": {"title": "Locale", "type": "string"}, "slug": {"title": "Slug", "type": "string"}}, "required": ["locale", "slug"], "title": "TranslationLink", "type": "object"}, "TypePreferenceResponse": {"description": "One type with every channel of it, already resolved.", "properties": {"channels": {"items": {"$ref": "#/components/schemas/ChannelStateResponse"}, "title": "Channels", "type": "array"}, "description": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Description"}, "label": {"title": "Label", "type": "string"}, "type_key": {"description": "Stable name of the notification type.", "title": "Type Key", "type": "string"}}, "required": ["type_key", "label", "channels"], "title": "TypePreferenceResponse", "type": "object"}, "UsernameAvailabilityResponse": {"description": "A plain read. It never names the account that holds the username.", "examples": [{"available": true, "username": "marketwatcher"}], "properties": {"available": {"description": "True when the username is free to take.", "title": "Available", "type": "boolean"}, "username": {"title": "Username", "type": "string"}}, "required": ["username", "available"], "title": "UsernameAvailabilityResponse", "type": "object"}, "ViewBeaconRequest": {"description": "One counted read. The session id is opaque and generated by the client.", "examples": [{"locale": "en", "session_id": "b7e2c9a41f6d4e08"}], "properties": {"locale": {"description": "The article locale the reader saw. A breakdown by locale needs it.", "maxLength": 16, "minLength": 2, "title": "Locale", "type": "string"}, "session_id": {"description": "An opaque per-session id. The same value deduplicates a repeat read.", "maxLength": 128, "minLength": 8, "title": "Session Id", "type": "string"}}, "required": ["session_id", "locale"], "title": "ViewBeaconRequest", "type": "object"}, "ViewBeaconResponse": {"description": "The fixed contract renzo-web reads. One field, and no more.", "examples": [{"recorded": true}], "properties": {"recorded": {"description": "False when this session already counted this article.", "title": "Recorded", "type": "boolean"}}, "required": ["recorded"], "title": "ViewBeaconResponse", "type": "object"}, "WatchlistCreateRequest": {"examples": [{"name": "Tech leaders"}], "properties": {"name": {"maxLength": 60, "minLength": 1, "title": "Name", "type": "string"}}, "required": ["name"], "title": "WatchlistCreateRequest", "type": "object"}, "WatchlistRenameRequest": {"examples": [{"name": "US megacaps"}], "properties": {"name": {"maxLength": 60, "minLength": 1, "title": "Name", "type": "string"}}, "required": ["name"], "title": "WatchlistRenameRequest", "type": "object"}, "WatchlistReorderRequest": {"examples": [{"symbol_ids": ["a24ff11d-4ac9-5506-9aba-5598104ae499", "ed6621c0-5979-526b-8ba1-452bf82b80c0"]}], "properties": {"symbol_ids": {"description": "Every symbol on the list, in the wanted order.", "items": {"format": "uuid", "type": "string"}, "title": "Symbol Ids", "type": "array"}}, "required": ["symbol_ids"], "title": "WatchlistReorderRequest", "type": "object"}, "WatchlistResponse": {"examples": [{"created_at": "2026-11-04T13:30:00Z", "id": "eb008601-9f76-5f47-89d1-95472e1d44e1", "name": "Tech leaders", "position": 0, "symbols": [{"asset_class": "equity", "display_name": "Apple Inc.", "exchange": "NASDAQ", "id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "is_active": true, "slug": "aapl-nasdaq", "ticker": "AAPL"}, {"asset_class": "equity", "display_name": "NVIDIA Corp.", "exchange": "NASDAQ", "id": "a24ff11d-4ac9-5506-9aba-5598104ae499", "is_active": true, "slug": "nvda-nasdaq", "ticker": "NVDA"}], "updated_at": "2026-11-04T13:30:00Z"}], "properties": {"created_at": {"title": "Created At", "type": "string"}, "id": {"format": "uuid", "title": "Id", "type": "string"}, "name": {"title": "Name", "type": "string"}, "position": {"description": "Order of this list among the caller's watchlists, from zero.", "title": "Position", "type": "integer"}, "symbols": {"items": {"$ref": "#/components/schemas/SymbolRef"}, "title": "Symbols", "type": "array"}, "updated_at": {"title": "Updated At", "type": "string"}}, "required": ["id", "name", "position", "created_at", "updated_at"], "title": "WatchlistResponse", "type": "object"}, "WatchlistSymbolRequest": {"examples": [{"symbol_id": "ed6621c0-5979-526b-8ba1-452bf82b80c0"}], "properties": {"symbol_id": {"format": "uuid", "title": "Symbol Id", "type": "string"}}, "required": ["symbol_id"], "title": "WatchlistSymbolRequest", "type": "object"}, "app__presentation__api__schemas__customer__RefreshRequest": {"examples": [{"refresh_token": "eyJhbGciOiJIUzI1NiIs...refresh-example"}], "properties": {"refresh_token": {"description": "The refresh token from the last sign-in or refresh. It works once.", "minLength": 1, "title": "Refresh Token", "type": "string"}}, "required": ["refresh_token"], "title": "RefreshRequest", "type": "object"}}, "securitySchemes": {"CustomerBearer": {"description": "Customer access token.", "scheme": "bearer", "type": "http"}}}, "info": {"description": "The Renzo API serves financial news and market research: published articles, symbols and market quotes, the economic calendar, market holidays and CFD adjustment calendars. Signed-in customers also manage watchlists, price alerts, notification preferences, billing and referrals.\n\nAll paths start with `/api/v1`. The UAT base URL is `https://api.uat.renzo-digital.com`.\n\n**Authentication.** Sign in with an emailed one-time code: `POST /api/v1/auth/otp/request`, then `POST /api/v1/auth/otp/verify`. Send the returned access token as `Authorization: Bearer <access_token>`. When it expires, swap the refresh token for a new pair at `POST /api/v1/auth/refresh`. Readers can also sign in with Google, Apple, Facebook, X or GitHub through `/api/v1/auth/social`; the same token pair comes back. Public reads need no token.\n\n**Errors** are RFC 7807 `application/problem+json` documents with a stable `code` to branch on. **Lists** use cursor pagination: pass `next_cursor` back as `cursor` until `has_more` is false. Send an `Idempotency-Key` header on writes you may retry; a retry with the same key replays the first answer.\n", "title": "Renzo API", "version": "0.1.0"}, "openapi": "3.1.0", "paths": {"/api/v1/articles": {"get": {"description": "Lists published articles, newest first, in the requested language (falls back to English). Filter by `type`; guides appear only with `type=guide`. `symbol` (a symbol slug) keeps articles about that symbol (primary tag); it works with `type`. `published_after` keeps articles published at or after that time. Rows carry no body. No token needed. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_articles_api_v1_articles_get", "parameters": [{"description": "Article locale, as the engine code or the public tag. Falls back to English.", "in": "query", "name": "locale", "required": false, "schema": {"anyOf": [{"maxLength": 16, "type": "string"}, {"type": "null"}], "description": "Article locale, as the engine code or the public tag. Falls back to English.", "title": "Locale"}}, {"in": "query", "name": "type", "required": false, "schema": {"anyOf": [{"enum": ["news", "opinion", "editorial", "guide"], "type": "string"}, {"type": "null"}], "title": "Type"}}, {"description": "Leave out every article with no translation in `locale`, not English.", "in": "query", "name": "exact_locale", "required": false, "schema": {"default": false, "description": "Leave out every article with no translation in `locale`, not English.", "title": "Exact Locale", "type": "boolean"}}, {"description": "A symbol slug. Keeps articles about it (primary tag).", "in": "query", "name": "symbol", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "A symbol slug. Keeps articles about it (primary tag).", "title": "Symbol"}}, {"description": "An ISO-8601 UTC time in the past. Keeps articles published at or after it.", "in": "query", "name": "published_after", "required": false, "schema": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "description": "An ISO-8601 UTC time in the past. Keeps articles published at or after it.", "title": "Published After"}}, {"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"access_level": "public", "byline": {"name": "Hafizah Rina", "url": "https://www.linkedin.com/in/hafizah-rina-43a1531a4"}, "created_at": "2026-11-04T13:30:00Z", "hero_image_url": "https://cdn.renzo-digital.com/articles/fed-holds-rates.jpg", "id": "f43679d3-0ab5-5f68-8bda-f0a4c5560594", "is_editors_pick": false, "is_scheduled": false, "locale": "en", "published_at": "2026-11-04T13:30:00Z", "requested_locale": "en", "seo_description": "The Fed kept rates unchanged and signalled patience.", "slug": "fed-holds-rates-steady-as-inflation-cools", "status": "published", "symbols": [{"asset_class": "index", "display_name": "US 500 Index", "exchange": "INDEX", "id": "63d60d4b-cbbd-510b-8352-cdb4ac4859ae", "is_active": true, "role": "primary", "slug": "us500-index", "ticker": "US500"}], "title": "Fed holds rates steady as inflation cools", "type": "news", "updated_at": "2026-11-04T13:30:00Z"}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_ArticleSummaryResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/articles", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "404": {"content": {"application/problem+json": {"examples": {"symbol_not_found": {"summary": "Not Found", "value": {"code": "symbol_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No active symbol has this slug.", "instance": "/api/v1/articles", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/symbol_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`symbol_not_found`: No active symbol has this slug."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/articles", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/articles", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List articles", "tags": ["articles"]}}, "/api/v1/articles/{article_id}/reactions": {"delete": {"description": "Removes your like or dislike and returns the new totals. Removing a reaction that is not there is not an error. Needs a customer token and a username on the account.", "operationId": "clear_reaction_api_v1_articles__article_id__reactions_delete", "parameters": [{"in": "path", "name": "article_id", "required": true, "schema": {"format": "uuid", "title": "Article Id", "type": "string"}}], "responses": {"200": {"content": {"application/json": {"example": {"article_id": "f43679d3-0ab5-5f68-8bda-f0a4c5560594", "dislike_count": 7, "kind": "like", "like_count": 128}, "schema": {"$ref": "#/components/schemas/ReactionResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "403": {"content": {"application/problem+json": {"examples": {"article_access_required": {"summary": "Article Access Required", "value": {"code": "article_access_required", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Your plan does not open this article.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 403, "title": "Article Access Required", "type": "https://errors.renzo.app/article_access_required"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`article_access_required`: Your plan does not open this article."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`not_found`: No resource exists at this path, or it is not visible to you."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/articles/{article_id}/reactions", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Remove your reaction", "tags": ["engagement"]}, "get": {"description": "Returns the exact like and dislike totals of an article. With a token, it also returns your own reaction. A token is optional.", "operationId": "read_reactions_api_v1_articles__article_id__reactions_get", "parameters": [{"in": "path", "name": "article_id", "required": true, "schema": {"format": "uuid", "title": "Article Id", "type": "string"}}], "responses": {"200": {"content": {"application/json": {"example": {"article_id": "f43679d3-0ab5-5f68-8bda-f0a4c5560594", "dislike_count": 7, "kind": "like", "like_count": 128}, "schema": {"$ref": "#/components/schemas/ReactionResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`not_found`: No resource exists at this path, or it is not visible to you."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/articles/{article_id}/reactions", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Get reaction totals", "tags": ["engagement"]}, "put": {"description": "Sets your reaction to `like` or `dislike` and returns the new totals. Sending the same reaction twice changes nothing. Needs a customer token and a username on the account.", "operationId": "set_reaction_api_v1_articles__article_id__reactions_put", "parameters": [{"in": "path", "name": "article_id", "required": true, "schema": {"format": "uuid", "title": "Article Id", "type": "string"}}], "requestBody": {"content": {"application/json": {"example": {"kind": "like"}, "schema": {"$ref": "#/components/schemas/ReactionRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"article_id": "f43679d3-0ab5-5f68-8bda-f0a4c5560594", "dislike_count": 7, "kind": "like", "like_count": 128}, "schema": {"$ref": "#/components/schemas/ReactionResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "403": {"content": {"application/problem+json": {"examples": {"article_access_required": {"summary": "Article Access Required", "value": {"code": "article_access_required", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Your plan does not open this article.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 403, "title": "Article Access Required", "type": "https://errors.renzo.app/article_access_required"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`article_access_required`: Your plan does not open this article."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`not_found`: No resource exists at this path, or it is not visible to you."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/articles/{article_id}/reactions", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/articles/{article_id}/reactions", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Like or dislike an article", "tags": ["engagement"]}}, "/api/v1/articles/{article_id}/views": {"post": {"description": "Counts one read of an article for its view totals. Call it after the reader has stayed on the article for a few seconds; repeat reads are deduplicated. No token needed.", "operationId": "report_view_api_v1_articles__article_id__views_post", "parameters": [{"in": "path", "name": "article_id", "required": true, "schema": {"format": "uuid", "title": "Article Id", "type": "string"}}], "requestBody": {"content": {"application/json": {"example": {"locale": "en", "session_id": "b7e2c9a41f6d4e08"}, "schema": {"$ref": "#/components/schemas/ViewBeaconRequest"}}}, "required": true}, "responses": {"202": {"content": {"application/json": {"example": {"recorded": true}, "schema": {"$ref": "#/components/schemas/ViewBeaconResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/articles/{article_id}/views", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/articles/{article_id}/views", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`not_found`: No resource exists at this path, or it is not visible to you."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/articles/{article_id}/views", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/articles/{article_id}/views", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "Report an article read", "tags": ["engagement"]}}, "/api/v1/articles/{slug}": {"get": {"description": "Returns one published article by slug, in the requested language (falls back to English). Some articles need sign-in (401 `article_sign_in_required`); on Premium articles a reader without the plan gets only the first blocks as a preview. An archived article answers 410. A token is optional.", "operationId": "get_article_api_v1_articles__slug__get", "parameters": [{"in": "path", "name": "slug", "required": true, "schema": {"title": "Slug", "type": "string"}}, {"description": "Article locale, as the engine code or the public tag. Falls back to English.", "in": "query", "name": "locale", "required": false, "schema": {"anyOf": [{"maxLength": 16, "type": "string"}, {"type": "null"}], "description": "Article locale, as the engine code or the public tag. Falls back to English.", "title": "Locale"}}], "responses": {"200": {"content": {"application/json": {"example": {"access": "full", "access_level": "public", "available_locales": ["en", "ru"], "blocks": [{"level": 2, "text": "Rates unchanged, tone softer", "type": "heading"}, {"text": "The Fed held rates and said inflation nears its 2% goal.", "type": "paragraph"}, {"items": ["**Rates:** held at 5.25%", "[Next meeting](/economic-calendar) is in December"], "style": "bullet", "type": "list"}, {"exchange": "INDEX", "label": "S&P 500", "symbol": "US500", "type": "symbol_card"}, {"text": "Friday payrolls are the next test for rate expectations.", "title": "What to watch", "type": "callout", "variant": "info"}, {"items": [{"publisher": "Federal Reserve", "title": "FOMC statement", "url": "https://www.federalreserve.gov/"}], "type": "sources"}], "byline": {"name": "Hafizah Rina", "url": "https://www.linkedin.com/in/hafizah-rina-43a1531a4"}, "hero_image_url": "https://cdn.renzo-digital.com/articles/fed-holds-rates.jpg", "id": "f43679d3-0ab5-5f68-8bda-f0a4c5560594", "is_editors_pick": false, "locale": "en", "published_at": "2026-11-04T13:30:00Z", "requested_locale": "en", "seo_description": "The Fed kept rates unchanged and signalled patience.", "seo_title": "Fed holds rates steady as inflation cools | Renzo", "slug": "fed-holds-rates-steady-as-inflation-cools", "symbols": [{"asset_class": "index", "display_name": "US 500 Index", "exchange": "INDEX", "id": "63d60d4b-cbbd-510b-8352-cdb4ac4859ae", "is_active": true, "role": "primary", "slug": "us500-index", "ticker": "US500"}], "title": "Fed holds rates steady as inflation cools", "translations": [{"locale": "en", "slug": "fed-holds-rates-steady-as-inflation-cools"}, {"locale": "ru", "slug": "\u0444\u0440\u0441-\u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0430-\u0441\u0442\u0430\u0432\u043a\u0443"}], "type": "news", "updated_at": "2026-11-04T13:30:00Z"}, "schema": {"$ref": "#/components/schemas/PublicArticleResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/articles/{slug}", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"article_sign_in_required": {"summary": "Sign In Required", "value": {"code": "article_sign_in_required", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This article is only for signed-in readers.", "instance": "/api/v1/articles/{slug}", "status": 401, "title": "Sign In Required", "type": "https://errors.renzo.app/article_sign_in_required"}}, "invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/articles/{slug}", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/articles/{slug}", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/articles/{slug}", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/articles/{slug}", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`article_sign_in_required`: This article is only for signed-in readers."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/articles/{slug}", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`not_found`: No resource exists at this path, or it is not visible to you."}, "410": {"content": {"application/problem+json": {"examples": {"article_archived": {"summary": "Gone", "value": {"code": "article_archived", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The article was published once but is now archived.", "instance": "/api/v1/articles/{slug}", "status": 410, "title": "Gone", "type": "https://errors.renzo.app/article_archived"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`article_archived`: The article was published once but is now archived."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/articles/{slug}", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/articles/{slug}", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Get an article", "tags": ["articles"]}}, "/api/v1/articles/{slug}/recommendations": {"get": {"description": "Returns published article summaries for a sidebar, without bodies or credentials. Related articles rank by shared primary symbols, then fall back to the same type; ties use newest publication first. Trending articles rank by counted reader views in the last seven days, then newest publication, so articles with no views still fill the list. The current article and related results are excluded from trending. Only content-engine articles are suggested; guides, Soro articles and internally authored articles are excluded. Each list contains up to `limit` results; empty lists are valid. The requested locale falls back to English unless `exact_locale=true`.", "operationId": "get_article_recommendations_api_v1_articles__slug__recommendations_get", "parameters": [{"in": "path", "name": "slug", "required": true, "schema": {"title": "Slug", "type": "string"}}, {"description": "Article locale, as the engine code or the public tag. Falls back to English.", "in": "query", "name": "locale", "required": false, "schema": {"anyOf": [{"maxLength": 16, "type": "string"}, {"type": "null"}], "description": "Article locale, as the engine code or the public tag. Falls back to English.", "title": "Locale"}}, {"description": "Leave out every article with no translation in `locale`, not English.", "in": "query", "name": "exact_locale", "required": false, "schema": {"default": false, "description": "Leave out every article with no translation in `locale`, not English.", "title": "Exact Locale", "type": "boolean"}}, {"in": "query", "name": "limit", "required": false, "schema": {"default": 5, "maximum": 10, "minimum": 1, "title": "Limit", "type": "integer"}}], "responses": {"200": {"content": {"application/json": {"example": {"related": [{"access_level": "public", "created_at": "2026-11-04T13:30:00Z", "id": "f43679d3-0ab5-5f68-8bda-f0a4c5560594", "locale": "en", "published_at": "2026-11-04T13:30:00Z", "requested_locale": "en", "slug": "fed-holds-rates-steady-as-inflation-cools", "status": "published", "title": "Fed holds rates steady as inflation cools", "type": "news", "updated_at": "2026-11-04T13:30:00Z"}], "trending": []}, "schema": {"$ref": "#/components/schemas/ArticleRecommendationsResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/articles/{slug}/recommendations", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/articles/{slug}/recommendations", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`not_found`: No resource exists at this path, or it is not visible to you."}, "410": {"content": {"application/problem+json": {"examples": {"article_archived": {"summary": "Gone", "value": {"code": "article_archived", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The article was published once but is now archived.", "instance": "/api/v1/articles/{slug}/recommendations", "status": 410, "title": "Gone", "type": "https://errors.renzo.app/article_archived"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`article_archived`: The article was published once but is now archived."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/articles/{slug}/recommendations", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/articles/{slug}/recommendations", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "Get related and trending articles", "tags": ["articles"]}}, "/api/v1/auth/logout": {"post": {"description": "Ends the session of the access token you send. Other devices stay signed in. Needs a customer token.", "operationId": "logout_api_v1_auth_logout_post", "responses": {"204": {"description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/auth/logout", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/auth/logout", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/auth/logout", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/auth/logout", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/auth/logout", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/auth/logout", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/auth/logout", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/auth/logout", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Sign out of this session", "tags": ["auth"]}}, "/api/v1/auth/logout-all": {"post": {"description": "Ends every session of the account at once, for example after losing a device. Needs a customer token.", "operationId": "logout_all_api_v1_auth_logout_all_post", "responses": {"204": {"description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/auth/logout-all", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/auth/logout-all", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/auth/logout-all", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/auth/logout-all", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/auth/logout-all", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/auth/logout-all", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/auth/logout-all", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/auth/logout-all", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Sign out of every session", "tags": ["auth"]}}, "/api/v1/auth/otp/request": {"post": {"description": "Emails a six-digit code and a magic link to the address, and returns a `challenge_token` for the verify step. The answer is the same whether or not the address has an account. No token needed. Each request has its own code and attempt budget; existing challenges stay usable until consumed or expired. Throttled per IP address, and per email address to one code a minute and five an hour; a 429 carries `Retry-After`.", "operationId": "request_otp_api_v1_auth_otp_request_post", "requestBody": {"content": {"application/json": {"example": {"email": "reader@example.com"}, "schema": {"$ref": "#/components/schemas/OtpRequest"}}}, "required": true}, "responses": {"202": {"content": {"application/json": {"example": {"attempts_remaining": 5, "challenge_token": "ch_7Hq2mXz9Kp4TnV1b", "code_expires_at": "2026-11-04T13:35:00Z", "expires_at": "2026-11-04T13:40:00Z"}, "schema": {"$ref": "#/components/schemas/OtpChallengeResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/auth/otp/request", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/auth/otp/request", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"email_domain_not_allowed": {"summary": "Email Domain Not Allowed", "value": {"code": "email_domain_not_allowed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "New accounts cannot use a disposable email domain.", "instance": "/api/v1/auth/otp/request", "status": 422, "title": "Email Domain Not Allowed", "type": "https://errors.renzo.app/email_domain_not_allowed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`email_domain_not_allowed`: New accounts cannot use a disposable email domain."}, "429": {"content": {"application/problem+json": {"examples": {"rate_limited": {"summary": "Too Many Requests", "value": {"code": "rate_limited", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You sent too many requests in a short time.", "instance": "/api/v1/auth/otp/request", "retry_after_seconds": 30, "status": 429, "title": "Too Many Requests", "type": "https://errors.renzo.app/rate_limited"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`rate_limited`: You sent too many requests in a short time."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/auth/otp/request", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}, "503": {"content": {"application/problem+json": {"examples": {"auth_temporarily_unavailable": {"summary": "Sign-in Unavailable", "value": {"code": "auth_temporarily_unavailable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Sign-in is paused for a moment to protect accounts.", "instance": "/api/v1/auth/otp/request", "status": 503, "title": "Sign-in Unavailable", "type": "https://errors.renzo.app/auth_temporarily_unavailable"}}, "dependency_unavailable": {"summary": "Service Unavailable", "value": {"code": "dependency_unavailable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A service we depend on, such as email delivery, did not answer.", "instance": "/api/v1/auth/otp/request", "status": 503, "title": "Service Unavailable", "type": "https://errors.renzo.app/dependency_unavailable"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`auth_temporarily_unavailable`: Sign-in is paused for a moment to protect accounts. `dependency_unavailable`: A service we depend on, such as email delivery, did not answer."}}, "summary": "Request a sign-in code", "tags": ["auth"]}}, "/api/v1/auth/otp/verify": {"post": {"description": "Exchanges the `challenge_token` and the emailed code for an access and refresh token pair. The first sign-in creates the account with status `pending_profile`; set a username next with `PATCH /api/v1/users/me`. No token needed. Throttled per IP address.", "operationId": "verify_otp_api_v1_auth_otp_verify_post", "requestBody": {"content": {"application/json": {"example": {"challenge_token": "ch_7Hq2mXz9Kp4TnV1b", "code": "482913", "referral_code": "RENZO-A7K2", "referral_source": "link", "timezone": "America/New_York"}, "schema": {"$ref": "#/components/schemas/OtpVerifyRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"created": false, "profile": {"article_language": "en", "country": "US", "created_at": "2026-10-04T13:30:00Z", "currency": "USD", "email": "reader@example.com", "id": "eca8506d-1dfa-56a2-8765-96305e99f89c", "last_login_at": "2026-11-04T13:30:00Z", "status": "active", "timezone": "America/New_York", "ui_language": "en", "username": "marketwatcher"}, "tokens": {"access_token": "eyJhbGciOiJIUzI1NiIs...example", "expires_at": "2026-11-04T13:45:00Z", "expires_in": 900, "refresh_expires_at": "2026-12-04T13:30:00Z", "refresh_token": "eyJhbGciOiJIUzI1NiIs...refresh-example", "token_type": "Bearer"}}, "schema": {"$ref": "#/components/schemas/LoginResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/auth/otp/verify", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"otp_challenge_expired": {"summary": "Challenge Expired", "value": {"code": "otp_challenge_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The login challenge is too old.", "instance": "/api/v1/auth/otp/verify", "status": 401, "title": "Challenge Expired", "type": "https://errors.renzo.app/otp_challenge_expired"}}, "otp_challenge_invalid": {"summary": "Invalid Challenge", "value": {"code": "otp_challenge_invalid", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `challenge_token` is unknown or was already used.", "instance": "/api/v1/auth/otp/verify", "status": 401, "title": "Invalid Challenge", "type": "https://errors.renzo.app/otp_challenge_invalid"}}, "otp_code_expired": {"summary": "Code Expired", "value": {"code": "otp_code_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The emailed code is past its expiry time.", "instance": "/api/v1/auth/otp/verify", "status": 401, "title": "Code Expired", "type": "https://errors.renzo.app/otp_code_expired"}}, "otp_code_incorrect": {"summary": "Incorrect Code", "value": {"code": "otp_code_incorrect", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The six-digit code does not match the one we emailed.", "instance": "/api/v1/auth/otp/verify", "status": 401, "title": "Incorrect Code", "type": "https://errors.renzo.app/otp_code_incorrect"}}, "otp_too_many_attempts": {"summary": "Too Many Attempts", "value": {"code": "otp_too_many_attempts", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Too many wrong codes were tried for this challenge, so it is closed.", "instance": "/api/v1/auth/otp/verify", "status": 401, "title": "Too Many Attempts", "type": "https://errors.renzo.app/otp_too_many_attempts"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`otp_challenge_invalid`: The `challenge_token` is unknown or was already used. `otp_challenge_expired`: The login challenge is too old. `otp_code_incorrect`: The six-digit code does not match the one we emailed. `otp_code_expired`: The emailed code is past its expiry time. `otp_too_many_attempts`: Too many wrong codes were tried for this challenge, so it is closed."}, "403": {"content": {"application/problem+json": {"examples": {"customer_account_deactivated": {"summary": "Account Deactivated", "value": {"code": "customer_account_deactivated", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Renzo staff deactivated this account.", "instance": "/api/v1/auth/otp/verify", "status": 403, "title": "Account Deactivated", "type": "https://errors.renzo.app/customer_account_deactivated"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`customer_account_deactivated`: Renzo staff deactivated this account."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/auth/otp/verify", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"email_domain_not_allowed": {"summary": "Email Domain Not Allowed", "value": {"code": "email_domain_not_allowed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "New accounts cannot use a disposable email domain.", "instance": "/api/v1/auth/otp/verify", "status": 422, "title": "Email Domain Not Allowed", "type": "https://errors.renzo.app/email_domain_not_allowed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`email_domain_not_allowed`: New accounts cannot use a disposable email domain."}, "429": {"content": {"application/problem+json": {"examples": {"rate_limited": {"summary": "Too Many Requests", "value": {"code": "rate_limited", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You sent too many requests in a short time.", "instance": "/api/v1/auth/otp/verify", "retry_after_seconds": 30, "status": 429, "title": "Too Many Requests", "type": "https://errors.renzo.app/rate_limited"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`rate_limited`: You sent too many requests in a short time."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/auth/otp/verify", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}, "503": {"content": {"application/problem+json": {"examples": {"auth_temporarily_unavailable": {"summary": "Sign-in Unavailable", "value": {"code": "auth_temporarily_unavailable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Sign-in is paused for a moment to protect accounts.", "instance": "/api/v1/auth/otp/verify", "status": 503, "title": "Sign-in Unavailable", "type": "https://errors.renzo.app/auth_temporarily_unavailable"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`auth_temporarily_unavailable`: Sign-in is paused for a moment to protect accounts."}}, "summary": "Sign in with the emailed code", "tags": ["auth"]}}, "/api/v1/auth/password/login": {"post": {"description": "Signs in one of the few review accounts that Renzo gives to app and directory reviewers. Regular customers cannot use it; they sign in with an emailed code. Returns a token pair. Throttled per IP address and per email; a 429 carries `Retry-After`.", "operationId": "password_login_api_v1_auth_password_login_post", "requestBody": {"content": {"application/json": {"example": {"email": "reader@example.com", "password": "correct-horse-battery"}, "schema": {"$ref": "#/components/schemas/PasswordLoginRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"created": false, "profile": {"article_language": "en", "country": "US", "created_at": "2026-10-04T13:30:00Z", "currency": "USD", "email": "reader@example.com", "id": "eca8506d-1dfa-56a2-8765-96305e99f89c", "last_login_at": "2026-11-04T13:30:00Z", "status": "active", "timezone": "America/New_York", "ui_language": "en", "username": "marketwatcher"}, "tokens": {"access_token": "eyJhbGciOiJIUzI1NiIs...example", "expires_at": "2026-11-04T13:45:00Z", "expires_in": 900, "refresh_expires_at": "2026-12-04T13:30:00Z", "refresh_token": "eyJhbGciOiJIUzI1NiIs...refresh-example", "token_type": "Bearer"}}, "schema": {"$ref": "#/components/schemas/LoginResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/auth/password/login", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_credentials": {"summary": "Invalid Credentials", "value": {"code": "invalid_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The email or password of the review account is wrong.", "instance": "/api/v1/auth/password/login", "status": 401, "title": "Invalid Credentials", "type": "https://errors.renzo.app/invalid_credentials"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_credentials`: The email or password of the review account is wrong."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/auth/password/login", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/auth/password/login", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "429": {"content": {"application/problem+json": {"examples": {"rate_limited": {"summary": "Too Many Requests", "value": {"code": "rate_limited", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You sent too many requests in a short time.", "instance": "/api/v1/auth/password/login", "retry_after_seconds": 30, "status": 429, "title": "Too Many Requests", "type": "https://errors.renzo.app/rate_limited"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`rate_limited`: You sent too many requests in a short time."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/auth/password/login", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "Sign in with a password (review accounts)", "tags": ["auth"]}}, "/api/v1/auth/refresh": {"post": {"description": "Exchanges a refresh token for a new access and refresh token pair. Each refresh token works once: sending a used one again ends the whole session, as a guard against theft. No access token needed.", "operationId": "refresh_api_v1_auth_refresh_post", "requestBody": {"content": {"application/json": {"example": {"refresh_token": "eyJhbGciOiJIUzI1NiIs...refresh-example"}, "schema": {"$ref": "#/components/schemas/app__presentation__api__schemas__customer__RefreshRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"access_token": "eyJhbGciOiJIUzI1NiIs...example", "expires_at": "2026-11-04T13:45:00Z", "expires_in": 900, "refresh_expires_at": "2026-12-04T13:30:00Z", "refresh_token": "eyJhbGciOiJIUzI1NiIs...refresh-example", "token_type": "Bearer"}, "schema": {"$ref": "#/components/schemas/CustomerTokenPairResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/auth/refresh", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/auth/refresh", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/auth/refresh", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/auth/refresh", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_token`: The access or refresh token is malformed, signed wrongly, or already used. `token_expired`: The access token is past its expiry time. `session_revoked`: The session was ended by a logout, a reused refresh token, or account deletion."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/auth/refresh", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/auth/refresh", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/auth/refresh", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "Refresh the token pair", "tags": ["auth"]}}, "/api/v1/auth/social/email": {"post": {"description": "Emails a six-digit code to the address for a social sign-in that is waiting on an email. Send the `pending_token` from the callback. Calling it again with another address sends a new code there, and the earlier code stops working. No token needed.", "operationId": "submit_email_api_v1_auth_social_email_post", "requestBody": {"content": {"application/json": {"example": {"email": "reader@example.com", "pending_token": "pd_Lm3Nq8Rt2Vw5"}, "schema": {"$ref": "#/components/schemas/SocialEmailRequest"}}}, "required": true}, "responses": {"202": {"content": {"application/json": {"example": {"attempts_remaining": 5, "challenge_token": "ch_7Hq2mXz9Kp4TnV1b", "code_expires_at": "2026-11-04T13:35:00Z", "expires_at": "2026-11-04T13:40:00Z", "masked_email": "r*****@example.com", "pending_token": "pd_Lm3Nq8Rt2Vw5", "status": "verify_email"}, "schema": {"$ref": "#/components/schemas/SocialVerifyEmailResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/auth/social/email", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"social_pending_invalid": {"summary": "Sign-in Expired", "value": {"code": "social_pending_invalid", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `pending_token` is unknown or expired.", "instance": "/api/v1/auth/social/email", "status": 401, "title": "Sign-in Expired", "type": "https://errors.renzo.app/social_pending_invalid"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`social_pending_invalid`: The `pending_token` is unknown or expired."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/auth/social/email", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/auth/social/email", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "429": {"content": {"application/problem+json": {"examples": {"rate_limited": {"summary": "Too Many Requests", "value": {"code": "rate_limited", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You sent too many requests in a short time.", "instance": "/api/v1/auth/social/email", "retry_after_seconds": 30, "status": 429, "title": "Too Many Requests", "type": "https://errors.renzo.app/rate_limited"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`rate_limited`: You sent too many requests in a short time."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/auth/social/email", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}, "503": {"content": {"application/problem+json": {"examples": {"auth_temporarily_unavailable": {"summary": "Sign-in Unavailable", "value": {"code": "auth_temporarily_unavailable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Sign-in is paused for a moment to protect accounts.", "instance": "/api/v1/auth/social/email", "status": 503, "title": "Sign-in Unavailable", "type": "https://errors.renzo.app/auth_temporarily_unavailable"}}, "dependency_unavailable": {"summary": "Service Unavailable", "value": {"code": "dependency_unavailable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A service we depend on, such as email delivery, did not answer.", "instance": "/api/v1/auth/social/email", "status": 503, "title": "Service Unavailable", "type": "https://errors.renzo.app/dependency_unavailable"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`auth_temporarily_unavailable`: Sign-in is paused for a moment to protect accounts. `dependency_unavailable`: A service we depend on, such as email delivery, did not answer."}}, "summary": "Send the sign-in code to an email address", "tags": ["auth"]}}, "/api/v1/auth/social/providers": {"get": {"description": "Lists the social sign-in providers that are switched on: some of google, apple, facebook, x and github. Show a button only for these. No token needed.", "operationId": "list_providers_api_v1_auth_social_providers_get", "responses": {"200": {"content": {"application/json": {"example": {"providers": ["google", "apple", "github"]}, "schema": {"$ref": "#/components/schemas/SocialProvidersResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/auth/social/providers", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/auth/social/providers", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/auth/social/providers", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/auth/social/providers", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List social sign-in providers", "tags": ["auth"]}}, "/api/v1/auth/social/verify": {"post": {"description": "Exchanges the `challenge_token` and the emailed code for a token pair. The provider is linked to the account on that address, or a new account is made for it. No token needed. Throttled per IP address.", "operationId": "verify_api_v1_auth_social_verify_post", "requestBody": {"content": {"application/json": {"example": {"challenge_token": "ch_7Hq2mXz9Kp4TnV1b", "code": "482913"}, "schema": {"$ref": "#/components/schemas/SocialVerifyRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"created": false, "profile": {"article_language": "en", "country": "US", "created_at": "2026-10-04T13:30:00Z", "currency": "USD", "email": "reader@example.com", "id": "eca8506d-1dfa-56a2-8765-96305e99f89c", "last_login_at": "2026-11-04T13:30:00Z", "status": "active", "timezone": "America/New_York", "ui_language": "en", "username": "marketwatcher"}, "tokens": {"access_token": "eyJhbGciOiJIUzI1NiIs...example", "expires_at": "2026-11-04T13:45:00Z", "expires_in": 900, "refresh_expires_at": "2026-12-04T13:30:00Z", "refresh_token": "eyJhbGciOiJIUzI1NiIs...refresh-example", "token_type": "Bearer"}}, "schema": {"$ref": "#/components/schemas/LoginResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/auth/social/verify", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"otp_challenge_expired": {"summary": "Challenge Expired", "value": {"code": "otp_challenge_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The login challenge is too old.", "instance": "/api/v1/auth/social/verify", "status": 401, "title": "Challenge Expired", "type": "https://errors.renzo.app/otp_challenge_expired"}}, "otp_challenge_invalid": {"summary": "Invalid Challenge", "value": {"code": "otp_challenge_invalid", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `challenge_token` is unknown or was already used.", "instance": "/api/v1/auth/social/verify", "status": 401, "title": "Invalid Challenge", "type": "https://errors.renzo.app/otp_challenge_invalid"}}, "otp_code_expired": {"summary": "Code Expired", "value": {"code": "otp_code_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The emailed code is past its expiry time.", "instance": "/api/v1/auth/social/verify", "status": 401, "title": "Code Expired", "type": "https://errors.renzo.app/otp_code_expired"}}, "otp_code_incorrect": {"summary": "Incorrect Code", "value": {"code": "otp_code_incorrect", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The six-digit code does not match the one we emailed.", "instance": "/api/v1/auth/social/verify", "status": 401, "title": "Incorrect Code", "type": "https://errors.renzo.app/otp_code_incorrect"}}, "otp_too_many_attempts": {"summary": "Too Many Attempts", "value": {"code": "otp_too_many_attempts", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Too many wrong codes were tried for this challenge, so it is closed.", "instance": "/api/v1/auth/social/verify", "status": 401, "title": "Too Many Attempts", "type": "https://errors.renzo.app/otp_too_many_attempts"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`otp_challenge_invalid`: The `challenge_token` is unknown or was already used. `otp_challenge_expired`: The login challenge is too old. `otp_code_incorrect`: The six-digit code does not match the one we emailed. `otp_code_expired`: The emailed code is past its expiry time. `otp_too_many_attempts`: Too many wrong codes were tried for this challenge, so it is closed."}, "403": {"content": {"application/problem+json": {"examples": {"customer_account_deactivated": {"summary": "Account Deactivated", "value": {"code": "customer_account_deactivated", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Renzo staff deactivated this account.", "instance": "/api/v1/auth/social/verify", "status": 403, "title": "Account Deactivated", "type": "https://errors.renzo.app/customer_account_deactivated"}}, "customer_account_deleted": {"summary": "Account Deleted", "value": {"code": "customer_account_deleted", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This account was deleted and its grace period is over.", "instance": "/api/v1/auth/social/verify", "status": 403, "title": "Account Deleted", "type": "https://errors.renzo.app/customer_account_deleted"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`customer_account_deactivated`: Renzo staff deactivated this account. `customer_account_deleted`: This account was deleted and its grace period is over."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/auth/social/verify", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "409": {"content": {"application/problem+json": {"examples": {"identity_already_linked": {"summary": "Provider Already Linked", "value": {"code": "identity_already_linked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Another account of the same provider is already linked to this Renzo account.", "instance": "/api/v1/auth/social/verify", "status": 409, "title": "Provider Already Linked", "type": "https://errors.renzo.app/identity_already_linked"}}, "identity_in_use": {"summary": "Identity In Use", "value": {"code": "identity_in_use", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This provider account is linked to another Renzo account.", "instance": "/api/v1/auth/social/verify", "status": 409, "title": "Identity In Use", "type": "https://errors.renzo.app/identity_in_use"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`identity_in_use`: This provider account is linked to another Renzo account. `identity_already_linked`: Another account of the same provider is already linked to this Renzo account."}, "422": {"content": {"application/problem+json": {"examples": {"email_domain_not_allowed": {"summary": "Email Domain Not Allowed", "value": {"code": "email_domain_not_allowed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "New accounts cannot use a disposable email domain.", "instance": "/api/v1/auth/social/verify", "status": 422, "title": "Email Domain Not Allowed", "type": "https://errors.renzo.app/email_domain_not_allowed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`email_domain_not_allowed`: New accounts cannot use a disposable email domain."}, "429": {"content": {"application/problem+json": {"examples": {"rate_limited": {"summary": "Too Many Requests", "value": {"code": "rate_limited", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You sent too many requests in a short time.", "instance": "/api/v1/auth/social/verify", "retry_after_seconds": 30, "status": 429, "title": "Too Many Requests", "type": "https://errors.renzo.app/rate_limited"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`rate_limited`: You sent too many requests in a short time."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/auth/social/verify", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}, "503": {"content": {"application/problem+json": {"examples": {"auth_temporarily_unavailable": {"summary": "Sign-in Unavailable", "value": {"code": "auth_temporarily_unavailable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Sign-in is paused for a moment to protect accounts.", "instance": "/api/v1/auth/social/verify", "status": 503, "title": "Sign-in Unavailable", "type": "https://errors.renzo.app/auth_temporarily_unavailable"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`auth_temporarily_unavailable`: Sign-in is paused for a moment to protect accounts."}}, "summary": "Finish a social sign-in with the emailed code", "tags": ["auth"]}}, "/api/v1/auth/social/{provider}/callback": {"post": {"description": "Trades the provider's `code` for the provider account, then answers by `status`. `signed_in` carries tokens. `verify_email` means a code went to the address: post it to `/auth/social/verify`. `email_required` means the provider gave no email: post one to `/auth/social/email`. `linked` means a link finished; it needs the starting token.", "operationId": "callback_api_v1_auth_social__provider__callback_post", "parameters": [{"description": "google, apple, facebook, x or github.", "in": "path", "name": "provider", "required": true, "schema": {"$ref": "#/components/schemas/Provider", "description": "google, apple, facebook, x or github."}}], "requestBody": {"content": {"application/json": {"example": {"code": "4/0AeanS0b-example", "state": "Zx81kQ2v"}, "schema": {"$ref": "#/components/schemas/SocialCallbackRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"examples": {"email_required": {"value": {"expires_at": "2026-11-04T13:40:00Z", "pending_token": "pd_Lm3Nq8Rt2Vw5", "status": "email_required"}}, "linked": {"value": {"identity": {"created_at": "2026-11-04T13:30:00Z", "email": "reader@example.com", "provider": "github"}, "status": "linked"}}, "signed_in": {"value": {"created": false, "profile": {"article_language": "en", "country": "US", "created_at": "2026-10-04T13:30:00Z", "currency": "USD", "email": "reader@example.com", "id": "eca8506d-1dfa-56a2-8765-96305e99f89c", "last_login_at": "2026-11-04T13:30:00Z", "status": "active", "timezone": "America/New_York", "ui_language": "en", "username": "marketwatcher"}, "status": "signed_in", "tokens": {"access_token": "eyJhbGciOiJIUzI1NiIs...example", "expires_at": "2026-11-04T13:45:00Z", "expires_in": 900, "refresh_expires_at": "2026-12-04T13:30:00Z", "refresh_token": "eyJhbGciOiJIUzI1NiIs...refresh-example", "token_type": "Bearer"}}}, "verify_email": {"value": {"attempts_remaining": 5, "challenge_token": "ch_7Hq2mXz9Kp4TnV1b", "code_expires_at": "2026-11-04T13:35:00Z", "expires_at": "2026-11-04T13:40:00Z", "masked_email": "r*****@example.com", "pending_token": "pd_Lm3Nq8Rt2Vw5", "status": "verify_email"}}}, "schema": {"discriminator": {"mapping": {"email_required": "#/components/schemas/SocialEmailRequiredResponse", "linked": "#/components/schemas/SocialLinkedResponse", "signed_in": "#/components/schemas/SocialSignedInResponse", "verify_email": "#/components/schemas/SocialVerifyEmailResponse"}, "propertyName": "status"}, "oneOf": [{"$ref": "#/components/schemas/SocialSignedInResponse"}, {"$ref": "#/components/schemas/SocialVerifyEmailResponse"}, {"$ref": "#/components/schemas/SocialEmailRequiredResponse"}, {"$ref": "#/components/schemas/SocialLinkedResponse"}], "title": "Response Callback Api V1 Auth Social  Provider  Callback Post"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/auth/social/{provider}/callback", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_state": {"summary": "Sign-in Expired", "value": {"code": "invalid_state", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `state` is unknown, used, expired or for another provider, or a link callback came without the token that started it.", "instance": "/api/v1/auth/social/{provider}/callback", "status": 401, "title": "Sign-in Expired", "type": "https://errors.renzo.app/invalid_state"}}, "invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/auth/social/{provider}/callback", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/auth/social/{provider}/callback", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/auth/social/{provider}/callback", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "social_login_failed": {"summary": "Social Sign-in Failed", "value": {"code": "social_login_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The provider did not confirm the sign-in, for example a used or wrong `code`.", "instance": "/api/v1/auth/social/{provider}/callback", "status": 401, "title": "Social Sign-in Failed", "type": "https://errors.renzo.app/social_login_failed"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/auth/social/{provider}/callback", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_state`: The `state` is unknown, used, expired or for another provider, or a link callback came without the token that started it. `social_login_failed`: The provider did not confirm the sign-in, for example a used or wrong `code`."}, "403": {"content": {"application/problem+json": {"examples": {"customer_account_deactivated": {"summary": "Account Deactivated", "value": {"code": "customer_account_deactivated", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Renzo staff deactivated this account.", "instance": "/api/v1/auth/social/{provider}/callback", "status": 403, "title": "Account Deactivated", "type": "https://errors.renzo.app/customer_account_deactivated"}}, "customer_account_deleted": {"summary": "Account Deleted", "value": {"code": "customer_account_deleted", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This account was deleted and its grace period is over.", "instance": "/api/v1/auth/social/{provider}/callback", "status": 403, "title": "Account Deleted", "type": "https://errors.renzo.app/customer_account_deleted"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`customer_account_deactivated`: Renzo staff deactivated this account. `customer_account_deleted`: This account was deleted and its grace period is over."}, "404": {"content": {"application/problem+json": {"examples": {"provider_not_enabled": {"summary": "Provider Not Enabled", "value": {"code": "provider_not_enabled", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This sign-in provider is not switched on.", "instance": "/api/v1/auth/social/{provider}/callback", "status": 404, "title": "Provider Not Enabled", "type": "https://errors.renzo.app/provider_not_enabled"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`provider_not_enabled`: This sign-in provider is not switched on."}, "409": {"content": {"application/problem+json": {"examples": {"identity_already_linked": {"summary": "Provider Already Linked", "value": {"code": "identity_already_linked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Another account of the same provider is already linked to this Renzo account.", "instance": "/api/v1/auth/social/{provider}/callback", "status": 409, "title": "Provider Already Linked", "type": "https://errors.renzo.app/identity_already_linked"}}, "identity_in_use": {"summary": "Identity In Use", "value": {"code": "identity_in_use", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This provider account is linked to another Renzo account.", "instance": "/api/v1/auth/social/{provider}/callback", "status": 409, "title": "Identity In Use", "type": "https://errors.renzo.app/identity_in_use"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`identity_in_use`: This provider account is linked to another Renzo account. `identity_already_linked`: Another account of the same provider is already linked to this Renzo account."}, "422": {"content": {"application/problem+json": {"examples": {"email_domain_not_allowed": {"summary": "Email Domain Not Allowed", "value": {"code": "email_domain_not_allowed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "New accounts cannot use a disposable email domain.", "instance": "/api/v1/auth/social/{provider}/callback", "status": 422, "title": "Email Domain Not Allowed", "type": "https://errors.renzo.app/email_domain_not_allowed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`email_domain_not_allowed`: New accounts cannot use a disposable email domain."}, "429": {"content": {"application/problem+json": {"examples": {"rate_limited": {"summary": "Too Many Requests", "value": {"code": "rate_limited", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You sent too many requests in a short time.", "instance": "/api/v1/auth/social/{provider}/callback", "retry_after_seconds": 30, "status": 429, "title": "Too Many Requests", "type": "https://errors.renzo.app/rate_limited"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`rate_limited`: You sent too many requests in a short time."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/auth/social/{provider}/callback", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}, "503": {"content": {"application/problem+json": {"examples": {"auth_temporarily_unavailable": {"summary": "Sign-in Unavailable", "value": {"code": "auth_temporarily_unavailable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Sign-in is paused for a moment to protect accounts.", "instance": "/api/v1/auth/social/{provider}/callback", "status": 503, "title": "Sign-in Unavailable", "type": "https://errors.renzo.app/auth_temporarily_unavailable"}}, "dependency_unavailable": {"summary": "Service Unavailable", "value": {"code": "dependency_unavailable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A service we depend on, such as email delivery, did not answer.", "instance": "/api/v1/auth/social/{provider}/callback", "status": 503, "title": "Service Unavailable", "type": "https://errors.renzo.app/dependency_unavailable"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`auth_temporarily_unavailable`: Sign-in is paused for a moment to protect accounts. `dependency_unavailable`: A service we depend on, such as email delivery, did not answer."}}, "security": [{"CustomerBearer": []}], "summary": "Finish a social sign-in or link", "tags": ["auth"]}}, "/api/v1/auth/social/{provider}/start": {"post": {"description": "Returns the provider URL to send the browser to. The provider then returns the browser with `code` and `state`; post both to the callback. The attempt lives about ten minutes. With `intent=link`, send the customer token: the provider is added to that account instead of signing in. Throttled per IP address.", "operationId": "start_api_v1_auth_social__provider__start_post", "parameters": [{"description": "google, apple, facebook, x or github.", "in": "path", "name": "provider", "required": true, "schema": {"$ref": "#/components/schemas/Provider", "description": "google, apple, facebook, x or github."}}], "requestBody": {"content": {"application/json": {"example": {"intent": "login", "referral_source": "link", "timezone": "America/New_York"}, "schema": {"$ref": "#/components/schemas/SocialStartRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"authorization_url": "https://accounts.google.com/o/oauth2/v2/auth?client_id=renzo&state=Zx81kQ2v&code_challenge=Q1w2E3r4"}, "schema": {"$ref": "#/components/schemas/SocialStartResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/auth/social/{provider}/start", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/auth/social/{provider}/start", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/auth/social/{provider}/start", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/auth/social/{provider}/start", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/auth/social/{provider}/start", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`missing_credentials`: The endpoint needs a customer access token and none was sent."}, "404": {"content": {"application/problem+json": {"examples": {"provider_not_enabled": {"summary": "Provider Not Enabled", "value": {"code": "provider_not_enabled", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This sign-in provider is not switched on.", "instance": "/api/v1/auth/social/{provider}/start", "status": 404, "title": "Provider Not Enabled", "type": "https://errors.renzo.app/provider_not_enabled"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`provider_not_enabled`: This sign-in provider is not switched on."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/auth/social/{provider}/start", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "429": {"content": {"application/problem+json": {"examples": {"rate_limited": {"summary": "Too Many Requests", "value": {"code": "rate_limited", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You sent too many requests in a short time.", "instance": "/api/v1/auth/social/{provider}/start", "retry_after_seconds": 30, "status": 429, "title": "Too Many Requests", "type": "https://errors.renzo.app/rate_limited"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`rate_limited`: You sent too many requests in a short time."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/auth/social/{provider}/start", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}, "503": {"content": {"application/problem+json": {"examples": {"auth_temporarily_unavailable": {"summary": "Sign-in Unavailable", "value": {"code": "auth_temporarily_unavailable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Sign-in is paused for a moment to protect accounts.", "instance": "/api/v1/auth/social/{provider}/start", "status": 503, "title": "Sign-in Unavailable", "type": "https://errors.renzo.app/auth_temporarily_unavailable"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`auth_temporarily_unavailable`: Sign-in is paused for a moment to protect accounts."}}, "security": [{"CustomerBearer": []}], "summary": "Start a social sign-in or link", "tags": ["auth"]}}, "/api/v1/billing": {"get": {"description": "Returns your live subscription, if any, and your first page of orders in one call. Needs a customer token.", "operationId": "read_my_billing_api_v1_billing_get", "parameters": [{"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"orders": {"has_more": false, "items": [{"amount_cents": 1900, "created_at": "2026-11-04T13:30:00Z", "currency": "USD", "id": "1dfc79cc-e393-582b-8d31-95630e266a46", "interval": "month", "paid_at": "2026-11-04T13:30:00Z", "payments": [{"amount_cents": 1900, "created_at": "2026-11-04T13:30:00Z", "currency": "USD", "id": "e0297886-e69a-5310-8dc7-b747c68e51cf", "order_id": "1dfc79cc-e393-582b-8d31-95630e266a46", "payment_method": "card", "provider": "stripe", "refunded_cents": 0, "refunds": [], "status": "succeeded", "succeeded_at": "2026-11-04T13:30:00Z", "updated_at": "2026-11-04T13:30:00Z", "user_id": "eca8506d-1dfa-56a2-8765-96305e99f89c"}], "period_end": "2026-11-04T13:30:00Z", "period_start": "2026-10-04T13:30:00Z", "price_id": "e20b39bd-9326-5178-9074-9c31733f3a2f", "product_id": "52108830-cd62-51b4-9ce3-f0051ed42666", "product_name": "Premium", "provider": "stripe", "status": "paid", "subscription_id": "cf4b1077-d871-5ff7-82f3-9a9bbe9514d3", "subtotal_cents": 1900, "tax_cents": 0, "total_cents": 1900, "updated_at": "2026-11-04T13:30:00Z", "user_id": "eca8506d-1dfa-56a2-8765-96305e99f89c"}], "limit": 20}, "subscription": {"amount_cents": 1900, "cancel_at_period_end": false, "currency": "USD", "current_period_end": "2026-11-04T13:30:00Z", "current_period_start": "2026-10-04T13:30:00Z", "id": "cf4b1077-d871-5ff7-82f3-9a9bbe9514d3", "interval": "month", "price_id": "e20b39bd-9326-5178-9074-9c31733f3a2f", "product_code": "premium", "referral_grant": false, "source": "provider", "started_at": "2026-10-04T13:30:00Z", "status": "active", "user_id": "eca8506d-1dfa-56a2-8765-96305e99f89c"}}, "schema": {"$ref": "#/components/schemas/CustomerBillingViewResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/billing", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/billing", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/billing", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/billing", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/billing", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/billing", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/billing", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/billing", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Get your billing overview", "tags": ["billing"]}}, "/api/v1/billing/checkout-sessions": {"post": {"description": "Creates a hosted checkout page for one price and returns its URL; send the user there to pay. You have at most one open checkout: the same price answers the open page again, and another price closes it first. Refused while you already have a live subscription; change its price instead. Needs a customer token and a username on the account. Send an `Idempotency-Key` header so a retry replays the first answer instead of acting twice.", "operationId": "start_checkout_api_v1_billing_checkout_sessions_post", "parameters": [{"description": "Retry-safety token. A repeat with the same key replays the first response.", "in": "header", "name": "Idempotency-Key", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Retry-safety token. A repeat with the same key replays the first response.", "title": "Idempotency-Key"}}], "requestBody": {"content": {"application/json": {"example": {"price_id": "e20b39bd-9326-5178-9074-9c31733f3a2f"}, "schema": {"$ref": "#/components/schemas/CheckoutRequest"}}}, "required": true}, "responses": {"201": {"content": {"application/json": {"example": {"expires_at": "2026-11-04T14:00:00Z", "id": "cs_test_a1B2c3D4e5F6g7H8", "url": "https://checkout.stripe.com/c/pay/cs_test_a1B2c3D4e5F6g7H8"}, "schema": {"$ref": "#/components/schemas/CheckoutSessionResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/billing/checkout-sessions", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/billing/checkout-sessions", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/billing/checkout-sessions", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/billing/checkout-sessions", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/billing/checkout-sessions", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"product_price_not_found": {"summary": "Not Found", "value": {"code": "product_price_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No price has this ID.", "instance": "/api/v1/billing/checkout-sessions", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/product_price_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`product_price_not_found`: No price has this ID."}, "409": {"content": {"application/problem+json": {"examples": {"checkout_in_progress": {"summary": "Checkout In Progress", "value": {"code": "checkout_in_progress", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Another checkout request of this account is still running.", "instance": "/api/v1/billing/checkout-sessions", "status": 409, "title": "Checkout In Progress", "type": "https://errors.renzo.app/checkout_in_progress"}}, "product_price_not_for_sale": {"summary": "Price Not For Sale", "value": {"code": "product_price_not_for_sale", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This price is retired or cannot be bought.", "instance": "/api/v1/billing/checkout-sessions", "status": 409, "title": "Price Not For Sale", "type": "https://errors.renzo.app/product_price_not_for_sale"}}, "profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/billing/checkout-sessions", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}, "subscription_already_active": {"summary": "Subscription Already Active", "value": {"code": "subscription_already_active", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You already have a live subscription, so a new checkout is refused.", "instance": "/api/v1/billing/checkout-sessions", "status": 409, "title": "Subscription Already Active", "type": "https://errors.renzo.app/subscription_already_active"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`product_price_not_for_sale`: This price is retired or cannot be bought. `subscription_already_active`: You already have a live subscription, so a new checkout is refused. `checkout_in_progress`: Another checkout request of this account is still running."}, "422": {"content": {"application/problem+json": {"examples": {"checkout_return_to_invalid": {"summary": "Invalid Return Path", "value": {"code": "checkout_return_to_invalid", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "`return_to` is not a path on this site.", "instance": "/api/v1/billing/checkout-sessions", "status": 422, "title": "Invalid Return Path", "type": "https://errors.renzo.app/checkout_return_to_invalid"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`checkout_return_to_invalid`: `return_to` is not a path on this site."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/billing/checkout-sessions", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}, "502": {"content": {"application/problem+json": {"examples": {"billing_provider_failed": {"summary": "Payment Provider Failed", "value": {"code": "billing_provider_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The payment provider refused or failed the call. Nothing was saved.", "instance": "/api/v1/billing/checkout-sessions", "status": 502, "title": "Payment Provider Failed", "type": "https://errors.renzo.app/billing_provider_failed"}}, "billing_provider_outcome_unknown": {"summary": "Payment Provider Outcome Unknown", "value": {"code": "billing_provider_outcome_unknown", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The payment provider did not answer, so the result is not known.", "instance": "/api/v1/billing/checkout-sessions", "status": 502, "title": "Payment Provider Outcome Unknown", "type": "https://errors.renzo.app/billing_provider_outcome_unknown"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`billing_provider_failed`: The payment provider refused or failed the call. Nothing was saved. `billing_provider_outcome_unknown`: The payment provider did not answer, so the result is not known."}}, "security": [{"CustomerBearer": []}], "summary": "Start a checkout", "tags": ["billing"]}}, "/api/v1/billing/checkout-sessions/preview": {"get": {"description": "Shows what a checkout of one price charges now and at the next bill, including any referral discount and referral credit. Changes nothing. Needs a customer token and a username on the account.", "operationId": "preview_checkout_api_v1_billing_checkout_sessions_preview_get", "parameters": [{"description": "The price the reader would buy.", "in": "query", "name": "price_id", "required": true, "schema": {"description": "The price the reader would buy.", "format": "uuid", "title": "Price Id", "type": "string"}}], "responses": {"200": {"content": {"application/json": {"example": {"amount_today_cents": 1520, "discount_cents": 380, "full_price_cents": 1900, "grant_credit_cents": 760, "grant_days_left": 12, "next_bill_at": "2026-12-04T13:30:00Z", "next_bill_cents": 1140, "referral_discount_percent": 20}, "schema": {"$ref": "#/components/schemas/CheckoutPreviewResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/billing/checkout-sessions/preview", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/billing/checkout-sessions/preview", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/billing/checkout-sessions/preview", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/billing/checkout-sessions/preview", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/billing/checkout-sessions/preview", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"product_price_not_found": {"summary": "Not Found", "value": {"code": "product_price_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No price has this ID.", "instance": "/api/v1/billing/checkout-sessions/preview", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/product_price_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`product_price_not_found`: No price has this ID."}, "409": {"content": {"application/problem+json": {"examples": {"product_price_not_for_sale": {"summary": "Price Not For Sale", "value": {"code": "product_price_not_for_sale", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This price is retired or cannot be bought.", "instance": "/api/v1/billing/checkout-sessions/preview", "status": 409, "title": "Price Not For Sale", "type": "https://errors.renzo.app/product_price_not_for_sale"}}, "profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/billing/checkout-sessions/preview", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}, "subscription_already_active": {"summary": "Subscription Already Active", "value": {"code": "subscription_already_active", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You already have a live subscription, so a new checkout is refused.", "instance": "/api/v1/billing/checkout-sessions/preview", "status": 409, "title": "Subscription Already Active", "type": "https://errors.renzo.app/subscription_already_active"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`product_price_not_for_sale`: This price is retired or cannot be bought. `subscription_already_active`: You already have a live subscription, so a new checkout is refused."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/billing/checkout-sessions/preview", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/billing/checkout-sessions/preview", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Preview a checkout", "tags": ["billing"]}}, "/api/v1/billing/orders": {"get": {"description": "Lists your orders and payments, newest first. Needs a customer token. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_my_orders_api_v1_billing_orders_get", "parameters": [{"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"amount_cents": 1900, "created_at": "2026-11-04T13:30:00Z", "currency": "USD", "id": "1dfc79cc-e393-582b-8d31-95630e266a46", "interval": "month", "paid_at": "2026-11-04T13:30:00Z", "payments": [{"amount_cents": 1900, "created_at": "2026-11-04T13:30:00Z", "currency": "USD", "id": "e0297886-e69a-5310-8dc7-b747c68e51cf", "order_id": "1dfc79cc-e393-582b-8d31-95630e266a46", "payment_method": "card", "provider": "stripe", "refunded_cents": 0, "refunds": [], "status": "succeeded", "succeeded_at": "2026-11-04T13:30:00Z", "updated_at": "2026-11-04T13:30:00Z", "user_id": "eca8506d-1dfa-56a2-8765-96305e99f89c"}], "period_end": "2026-11-04T13:30:00Z", "period_start": "2026-10-04T13:30:00Z", "price_id": "e20b39bd-9326-5178-9074-9c31733f3a2f", "product_id": "52108830-cd62-51b4-9ce3-f0051ed42666", "product_name": "Premium", "provider": "stripe", "status": "paid", "subscription_id": "cf4b1077-d871-5ff7-82f3-9a9bbe9514d3", "subtotal_cents": 1900, "tax_cents": 0, "total_cents": 1900, "updated_at": "2026-11-04T13:30:00Z", "user_id": "eca8506d-1dfa-56a2-8765-96305e99f89c"}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_CustomerOrderResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/billing/orders", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/billing/orders", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/billing/orders", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/billing/orders", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/billing/orders", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/billing/orders", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/billing/orders", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/billing/orders", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "List your orders", "tags": ["billing"]}}, "/api/v1/billing/portal-sessions": {"post": {"description": "Returns a short-lived URL of the payment provider's portal, where you update the card and download invoices. Each call opens a new session. Needs a customer token and a username on the account.", "operationId": "open_portal_api_v1_billing_portal_sessions_post", "responses": {"201": {"content": {"application/json": {"example": {"url": "https://billing.stripe.com/p/session/test_YWNjdF8xT3hZ"}, "schema": {"$ref": "#/components/schemas/PortalSessionResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/billing/portal-sessions", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/billing/portal-sessions", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/billing/portal-sessions", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/billing/portal-sessions", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/billing/portal-sessions", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"subscription_not_found": {"summary": "Not Found", "value": {"code": "subscription_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You have no live subscription.", "instance": "/api/v1/billing/portal-sessions", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/subscription_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`subscription_not_found`: You have no live subscription."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/billing/portal-sessions", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}, "subscription_not_changeable": {"summary": "Subscription Not Changeable", "value": {"code": "subscription_not_changeable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This subscription cannot be changed here, for example a staff grant.", "instance": "/api/v1/billing/portal-sessions", "status": 409, "title": "Subscription Not Changeable", "type": "https://errors.renzo.app/subscription_not_changeable"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`subscription_not_changeable`: This subscription cannot be changed here, for example a staff grant."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/billing/portal-sessions", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/billing/portal-sessions", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}, "502": {"content": {"application/problem+json": {"examples": {"billing_provider_failed": {"summary": "Payment Provider Failed", "value": {"code": "billing_provider_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The payment provider refused or failed the call. Nothing was saved.", "instance": "/api/v1/billing/portal-sessions", "status": 502, "title": "Payment Provider Failed", "type": "https://errors.renzo.app/billing_provider_failed"}}, "billing_provider_outcome_unknown": {"summary": "Payment Provider Outcome Unknown", "value": {"code": "billing_provider_outcome_unknown", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The payment provider did not answer, so the result is not known.", "instance": "/api/v1/billing/portal-sessions", "status": 502, "title": "Payment Provider Outcome Unknown", "type": "https://errors.renzo.app/billing_provider_outcome_unknown"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`billing_provider_failed`: The payment provider refused or failed the call. Nothing was saved. `billing_provider_outcome_unknown`: The payment provider did not answer, so the result is not known."}}, "security": [{"CustomerBearer": []}], "summary": "Open the billing portal", "tags": ["billing"]}}, "/api/v1/billing/subscription": {"get": {"description": "Returns your live subscription: plan, price, period end and any cancellation or downgrade booked for the period end. 404 when you have none. Needs a customer token.", "operationId": "read_subscription_api_v1_billing_subscription_get", "responses": {"200": {"content": {"application/json": {"example": {"cancel_at_period_end": false, "current_period_end": "2026-11-04T13:30:00Z", "current_period_start": "2026-10-04T13:30:00Z", "id": "cf4b1077-d871-5ff7-82f3-9a9bbe9514d3", "price": {"amount_cents": 1900, "currency": "USD", "id": "e20b39bd-9326-5178-9074-9c31733f3a2f", "interval": "month", "product_code": "premium", "product_id": "52108830-cd62-51b4-9ce3-f0051ed42666", "product_name": "Premium"}, "product_code": "premium", "referral_grant": false, "source": "provider", "status": "active"}, "schema": {"$ref": "#/components/schemas/MySubscriptionResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/billing/subscription", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/billing/subscription", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/billing/subscription", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/billing/subscription", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/billing/subscription", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"subscription_not_found": {"summary": "Not Found", "value": {"code": "subscription_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You have no live subscription.", "instance": "/api/v1/billing/subscription", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/subscription_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`subscription_not_found`: You have no live subscription."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/billing/subscription", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/billing/subscription", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Get your subscription", "tags": ["billing"]}}, "/api/v1/billing/subscription/cancellation": {"delete": {"description": "Keeps a subscription that was set to cancel at the period end. A subscription not set to cancel is returned unchanged. Needs a customer token and a username on the account.", "operationId": "undo_cancel_api_v1_billing_subscription_cancellation_delete", "responses": {"200": {"content": {"application/json": {"example": {"cancel_at_period_end": false, "current_period_end": "2026-11-04T13:30:00Z", "current_period_start": "2026-10-04T13:30:00Z", "id": "cf4b1077-d871-5ff7-82f3-9a9bbe9514d3", "price": {"amount_cents": 1900, "currency": "USD", "id": "e20b39bd-9326-5178-9074-9c31733f3a2f", "interval": "month", "product_code": "premium", "product_id": "52108830-cd62-51b4-9ce3-f0051ed42666", "product_name": "Premium"}, "product_code": "premium", "referral_grant": false, "source": "provider", "status": "active"}, "schema": {"$ref": "#/components/schemas/MySubscriptionResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/billing/subscription/cancellation", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/billing/subscription/cancellation", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/billing/subscription/cancellation", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/billing/subscription/cancellation", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/billing/subscription/cancellation", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"subscription_not_found": {"summary": "Not Found", "value": {"code": "subscription_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You have no live subscription.", "instance": "/api/v1/billing/subscription/cancellation", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/subscription_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`subscription_not_found`: You have no live subscription."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/billing/subscription/cancellation", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}, "subscription_change_in_progress": {"summary": "Subscription Change In Progress", "value": {"code": "subscription_change_in_progress", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Another change to this subscription is still running.", "instance": "/api/v1/billing/subscription/cancellation", "status": 409, "title": "Subscription Change In Progress", "type": "https://errors.renzo.app/subscription_change_in_progress"}}, "subscription_not_changeable": {"summary": "Subscription Not Changeable", "value": {"code": "subscription_not_changeable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This subscription cannot be changed here, for example a staff grant.", "instance": "/api/v1/billing/subscription/cancellation", "status": 409, "title": "Subscription Not Changeable", "type": "https://errors.renzo.app/subscription_not_changeable"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`subscription_not_changeable`: This subscription cannot be changed here, for example a staff grant. `subscription_change_in_progress`: Another change to this subscription is still running."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/billing/subscription/cancellation", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/billing/subscription/cancellation", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}, "502": {"content": {"application/problem+json": {"examples": {"billing_provider_failed": {"summary": "Payment Provider Failed", "value": {"code": "billing_provider_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The payment provider refused or failed the call. Nothing was saved.", "instance": "/api/v1/billing/subscription/cancellation", "status": 502, "title": "Payment Provider Failed", "type": "https://errors.renzo.app/billing_provider_failed"}}, "billing_provider_outcome_unknown": {"summary": "Payment Provider Outcome Unknown", "value": {"code": "billing_provider_outcome_unknown", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The payment provider did not answer, so the result is not known.", "instance": "/api/v1/billing/subscription/cancellation", "status": 502, "title": "Payment Provider Outcome Unknown", "type": "https://errors.renzo.app/billing_provider_outcome_unknown"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`billing_provider_failed`: The payment provider refused or failed the call. Nothing was saved. `billing_provider_outcome_unknown`: The payment provider did not answer, so the result is not known."}}, "security": [{"CustomerBearer": []}], "summary": "Undo a cancellation", "tags": ["billing"]}, "put": {"description": "Cancels at the end of the current period. Access stays until `current_period_end`, with no refund, and a booked downgrade is dropped. Needs a customer token and a username on the account.", "operationId": "cancel_subscription_api_v1_billing_subscription_cancellation_put", "responses": {"200": {"content": {"application/json": {"example": {"cancel_at_period_end": false, "current_period_end": "2026-11-04T13:30:00Z", "current_period_start": "2026-10-04T13:30:00Z", "id": "cf4b1077-d871-5ff7-82f3-9a9bbe9514d3", "price": {"amount_cents": 1900, "currency": "USD", "id": "e20b39bd-9326-5178-9074-9c31733f3a2f", "interval": "month", "product_code": "premium", "product_id": "52108830-cd62-51b4-9ce3-f0051ed42666", "product_name": "Premium"}, "product_code": "premium", "referral_grant": false, "source": "provider", "status": "active"}, "schema": {"$ref": "#/components/schemas/MySubscriptionResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/billing/subscription/cancellation", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/billing/subscription/cancellation", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/billing/subscription/cancellation", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/billing/subscription/cancellation", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/billing/subscription/cancellation", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"subscription_not_found": {"summary": "Not Found", "value": {"code": "subscription_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You have no live subscription.", "instance": "/api/v1/billing/subscription/cancellation", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/subscription_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`subscription_not_found`: You have no live subscription."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/billing/subscription/cancellation", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}, "subscription_change_in_progress": {"summary": "Subscription Change In Progress", "value": {"code": "subscription_change_in_progress", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Another change to this subscription is still running.", "instance": "/api/v1/billing/subscription/cancellation", "status": 409, "title": "Subscription Change In Progress", "type": "https://errors.renzo.app/subscription_change_in_progress"}}, "subscription_not_changeable": {"summary": "Subscription Not Changeable", "value": {"code": "subscription_not_changeable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This subscription cannot be changed here, for example a staff grant.", "instance": "/api/v1/billing/subscription/cancellation", "status": 409, "title": "Subscription Not Changeable", "type": "https://errors.renzo.app/subscription_not_changeable"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`subscription_not_changeable`: This subscription cannot be changed here, for example a staff grant. `subscription_change_in_progress`: Another change to this subscription is still running."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/billing/subscription/cancellation", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/billing/subscription/cancellation", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}, "502": {"content": {"application/problem+json": {"examples": {"billing_provider_failed": {"summary": "Payment Provider Failed", "value": {"code": "billing_provider_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The payment provider refused or failed the call. Nothing was saved.", "instance": "/api/v1/billing/subscription/cancellation", "status": 502, "title": "Payment Provider Failed", "type": "https://errors.renzo.app/billing_provider_failed"}}, "billing_provider_outcome_unknown": {"summary": "Payment Provider Outcome Unknown", "value": {"code": "billing_provider_outcome_unknown", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The payment provider did not answer, so the result is not known.", "instance": "/api/v1/billing/subscription/cancellation", "status": 502, "title": "Payment Provider Outcome Unknown", "type": "https://errors.renzo.app/billing_provider_outcome_unknown"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`billing_provider_failed`: The payment provider refused or failed the call. Nothing was saved. `billing_provider_outcome_unknown`: The payment provider did not answer, so the result is not known."}}, "security": [{"CustomerBearer": []}], "summary": "Cancel your subscription", "tags": ["billing"]}}, "/api/v1/billing/subscription/price": {"put": {"description": "Moves your subscription to another price. An upgrade charges the quoted amount now; a downgrade takes effect at the period end. A declined card answers 402. Needs a customer token and a username on the account. Send an `Idempotency-Key` header so a retry replays the first answer instead of acting twice.", "operationId": "change_subscription_price_api_v1_billing_subscription_price_put", "parameters": [{"description": "Retry-safety token. A repeat with the same key replays the first response.", "in": "header", "name": "Idempotency-Key", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Retry-safety token. A repeat with the same key replays the first response.", "title": "Idempotency-Key"}}], "requestBody": {"content": {"application/json": {"example": {"price_id": "026b9c9b-b877-592c-9954-cc9d8ee8e9d1", "proration_date": "2026-11-04T13:30:00Z"}, "schema": {"$ref": "#/components/schemas/PriceChangeRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"cancel_at_period_end": false, "current_period_end": "2026-11-04T13:30:00Z", "current_period_start": "2026-10-04T13:30:00Z", "id": "cf4b1077-d871-5ff7-82f3-9a9bbe9514d3", "price": {"amount_cents": 1900, "currency": "USD", "id": "e20b39bd-9326-5178-9074-9c31733f3a2f", "interval": "month", "product_code": "premium", "product_id": "52108830-cd62-51b4-9ce3-f0051ed42666", "product_name": "Premium"}, "product_code": "premium", "referral_grant": false, "source": "provider", "status": "active"}, "schema": {"$ref": "#/components/schemas/PriceChangeResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/billing/subscription/price", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/billing/subscription/price", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/billing/subscription/price", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/billing/subscription/price", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/billing/subscription/price", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "402": {"content": {"application/problem+json": {"examples": {"billing_payment_declined": {"summary": "Payment Declined", "value": {"code": "billing_payment_declined", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The card was declined.", "instance": "/api/v1/billing/subscription/price", "status": 402, "title": "Payment Declined", "type": "https://errors.renzo.app/billing_payment_declined"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`billing_payment_declined`: The card was declined."}, "404": {"content": {"application/problem+json": {"examples": {"product_price_not_found": {"summary": "Not Found", "value": {"code": "product_price_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No price has this ID.", "instance": "/api/v1/billing/subscription/price", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/product_price_not_found"}}, "subscription_not_found": {"summary": "Not Found", "value": {"code": "subscription_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You have no live subscription.", "instance": "/api/v1/billing/subscription/price", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/subscription_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`subscription_not_found`: You have no live subscription. `product_price_not_found`: No price has this ID."}, "409": {"content": {"application/problem+json": {"examples": {"product_price_not_for_sale": {"summary": "Price Not For Sale", "value": {"code": "product_price_not_for_sale", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This price is retired or cannot be bought.", "instance": "/api/v1/billing/subscription/price", "status": 409, "title": "Price Not For Sale", "type": "https://errors.renzo.app/product_price_not_for_sale"}}, "profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/billing/subscription/price", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}, "subscription_change_in_progress": {"summary": "Subscription Change In Progress", "value": {"code": "subscription_change_in_progress", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Another change to this subscription is still running.", "instance": "/api/v1/billing/subscription/price", "status": 409, "title": "Subscription Change In Progress", "type": "https://errors.renzo.app/subscription_change_in_progress"}}, "subscription_interval_locked": {"summary": "Billing Interval Locked", "value": {"code": "subscription_interval_locked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A yearly plan cannot switch to a monthly price mid-term.", "instance": "/api/v1/billing/subscription/price", "status": 409, "title": "Billing Interval Locked", "type": "https://errors.renzo.app/subscription_interval_locked"}}, "subscription_not_changeable": {"summary": "Subscription Not Changeable", "value": {"code": "subscription_not_changeable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This subscription cannot be changed here, for example a staff grant.", "instance": "/api/v1/billing/subscription/price", "status": 409, "title": "Subscription Not Changeable", "type": "https://errors.renzo.app/subscription_not_changeable"}}, "subscription_price_quote_stale": {"summary": "Price Quote Stale", "value": {"code": "subscription_price_quote_stale", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "An upgrade needs a recent quote and there is none.", "instance": "/api/v1/billing/subscription/price", "status": 409, "title": "Price Quote Stale", "type": "https://errors.renzo.app/subscription_price_quote_stale"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`product_price_not_for_sale`: This price is retired or cannot be bought. `subscription_not_changeable`: This subscription cannot be changed here, for example a staff grant. `subscription_change_in_progress`: Another change to this subscription is still running. `subscription_interval_locked`: A yearly plan cannot switch to a monthly price mid-term. `subscription_price_quote_stale`: An upgrade needs a recent quote and there is none."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/billing/subscription/price", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/billing/subscription/price", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}, "502": {"content": {"application/problem+json": {"examples": {"billing_provider_failed": {"summary": "Payment Provider Failed", "value": {"code": "billing_provider_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The payment provider refused or failed the call. Nothing was saved.", "instance": "/api/v1/billing/subscription/price", "status": 502, "title": "Payment Provider Failed", "type": "https://errors.renzo.app/billing_provider_failed"}}, "billing_provider_outcome_unknown": {"summary": "Payment Provider Outcome Unknown", "value": {"code": "billing_provider_outcome_unknown", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The payment provider did not answer, so the result is not known.", "instance": "/api/v1/billing/subscription/price", "status": 502, "title": "Payment Provider Outcome Unknown", "type": "https://errors.renzo.app/billing_provider_outcome_unknown"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`billing_provider_failed`: The payment provider refused or failed the call. Nothing was saved. `billing_provider_outcome_unknown`: The payment provider did not answer, so the result is not known."}}, "security": [{"CustomerBearer": []}], "summary": "Change your plan", "tags": ["billing"]}}, "/api/v1/billing/subscription/price/preview": {"post": {"description": "Quotes what moving your subscription to another price costs now. Changes nothing. An upgrade must be previewed shortly before it is confirmed. Needs a customer token and a username on the account.", "operationId": "preview_subscription_price_api_v1_billing_subscription_price_preview_post", "requestBody": {"content": {"application/json": {"example": {"price_id": "026b9c9b-b877-592c-9954-cc9d8ee8e9d1"}, "schema": {"$ref": "#/components/schemas/PriceChangePreviewRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"amount_due_cents": 17500, "change": "upgrade", "currency": "USD", "lines": [{"amount_cents": -1500, "description": "Unused time on Premium (monthly)"}, {"amount_cents": 19000, "description": "Premium (yearly)"}], "next_amount_cents": 19000, "next_billing_at": "2027-11-04T13:30:00Z", "price": {"amount_cents": 19000, "currency": "USD", "id": "026b9c9b-b877-592c-9954-cc9d8ee8e9d1", "interval": "year", "product_code": "premium", "product_id": "52108830-cd62-51b4-9ce3-f0051ed42666", "product_name": "Premium"}, "proration_date": "2026-11-04T13:30:00Z", "subtotal_cents": 17500, "takes_effect_at": "2026-11-04T13:30:00Z", "tax_cents": 0}, "schema": {"$ref": "#/components/schemas/PriceChangePreviewResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/billing/subscription/price/preview", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/billing/subscription/price/preview", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/billing/subscription/price/preview", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/billing/subscription/price/preview", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/billing/subscription/price/preview", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"product_price_not_found": {"summary": "Not Found", "value": {"code": "product_price_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No price has this ID.", "instance": "/api/v1/billing/subscription/price/preview", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/product_price_not_found"}}, "subscription_not_found": {"summary": "Not Found", "value": {"code": "subscription_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You have no live subscription.", "instance": "/api/v1/billing/subscription/price/preview", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/subscription_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`subscription_not_found`: You have no live subscription. `product_price_not_found`: No price has this ID."}, "409": {"content": {"application/problem+json": {"examples": {"product_price_not_for_sale": {"summary": "Price Not For Sale", "value": {"code": "product_price_not_for_sale", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This price is retired or cannot be bought.", "instance": "/api/v1/billing/subscription/price/preview", "status": 409, "title": "Price Not For Sale", "type": "https://errors.renzo.app/product_price_not_for_sale"}}, "profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/billing/subscription/price/preview", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}, "subscription_interval_locked": {"summary": "Billing Interval Locked", "value": {"code": "subscription_interval_locked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A yearly plan cannot switch to a monthly price mid-term.", "instance": "/api/v1/billing/subscription/price/preview", "status": 409, "title": "Billing Interval Locked", "type": "https://errors.renzo.app/subscription_interval_locked"}}, "subscription_not_changeable": {"summary": "Subscription Not Changeable", "value": {"code": "subscription_not_changeable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This subscription cannot be changed here, for example a staff grant.", "instance": "/api/v1/billing/subscription/price/preview", "status": 409, "title": "Subscription Not Changeable", "type": "https://errors.renzo.app/subscription_not_changeable"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`product_price_not_for_sale`: This price is retired or cannot be bought. `subscription_not_changeable`: This subscription cannot be changed here, for example a staff grant. `subscription_interval_locked`: A yearly plan cannot switch to a monthly price mid-term."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/billing/subscription/price/preview", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/billing/subscription/price/preview", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}, "502": {"content": {"application/problem+json": {"examples": {"billing_provider_failed": {"summary": "Payment Provider Failed", "value": {"code": "billing_provider_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The payment provider refused or failed the call. Nothing was saved.", "instance": "/api/v1/billing/subscription/price/preview", "status": 502, "title": "Payment Provider Failed", "type": "https://errors.renzo.app/billing_provider_failed"}}, "billing_provider_outcome_unknown": {"summary": "Payment Provider Outcome Unknown", "value": {"code": "billing_provider_outcome_unknown", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The payment provider did not answer, so the result is not known.", "instance": "/api/v1/billing/subscription/price/preview", "status": 502, "title": "Payment Provider Outcome Unknown", "type": "https://errors.renzo.app/billing_provider_outcome_unknown"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`billing_provider_failed`: The payment provider refused or failed the call. Nothing was saved. `billing_provider_outcome_unknown`: The payment provider did not answer, so the result is not known."}}, "security": [{"CustomerBearer": []}], "summary": "Preview a plan change", "tags": ["billing"]}}, "/api/v1/cfd-calendars/dividends": {"get": {"description": "Lists the estimated dividend points per stock index and ex-date, which index CFD prices are adjusted by. Filter by `indices`. No token needed. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_dividend_adjustments_api_v1_cfd_calendars_dividends_get", "parameters": [{"description": "First ex-date. Default: 7 days ago. Past rows stay readable.", "in": "query", "name": "start", "required": false, "schema": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "First ex-date. Default: 7 days ago. Past rows stay readable.", "title": "Start"}}, {"description": "Last ex-date, included. Default: 30 days ahead. At most 400 days.", "in": "query", "name": "end", "required": false, "schema": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "Last ex-date, included. Default: 30 days ahead. At most 400 days.", "title": "End"}}, {"description": "Index codes, e.g. US500. Repeat it.", "in": "query", "name": "indices", "required": false, "schema": {"anyOf": [{"items": {"enum": ["US500", "US30", "USTEC", "US2000", "UK100", "AUS200", "HK50", "EU50", "NETH25", "CA60", "CN50", "GER40", "TecDE30", "MidDE50", "NOR25"], "type": "string"}, "maxItems": 15, "type": "array"}, {"type": "null"}], "description": "Index codes, e.g. US500. Repeat it.", "title": "Indices"}}, {"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"adjustment_session": "2026-11-05", "as_of": "2026-11-03", "constituent_count": 2, "constituents": [{"amount": "0.26", "currency": "USD", "dividend_type_code": "regular", "name": "Apple Inc.", "priced": true, "special": false, "symbol_slug": "aapl-nasdaq", "ticker": "AAPL"}, {"amount": "0.91", "currency": "USD", "dividend_type_code": "regular", "name": "Microsoft Corp.", "priced": true, "special": false, "symbol_slug": "msft-nasdaq", "ticker": "MSFT"}], "currency": "USD", "ex_date": "2026-11-06", "has_special": false, "id": "US500:2026-11-06", "index_code": "US500", "index_name": "S&P 500", "level_basis_code": "cash_index", "points": "0.8421", "status": "estimate"}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_IndexDividendResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"cfd_calendars_invalid_range": {"summary": "Invalid Range", "value": {"code": "cfd_calendars_invalid_range", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The date range is reversed or longer than allowed.", "instance": "/api/v1/cfd-calendars/dividends", "status": 400, "title": "Invalid Range", "type": "https://errors.renzo.app/cfd_calendars_invalid_range"}}, "invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/cfd-calendars/dividends", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`cfd_calendars_invalid_range`: The date range is reversed or longer than allowed. `invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/cfd-calendars/dividends", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/cfd-calendars/dividends", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/cfd-calendars/dividends", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List index dividend adjustments", "tags": ["cfd-calendars"]}}, "/api/v1/cfd-calendars/dividends/indices": {"get": {"description": "Lists the stock indices in the dividend adjustment calendar, for a filter. No token needed.", "operationId": "list_dividend_indices_api_v1_cfd_calendars_dividends_indices_get", "responses": {"200": {"content": {"application/json": {"example": {"indices": [{"code": "US500", "currency": "USD", "market": "XNYS", "name": "S&P 500", "weighting_code": "cap"}, {"code": "GER40", "currency": "EUR", "market": "XETR", "name": "Germany 40", "no_adjustment": {"code": "total_return", "reason": "A total return index. No adjustment."}, "weighting_code": "cap"}]}, "schema": {"$ref": "#/components/schemas/StockIndicesResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/cfd-calendars/dividends/indices", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/cfd-calendars/dividends/indices", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/cfd-calendars/dividends/indices", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/cfd-calendars/dividends/indices", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List dividend calendar indices", "tags": ["cfd-calendars"]}}, "/api/v1/cfd-calendars/rolls": {"get": {"description": "Lists the dates when futures-based CFDs roll from the expiring contract to the next one, with the estimated price gap. Filter by `roots` and `categories`. No token needed. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_rolls_api_v1_cfd_calendars_rolls_get", "parameters": [{"description": "First roll day. Default: 7 days ago. Past rolls stay readable.", "in": "query", "name": "start", "required": false, "schema": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "First roll day. Default: 7 days ago. Past rolls stay readable.", "title": "Start"}}, {"description": "Last roll day, included. Default: 90 days ahead. At most 400 days.", "in": "query", "name": "end", "required": false, "schema": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "Last roll day, included. Default: 90 days ahead. At most 400 days.", "title": "End"}}, {"description": "Futures roots, e.g. CL. Repeat it.", "in": "query", "name": "roots", "required": false, "schema": {"anyOf": [{"items": {"enum": ["OJ", "CC", "KC", "CT", "DX", "VX", "CL", "NG", "HG", "GC", "SI", "PL", "PA", "ES", "NQ", "YM", "RTY", "ZB", "ZN", "ZC", "ZW", "ZS", "6E"], "type": "string"}, "maxItems": 20, "type": "array"}, {"type": "null"}], "description": "Futures roots, e.g. CL. Repeat it.", "title": "Roots"}}, {"description": "Instrument groups, e.g. metals. Repeat it.", "in": "query", "name": "categories", "required": false, "schema": {"anyOf": [{"items": {"enum": ["indices", "energy", "metals", "grains", "bonds", "fx", "softs"], "type": "string"}, "maxItems": 6, "type": "array"}, {"type": "null"}], "description": "Instrument groups, e.g. metals. Repeat it.", "title": "Categories"}}, {"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"as_of": "2026-11-03", "category_code": "energy", "expiring_contract": "CLZ6", "expiring_month": "2026-12", "expiring_price": "61.42", "gap": "-0.35", "id": "CL:CLZ6-CLF7", "last_trade_date": "2026-11-20", "next_contract": "CLF7", "next_month": "2027-01", "next_price": "61.07", "price_unit": "USD per barrel", "price_unit_code": "usd_per_barrel", "roll_date": "2026-11-19", "root": "CL", "root_name": "WTI Crude Oil", "status": "indicative", "venue": "XNYM"}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_FuturesRollResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"cfd_calendars_invalid_range": {"summary": "Invalid Range", "value": {"code": "cfd_calendars_invalid_range", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The date range is reversed or longer than allowed.", "instance": "/api/v1/cfd-calendars/rolls", "status": 400, "title": "Invalid Range", "type": "https://errors.renzo.app/cfd_calendars_invalid_range"}}, "invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/cfd-calendars/rolls", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`cfd_calendars_invalid_range`: The date range is reversed or longer than allowed. `invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/cfd-calendars/rolls", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/cfd-calendars/rolls", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/cfd-calendars/rolls", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List futures rolls", "tags": ["cfd-calendars"]}}, "/api/v1/cfd-calendars/rolls/instruments": {"get": {"description": "Lists the futures roots in the roll calendar, for a filter. No token needed.", "operationId": "list_instruments_api_v1_cfd_calendars_rolls_instruments_get", "responses": {"200": {"content": {"application/json": {"example": {"instruments": [{"category_code": "energy", "code": "CL", "delivery": "physical", "first_notice": false, "name": "WTI Crude Oil", "price_unit": "USD per barrel", "price_unit_code": "usd_per_barrel", "roll_months": ["F", "G", "H", "J", "K", "M", "N", "Q", "U", "V", "X", "Z"], "venue": "XNYM"}]}, "schema": {"$ref": "#/components/schemas/FuturesRootsResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/cfd-calendars/rolls/instruments", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/cfd-calendars/rolls/instruments", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/cfd-calendars/rolls/instruments", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/cfd-calendars/rolls/instruments", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List futures roots", "tags": ["cfd-calendars"]}}, "/api/v1/default-watchlists/{kind}": {"get": {"description": "Returns a read-only list: `popular` (picked by Renzo) or the top 10 `most_active`, `winners` or `losers` of an `asset_class`, ranked from stored daily bars. No token needed.", "operationId": "read_default_watchlist_api_v1_default_watchlists__kind__get", "parameters": [{"in": "path", "name": "kind", "required": true, "schema": {"enum": ["popular", "most_active", "winners", "losers"], "title": "Kind", "type": "string"}}, {"description": "Required for every kind but `popular`.", "in": "query", "name": "asset_class", "required": false, "schema": {"anyOf": [{"enum": ["equity", "index", "forex", "crypto", "commodity", "bond", "etf", "future", "option"], "type": "string"}, {"type": "null"}], "description": "Required for every kind but `popular`.", "title": "Asset Class"}}], "responses": {"200": {"content": {"application/json": {"example": {"asset_class": "equity", "kind": "winners", "symbols": [{"asset_class": "equity", "display_name": "NVIDIA Corp.", "exchange": "NASDAQ", "id": "a24ff11d-4ac9-5506-9aba-5598104ae499", "is_active": true, "slug": "nvda-nasdaq", "ticker": "NVDA"}, {"asset_class": "equity", "display_name": "Apple Inc.", "exchange": "NASDAQ", "id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "is_active": true, "slug": "aapl-nasdaq", "ticker": "AAPL"}]}, "schema": {"$ref": "#/components/schemas/DefaultWatchlistResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/default-watchlists/{kind}", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/default-watchlists/{kind}", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"default_watchlist_asset_class_not_allowed": {"summary": "Invalid Asset Class", "value": {"code": "default_watchlist_asset_class_not_allowed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The Popular list takes no `asset_class`, or this class has no such list.", "instance": "/api/v1/default-watchlists/{kind}", "status": 422, "title": "Invalid Asset Class", "type": "https://errors.renzo.app/default_watchlist_asset_class_not_allowed"}}, "default_watchlist_asset_class_required": {"summary": "Invalid Asset Class", "value": {"code": "default_watchlist_asset_class_required", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A ranked system list needs an `asset_class`.", "instance": "/api/v1/default-watchlists/{kind}", "status": 422, "title": "Invalid Asset Class", "type": "https://errors.renzo.app/default_watchlist_asset_class_required"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`default_watchlist_asset_class_required`: A ranked system list needs an `asset_class`. `default_watchlist_asset_class_not_allowed`: The Popular list takes no `asset_class`, or this class has no such list."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/default-watchlists/{kind}", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "Get a system watchlist", "tags": ["default-watchlists"]}}, "/api/v1/dividends": {"get": {"description": "Lists cash dividends of exchange-listed US stocks and funds by ex-date, with the yield. OTC tickers are left out. Filter by `tickers` or search with `q`. No token needed. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_dividends_api_v1_dividends_get", "parameters": [{"description": "First ex-date. Default: 7 days ago. Past rows stay readable.", "in": "query", "name": "start", "required": false, "schema": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "First ex-date. Default: 7 days ago. Past rows stay readable.", "title": "Start"}}, {"description": "Last ex-date, included. Default: 30 days ahead. At most 400 days.", "in": "query", "name": "end", "required": false, "schema": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "Last ex-date, included. Default: 30 days ahead. At most 400 days.", "title": "End"}}, {"description": "Exact tickers, e.g. AAPL. Repeat it.", "in": "query", "name": "tickers", "required": false, "schema": {"anyOf": [{"items": {"pattern": "^[A-Za-z0-9.\\-]{1,16}$", "type": "string"}, "maxItems": 50, "type": "array"}, {"type": "null"}], "description": "Exact tickers, e.g. AAPL. Repeat it.", "title": "Tickers"}}, {"description": "Part of a ticker or company name.", "in": "query", "name": "q", "required": false, "schema": {"anyOf": [{"maxLength": 64, "minLength": 1, "type": "string"}, {"type": "null"}], "description": "Part of a ticker or company name.", "title": "Q"}}, {"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"amount": "0.26", "currency": "USD", "declaration_date": "2026-10-30", "dividend_type_code": "regular", "ex_date": "2026-11-10", "frequency": 4, "id": "AAPL-2026-11-10-0.26", "name": "Apple Inc.", "pay_date": "2026-11-13", "price_date": "2026-11-03", "record_date": "2026-11-10", "symbol_slug": "aapl-nasdaq", "ticker": "AAPL", "yield_percent": "0.55"}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_StockDividendResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"dividends_invalid_range": {"summary": "Invalid Range", "value": {"code": "dividends_invalid_range", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The date range is reversed or longer than allowed.", "instance": "/api/v1/dividends", "status": 400, "title": "Invalid Range", "type": "https://errors.renzo.app/dividends_invalid_range"}}, "invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/dividends", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`dividends_invalid_range`: The date range is reversed or longer than allowed. `invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/dividends", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/dividends", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/dividends", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List US stock dividends", "tags": ["dividends"]}}, "/api/v1/economic-calendar/countries": {"get": {"description": "Lists the countries that have releases in the calendar, for a country filter. No token needed.", "operationId": "list_countries_api_v1_economic_calendar_countries_get", "responses": {"200": {"content": {"application/json": {"example": {"countries": ["AU", "CA", "CN", "DE", "EU", "GB", "JP", "US"]}, "schema": {"$ref": "#/components/schemas/EconCountriesResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/economic-calendar/countries", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/economic-calendar/countries", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/economic-calendar/countries", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/economic-calendar/countries", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List calendar countries", "tags": ["economic-calendar"]}}, "/api/v1/economic-calendar/feed": {"get": {"description": "Returns your personal .ics feed URL and its filters. Subscribe to the URL in any calendar app. The first read creates the feed. Needs a customer token.", "operationId": "read_feed_api_v1_economic_calendar_feed_get", "parameters": [{"description": "Language of a new feed. Used only when this read makes it. Default: en.", "in": "query", "name": "locale", "required": false, "schema": {"anyOf": [{"maxLength": 16, "type": "string"}, {"type": "null"}], "description": "Language of a new feed. Used only when this read makes it. Default: en.", "title": "Locale"}}], "responses": {"200": {"content": {"application/json": {"example": {"countries": ["US", "EU"], "feed_url": "https://api.uat.renzo-digital.com/api/v1/economic-calendar/feed/Xk29fQ7mTp3LwZ8a.ics", "importances": ["high"], "locale": "en"}, "schema": {"$ref": "#/components/schemas/EconCalendarFeedResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/economic-calendar/feed", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/economic-calendar/feed", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/economic-calendar/feed", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/economic-calendar/feed", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/economic-calendar/feed", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No customer token, or the token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/economic-calendar/feed", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/economic-calendar/feed", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The locale is not one we know."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/economic-calendar/feed", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Get your calendar feed", "tags": ["economic-calendar"]}}, "/api/v1/economic-calendar/feed/filters": {"put": {"description": "Sets the countries, importance levels and language of the events in your feed. Needs a customer token and a username on the account. Send an `Idempotency-Key` header so a retry replays the first answer instead of acting twice.", "operationId": "save_feed_filters_api_v1_economic_calendar_feed_filters_put", "parameters": [{"description": "Retry-safety token. A repeat with the same key replays the first response.", "in": "header", "name": "Idempotency-Key", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Retry-safety token. A repeat with the same key replays the first response.", "title": "Idempotency-Key"}}], "requestBody": {"content": {"application/json": {"example": {"countries": ["US", "EU"], "importances": ["high", "medium"], "locale": "en"}, "schema": {"$ref": "#/components/schemas/EconCalendarFeedFiltersRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"countries": ["US", "EU"], "feed_url": "https://api.uat.renzo-digital.com/api/v1/economic-calendar/feed/Xk29fQ7mTp3LwZ8a.ics", "importances": ["high"], "locale": "en"}, "schema": {"$ref": "#/components/schemas/EconCalendarFeedResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/economic-calendar/feed/filters", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/economic-calendar/feed/filters", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/economic-calendar/feed/filters", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/economic-calendar/feed/filters", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/economic-calendar/feed/filters", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No customer token, or the token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/economic-calendar/feed/filters", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/economic-calendar/feed/filters", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/economic-calendar/feed/filters", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The locale is not one we know."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/economic-calendar/feed/filters", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Update your calendar feed filters", "tags": ["economic-calendar"]}}, "/api/v1/economic-calendar/feed/reset": {"post": {"description": "Gives the feed a new secret URL. The old URL stops working at once. Needs a customer token and a username on the account. Send an `Idempotency-Key` header so a retry replays the first answer instead of acting twice.", "operationId": "reset_feed_api_v1_economic_calendar_feed_reset_post", "parameters": [{"description": "Retry-safety token. A repeat with the same key replays the first response.", "in": "header", "name": "Idempotency-Key", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Retry-safety token. A repeat with the same key replays the first response.", "title": "Idempotency-Key"}}], "responses": {"200": {"content": {"application/json": {"example": {"countries": ["US", "EU"], "feed_url": "https://api.uat.renzo-digital.com/api/v1/economic-calendar/feed/Xk29fQ7mTp3LwZ8a.ics", "importances": ["high"], "locale": "en"}, "schema": {"$ref": "#/components/schemas/EconCalendarFeedResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/economic-calendar/feed/reset", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/economic-calendar/feed/reset", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/economic-calendar/feed/reset", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/economic-calendar/feed/reset", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/economic-calendar/feed/reset", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No customer token, or the token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/economic-calendar/feed/reset", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/economic-calendar/feed/reset", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/economic-calendar/feed/reset", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/economic-calendar/feed/reset", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Reset your calendar feed URL", "tags": ["economic-calendar"]}}, "/api/v1/economic-calendar/feed/{token}.ics": {"get": {"description": "The iCalendar file that calendar apps poll. The secret token in the path is the only key, so no sign-in is needed; keep the URL private. It holds releases from the last 7 days to 5 weeks ahead.", "operationId": "read_feed_file_api_v1_economic_calendar_feed__token__ics_get", "parameters": [{"in": "path", "name": "token", "required": true, "schema": {"title": "Token", "type": "string"}}], "responses": {"200": {"content": {"text/calendar": {"example": "BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//Renzo//Economic Calendar//EN\r\nBEGIN:VEVENT\r\nUID:7b1e0c2a-5d4f-4e1b-9c3a-2f6d8e9a0b1c@renzo\r\nDTSTART:20261113T133000Z\r\nSUMMARY:US CPI (Oct)\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n"}}, "description": "An RFC 5545 calendar."}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/economic-calendar/feed/{token}.ics", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "404": {"content": {"application/problem+json": {"examples": {"econ_calendar_feed_not_found": {"summary": "Feed Not Found", "value": {"code": "econ_calendar_feed_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No calendar feed has this token. It may have been reset.", "instance": "/api/v1/economic-calendar/feed/{token}.ics", "status": 404, "title": "Feed Not Found", "type": "https://errors.renzo.app/econ_calendar_feed_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`econ_calendar_feed_not_found`: No calendar feed has this token. It may have been reset."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/economic-calendar/feed/{token}.ics", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/economic-calendar/feed/{token}.ics", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "Download the calendar feed (.ics)", "tags": ["economic-calendar"]}}, "/api/v1/economic-calendar/indicators/{indicator_id}": {"get": {"description": "Returns one indicator, such as US CPI, with its country, importance and description. No token needed.", "operationId": "read_indicator_api_v1_economic_calendar_indicators__indicator_id__get", "parameters": [{"in": "path", "name": "indicator_id", "required": true, "schema": {"format": "uuid", "title": "Indicator Id", "type": "string"}}, {"description": "Language of Indicator titles: en, zh-Hans, zh-Hant, ru, kk or th. Default: en. An untranslated title stays English; kk tries ru first.", "in": "query", "name": "locale", "required": false, "schema": {"anyOf": [{"maxLength": 16, "type": "string"}, {"type": "null"}], "description": "Language of Indicator titles: en, zh-Hans, zh-Hant, ru, kk or th. Default: en. An untranslated title stays English; kk tries ru first.", "title": "Locale"}}], "responses": {"200": {"content": {"application/json": {"example": {"category": "labour", "country": "US", "id": "8ca8c52f-1867-5d5d-bdfd-8e6321eed7e8", "period_granularity": "month", "scale": "K", "title": "Nonfarm Payrolls", "title_locale": "en"}, "schema": {"$ref": "#/components/schemas/EconIndicatorRef"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/economic-calendar/indicators/{indicator_id}", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "404": {"content": {"application/problem+json": {"examples": {"econ_calendar_indicator_not_found": {"summary": "Indicator Not Found", "value": {"code": "econ_calendar_indicator_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No indicator with this ID has a visible release.", "instance": "/api/v1/economic-calendar/indicators/{indicator_id}", "status": 404, "title": "Indicator Not Found", "type": "https://errors.renzo.app/econ_calendar_indicator_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`econ_calendar_indicator_not_found`: No indicator with this ID has a visible release."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/economic-calendar/indicators/{indicator_id}", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The locale is not one we know."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/economic-calendar/indicators/{indicator_id}", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "Get an economic indicator", "tags": ["economic-calendar"]}}, "/api/v1/economic-calendar/indicators/{indicator_id}/history": {"get": {"description": "Lists the past releases of one indicator, newest first, for a history chart or table. No token needed. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "indicator_history_api_v1_economic_calendar_indicators__indicator_id__history_get", "parameters": [{"in": "path", "name": "indicator_id", "required": true, "schema": {"format": "uuid", "title": "Indicator Id", "type": "string"}}, {"description": "Language of Indicator titles: en, zh-Hans, zh-Hant, ru, kk or th. Default: en. An untranslated title stays English; kk tries ru first.", "in": "query", "name": "locale", "required": false, "schema": {"anyOf": [{"maxLength": 16, "type": "string"}, {"type": "null"}], "description": "Language of Indicator titles: en, zh-Hans, zh-Hant, ru, kk or th. Default: en. An untranslated title stays English; kk tries ru first.", "title": "Locale"}}, {"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"forecast": 185000, "id": "d36efe59-2724-5241-b8c6-01e51cac7942", "importance": "high", "indicator": {"category": "labour", "country": "US", "id": "8ca8c52f-1867-5d5d-bdfd-8e6321eed7e8", "period_granularity": "month", "scale": "K", "title": "Nonfarm Payrolls", "title_locale": "en"}, "previous": 254000, "reference_period": "2026-10", "scheduled_at": "2026-11-06T13:30:00Z", "time_precision": "exact"}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_EconReleaseResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/economic-calendar/indicators/{indicator_id}/history", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "404": {"content": {"application/problem+json": {"examples": {"econ_calendar_indicator_not_found": {"summary": "Indicator Not Found", "value": {"code": "econ_calendar_indicator_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No indicator with this ID has a visible release.", "instance": "/api/v1/economic-calendar/indicators/{indicator_id}/history", "status": 404, "title": "Indicator Not Found", "type": "https://errors.renzo.app/econ_calendar_indicator_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`econ_calendar_indicator_not_found`: No indicator with this ID has a visible release."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/economic-calendar/indicators/{indicator_id}/history", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The locale is not one we know."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/economic-calendar/indicators/{indicator_id}/history", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List an indicator's past releases", "tags": ["economic-calendar"]}}, "/api/v1/economic-calendar/releases": {"get": {"description": "Lists releases (scheduled publications of economic indicators, such as US CPI) in a date range, earliest first, with forecast, previous and actual values. Defaults to today. Filter by country, importance and category. No token needed. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_releases_api_v1_economic_calendar_releases_get", "parameters": [{"description": "First UTC day. Default: today.", "in": "query", "name": "start", "required": false, "schema": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "First UTC day. Default: today.", "title": "Start"}}, {"description": "Last UTC day, included. Default: start + 7. At most 35 days.", "in": "query", "name": "end", "required": false, "schema": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "Last UTC day, included. Default: start + 7. At most 35 days.", "title": "End"}}, {"description": "Country codes, for example US. Repeat it.", "in": "query", "name": "countries", "required": false, "schema": {"anyOf": [{"items": {"pattern": "^[A-Za-z]{2,8}$", "type": "string"}, "maxItems": 100, "type": "array"}, {"type": "null"}], "description": "Country codes, for example US. Repeat it.", "title": "Countries"}}, {"description": "Repeat it.", "in": "query", "name": "importance", "required": false, "schema": {"anyOf": [{"items": {"enum": ["none", "low", "medium", "high"], "type": "string"}, "type": "array"}, {"type": "null"}], "description": "Repeat it.", "title": "Importance"}}, {"description": "Repeat it.", "in": "query", "name": "category", "required": false, "schema": {"anyOf": [{"items": {"enum": ["prices", "labour", "gdp", "business", "consumer", "housing", "trade", "money", "government", "bonds", "markets", "energy"], "type": "string"}, "type": "array"}, {"type": "null"}], "description": "Repeat it.", "title": "Category"}}, {"description": "Language of Indicator titles: en, zh-Hans, zh-Hant, ru, kk or th. Default: en. An untranslated title stays English; kk tries ru first.", "in": "query", "name": "locale", "required": false, "schema": {"anyOf": [{"maxLength": 16, "type": "string"}, {"type": "null"}], "description": "Language of Indicator titles: en, zh-Hans, zh-Hant, ru, kk or th. Default: en. An untranslated title stays English; kk tries ru first.", "title": "Locale"}}, {"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"forecast": 185000, "id": "d36efe59-2724-5241-b8c6-01e51cac7942", "importance": "high", "indicator": {"category": "labour", "country": "US", "id": "8ca8c52f-1867-5d5d-bdfd-8e6321eed7e8", "period_granularity": "month", "scale": "K", "title": "Nonfarm Payrolls", "title_locale": "en"}, "previous": 254000, "reference_period": "2026-10", "scheduled_at": "2026-11-06T13:30:00Z", "time_precision": "exact"}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_EconReleaseResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"econ_calendar_invalid_range": {"summary": "Invalid Range", "value": {"code": "econ_calendar_invalid_range", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The date range is reversed or longer than allowed.", "instance": "/api/v1/economic-calendar/releases", "status": 400, "title": "Invalid Range", "type": "https://errors.renzo.app/econ_calendar_invalid_range"}}, "invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/economic-calendar/releases", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`econ_calendar_invalid_range`: The date range is reversed or longer than allowed. `invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/economic-calendar/releases", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/economic-calendar/releases", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The locale is not one we know."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/economic-calendar/releases", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List economic releases", "tags": ["economic-calendar"]}}, "/api/v1/economic-calendar/releases/{release_id}": {"get": {"description": "Returns one release with its indicator and values. No token needed.", "operationId": "read_release_api_v1_economic_calendar_releases__release_id__get", "parameters": [{"in": "path", "name": "release_id", "required": true, "schema": {"format": "uuid", "title": "Release Id", "type": "string"}}, {"description": "Language of Indicator titles: en, zh-Hans, zh-Hant, ru, kk or th. Default: en. An untranslated title stays English; kk tries ru first.", "in": "query", "name": "locale", "required": false, "schema": {"anyOf": [{"maxLength": 16, "type": "string"}, {"type": "null"}], "description": "Language of Indicator titles: en, zh-Hans, zh-Hant, ru, kk or th. Default: en. An untranslated title stays English; kk tries ru first.", "title": "Locale"}}], "responses": {"200": {"content": {"application/json": {"example": {"forecast": 185000, "id": "d36efe59-2724-5241-b8c6-01e51cac7942", "importance": "high", "indicator": {"category": "labour", "country": "US", "id": "8ca8c52f-1867-5d5d-bdfd-8e6321eed7e8", "period_granularity": "month", "scale": "K", "title": "Nonfarm Payrolls", "title_locale": "en"}, "previous": 254000, "reference_period": "2026-10", "scheduled_at": "2026-11-06T13:30:00Z", "time_precision": "exact"}, "schema": {"$ref": "#/components/schemas/EconReleaseResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/economic-calendar/releases/{release_id}", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "404": {"content": {"application/problem+json": {"examples": {"econ_calendar_release_not_found": {"summary": "Release Not Found", "value": {"code": "econ_calendar_release_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No visible release has this ID.", "instance": "/api/v1/economic-calendar/releases/{release_id}", "status": 404, "title": "Release Not Found", "type": "https://errors.renzo.app/econ_calendar_release_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`econ_calendar_release_not_found`: No visible release has this ID."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/economic-calendar/releases/{release_id}", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The locale is not one we know."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/economic-calendar/releases/{release_id}", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "Get an economic release", "tags": ["economic-calendar"]}}, "/api/v1/email/one-click-unsubscribe": {"post": {"description": "The RFC 8058 one-click unsubscribe target that mailbox providers post to from the `List-Unsubscribe` header. The `token` query parameter is the only key; the form body is ignored. No sign-in needed.", "operationId": "one_click_unsubscribe_api_v1_email_one_click_unsubscribe_post", "parameters": [{"description": "From the header.", "in": "query", "name": "token", "required": true, "schema": {"description": "From the header.", "maxLength": 256, "minLength": 1, "title": "Token", "type": "string"}}], "requestBody": {"content": {"application/x-www-form-urlencoded": {"schema": {"properties": {"List-Unsubscribe": {"enum": ["One-Click"], "type": "string"}}, "type": "object"}}}, "required": false}, "responses": {"200": {"content": {"application/json": {"example": {"unsubscribed": true}, "schema": {"$ref": "#/components/schemas/OneClickUnsubscribeResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"notification_unsubscribe_token_invalid": {"summary": "Invalid Unsubscribe Link", "value": {"code": "notification_unsubscribe_token_invalid", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The unsubscribe link is damaged or was not issued by Renzo.", "instance": "/api/v1/email/one-click-unsubscribe", "status": 400, "title": "Invalid Unsubscribe Link", "type": "https://errors.renzo.app/notification_unsubscribe_token_invalid"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`notification_unsubscribe_token_invalid`: The unsubscribe link is damaged or was not issued by Renzo."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/email/one-click-unsubscribe", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/email/one-click-unsubscribe", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/email/one-click-unsubscribe", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "One-click unsubscribe (mail providers)", "tags": ["email"]}}, "/api/v1/email/unsubscribe": {"post": {"description": "Stops the kind of email named by the token from the unsubscribe link in an email body. No sign-in needed. Calling twice answers the same.", "operationId": "unsubscribe_api_v1_email_unsubscribe_post", "requestBody": {"content": {"application/json": {"example": {"token": "eyJhbGciOi...example"}, "schema": {"$ref": "#/components/schemas/EmailUnsubscribeRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"kind": "digest", "type_key": "market.pre_market_summary", "type_label": "Pre-market summary"}, "schema": {"$ref": "#/components/schemas/EmailUnsubscribeResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"notification_unsubscribe_token_invalid": {"summary": "Invalid Unsubscribe Link", "value": {"code": "notification_unsubscribe_token_invalid", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The unsubscribe link is damaged or was not issued by Renzo.", "instance": "/api/v1/email/unsubscribe", "status": 400, "title": "Invalid Unsubscribe Link", "type": "https://errors.renzo.app/notification_unsubscribe_token_invalid"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`notification_unsubscribe_token_invalid`: The unsubscribe link is damaged or was not issued by Renzo."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/email/unsubscribe", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/email/unsubscribe", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/email/unsubscribe", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "Unsubscribe from an email link", "tags": ["email"]}}, "/api/v1/feedback": {"get": {"description": "Lists your own feedback, newest first, with status and any staff reply. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_feedback_api_v1_feedback_get", "parameters": [{"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"created_at": "2026-11-17T09:00:00Z", "id": "6ca4458e-77ae-5441-b992-1b389fe10186", "kind": "idea", "message": "Please add a dark mode.", "status": "new", "updated_at": "2026-11-17T09:00:00Z"}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_FeedbackResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/feedback", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/feedback", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/feedback", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/feedback", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/feedback", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/feedback", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/feedback", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/feedback", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "List your feedback", "tags": ["feedback"]}, "post": {"description": "Sends feedback from the signed-in account and emails a receipt to the account address. Limited to 5 an hour and 20 a day per account, and 30 an hour per IP address. The same text again within 10 minutes returns the first item and sends no new receipt. Send an `Idempotency-Key` header so a retry replays the first answer.", "operationId": "create_feedback_api_v1_feedback_post", "parameters": [{"description": "Retry-safety token. A repeat with the same key replays the first response.", "in": "header", "name": "Idempotency-Key", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Retry-safety token. A repeat with the same key replays the first response.", "title": "Idempotency-Key"}}], "requestBody": {"content": {"application/json": {"example": {"contact_ok": true, "kind": "idea", "locale": "en", "message": "Please add a dark mode.", "page_url": "/en/pricing"}, "schema": {"$ref": "#/components/schemas/FeedbackCreateRequest"}}}, "required": true}, "responses": {"201": {"content": {"application/json": {"example": {"created_at": "2026-11-17T09:00:00Z", "id": "6ca4458e-77ae-5441-b992-1b389fe10186", "kind": "idea", "message": "Please add a dark mode.", "status": "new", "updated_at": "2026-11-17T09:00:00Z"}, "schema": {"$ref": "#/components/schemas/FeedbackResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/feedback", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/feedback", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/feedback", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/feedback", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/feedback", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/feedback", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/feedback", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/feedback", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "429": {"content": {"application/problem+json": {"examples": {"rate_limited": {"summary": "Too Many Requests", "value": {"code": "rate_limited", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You sent too many requests in a short time.", "instance": "/api/v1/feedback", "retry_after_seconds": 30, "status": 429, "title": "Too Many Requests", "type": "https://errors.renzo.app/rate_limited"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`rate_limited`: You sent too many requests in a short time."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/feedback", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Send feedback", "tags": ["feedback"]}}, "/api/v1/market-data": {"get": {"description": "Lists catalog symbols with their latest daily quote, change, performance and 30-day sparkline. Filter by `asset_class`, or ask for up to 100 `slugs`. A quote without a fresh price says why in `error.code`. A `bond` symbol is a US Treasury yield in percent, one business day behind. No token needed. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_market_data_api_v1_market_data_get", "parameters": [{"description": "Restrict to one asset class.", "in": "query", "name": "asset_class", "required": false, "schema": {"anyOf": [{"enum": ["equity", "index", "forex", "crypto", "commodity", "bond", "etf", "future", "option"], "type": "string"}, {"type": "null"}], "description": "Restrict to one asset class.", "title": "Asset Class"}}, {"description": "Comma-separated slugs, at most 100. Unknown slugs are skipped. Sort them for a stable cache key.", "in": "query", "name": "slugs", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Comma-separated slugs, at most 100. Unknown slugs are skipped. Sort them for a stable cache key.", "title": "Slugs"}}, {"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"asset_class": "equity", "daily_change": 1.31, "daily_change_percent": 0.7, "display_name": "Apple Inc.", "exchange": "NASDAQ", "fetched_at": "2026-11-04T06:15:00Z", "high": 188.4, "is_active": true, "latest_close": 187.42, "low": 186.2, "mapping": {"is_active": true, "mapping_version": "v1", "provider": "massive", "provider_symbol": "AAPL", "venue": "XNAS"}, "mapping_state": "mapped", "observation_at": "2026-11-03T21:00:00Z", "open": 186.9, "performance": {"m1": 3.4, "m3": 6.8, "m6": 12.1, "w1": 1.2, "y1": 24.5, "ytd": 18.9}, "price_scale": 2, "provider": "massive", "quote_state": "fresh", "session": {"close_at": "2026-11-04T21:00:00Z", "open_at": "2026-11-04T14:30:00Z"}, "slug": "aapl-nasdaq", "sparkline": [177.4, 175.78, 176.16, 178.54, 176.92, 177.3, 179.68, 178.06, 178.44, 180.82, 179.2, 179.58, 181.96, 180.34, 180.72, 183.1, 181.48, 181.86, 184.24, 182.62, 183.0, 185.38, 183.76, 184.14, 186.52, 184.9, 185.28, 187.66, 186.04, 186.42], "stale": false, "symbol_id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "ticker": "AAPL", "trading_day": "2026-11-03", "week52_high": 199.62, "week52_low": 164.08}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_MarketQuoteResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/market-data", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}, "market_data_too_many_slugs": {"summary": "Too Many Slugs", "value": {"code": "market_data_too_many_slugs", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "More than 100 slugs were sent in one request.", "instance": "/api/v1/market-data", "status": 400, "title": "Too Many Slugs", "type": "https://errors.renzo.app/market_data_too_many_slugs"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`market_data_too_many_slugs`: More than 100 slugs were sent in one request. `invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/market-data", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/market-data", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/market-data", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List market quotes", "tags": ["market-data"]}}, "/api/v1/market-data/{slug}": {"get": {"description": "Returns one symbol with its latest daily quote, change, performance and 30-day sparkline. No token needed.", "operationId": "read_market_data_api_v1_market_data__slug__get", "parameters": [{"in": "path", "name": "slug", "required": true, "schema": {"title": "Slug", "type": "string"}}], "responses": {"200": {"content": {"application/json": {"example": {"asset_class": "equity", "daily_change": 1.31, "daily_change_percent": 0.7, "display_name": "Apple Inc.", "exchange": "NASDAQ", "fetched_at": "2026-11-04T06:15:00Z", "high": 188.4, "is_active": true, "latest_close": 187.42, "low": 186.2, "mapping": {"is_active": true, "mapping_version": "v1", "provider": "massive", "provider_symbol": "AAPL", "venue": "XNAS"}, "mapping_state": "mapped", "observation_at": "2026-11-03T21:00:00Z", "open": 186.9, "performance": {"m1": 3.4, "m3": 6.8, "m6": 12.1, "w1": 1.2, "y1": 24.5, "ytd": 18.9}, "price_scale": 2, "provider": "massive", "quote_state": "fresh", "session": {"close_at": "2026-11-04T21:00:00Z", "open_at": "2026-11-04T14:30:00Z"}, "slug": "aapl-nasdaq", "sparkline": [177.4, 175.78, 176.16, 178.54, 176.92, 177.3, 179.68, 178.06, 178.44, 180.82, 179.2, 179.58, 181.96, 180.34, 180.72, 183.1, 181.48, 181.86, 184.24, 182.62, 183.0, 185.38, 183.76, 184.14, 186.52, 184.9, 185.28, 187.66, 186.04, 186.42], "stale": false, "symbol_id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "ticker": "AAPL", "trading_day": "2026-11-03", "week52_high": 199.62, "week52_low": 164.08}, "schema": {"$ref": "#/components/schemas/MarketQuoteResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/market-data/{slug}", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "404": {"content": {"application/problem+json": {"examples": {"symbol_not_found": {"summary": "Not Found", "value": {"code": "symbol_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No active symbol has this slug.", "instance": "/api/v1/market-data/{slug}", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/symbol_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`symbol_not_found`: No active symbol has this slug."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/market-data/{slug}", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/market-data/{slug}", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "Get a market quote", "tags": ["market-data"]}}, "/api/v1/market-data/{slug}/bars": {"get": {"description": "Lists the daily open, high, low and close bars of one symbol, newest day first. Limit the range with `start` and `end`. A symbol without a price source has no bars. A `bond` bar holds only the day's yield, as `close`. No token needed. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_market_bars_api_v1_market_data__slug__bars_get", "parameters": [{"in": "path", "name": "slug", "required": true, "schema": {"title": "Slug", "type": "string"}}, {"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"default": 400, "description": "Page size.", "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer"}}, {"description": "Opaque cursor from a prior page. It goes back in time.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page. It goes back in time.", "title": "Cursor"}}, {"description": "First trading day, inclusive.", "in": "query", "name": "start", "required": false, "schema": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "First trading day, inclusive.", "title": "Start"}}, {"description": "Last trading day, inclusive.", "in": "query", "name": "end", "required": false, "schema": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "Last trading day, inclusive.", "title": "End"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"close": 187.42, "high": 188.4, "low": 186.2, "open": 186.9, "trading_day": "2026-11-03", "volume": 52318400}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_MarketBarResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/market-data/{slug}/bars", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "404": {"content": {"application/problem+json": {"examples": {"symbol_not_found": {"summary": "Not Found", "value": {"code": "symbol_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No active symbol has this slug.", "instance": "/api/v1/market-data/{slug}/bars", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/symbol_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`symbol_not_found`: No active symbol has this slug."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/market-data/{slug}/bars", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/market-data/{slug}/bars", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List daily bars", "tags": ["market-data"]}}, "/api/v1/market-data/{slug}/latest-price": {"get": {"description": "Returns the intraday price that price alerts check for one symbol, so an alert form can show it. 503 when there is no price right now. Needs a customer token and a username on the account.", "operationId": "read_latest_price_api_v1_market_data__slug__latest_price_get", "parameters": [{"in": "path", "name": "slug", "required": true, "schema": {"title": "Slug", "type": "string"}}], "responses": {"200": {"content": {"application/json": {"example": {"observed_at": "2026-11-04T15:42:10Z", "price": 187.42, "replayed": false, "source": "massive", "symbol_id": "ed6621c0-5979-526b-8ba1-452bf82b80c0"}, "schema": {"$ref": "#/components/schemas/LatestPriceResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/market-data/{slug}/latest-price", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/market-data/{slug}/latest-price", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/market-data/{slug}/latest-price", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/market-data/{slug}/latest-price", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/market-data/{slug}/latest-price", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"symbol_not_found": {"summary": "Not Found", "value": {"code": "symbol_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No active symbol has this slug.", "instance": "/api/v1/market-data/{slug}/latest-price", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/symbol_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`symbol_not_found`: No active symbol has this slug."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/market-data/{slug}/latest-price", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/market-data/{slug}/latest-price", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/market-data/{slug}/latest-price", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}, "503": {"content": {"application/problem+json": {"examples": {"market_data_latest_price_unavailable": {"summary": "Price Unavailable", "value": {"code": "market_data_latest_price_unavailable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "There is no intraday price for this symbol right now.", "instance": "/api/v1/market-data/{slug}/latest-price", "status": 503, "title": "Price Unavailable", "type": "https://errors.renzo.app/market_data_latest_price_unavailable"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`market_data_latest_price_unavailable`: There is no intraday price for this symbol right now."}}, "security": [{"CustomerBearer": []}], "summary": "Get the latest intraday price", "tags": ["market-data"]}}, "/api/v1/market-holidays": {"get": {"description": "Lists exchange closures and early closes in a date range, earliest first. Defaults to today. Filter by `markets`. A date the exchange has not yet published has `estimated` true. No token needed. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_market_holidays_api_v1_market_holidays_get", "parameters": [{"description": "First day. Default: today.", "in": "query", "name": "start", "required": false, "schema": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "First day. Default: today.", "title": "Start"}}, {"description": "Last day, included. Default: start + 90. At most 400 days.", "in": "query", "name": "end", "required": false, "schema": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "description": "Last day, included. Default: start + 90. At most 400 days.", "title": "End"}}, {"description": "Exchange codes. Repeat it. Default: all.", "in": "query", "name": "markets", "required": false, "schema": {"anyOf": [{"items": {"enum": ["XNYS", "CMES", "XETR", "XEUR", "XLON", "XPAR", "XHKG", "XTKS", "XBKK", "XTAI", "XSHG", "XSES", "XMOS"], "type": "string"}, "maxItems": 50, "type": "array"}, {"type": "null"}], "description": "Exchange codes. Repeat it. Default: all.", "title": "Markets"}}, {"description": "Language of `name`. English when it has none.", "in": "query", "name": "locale", "required": false, "schema": {"default": "en", "description": "Language of `name`. English when it has none.", "enum": ["en", "kk", "ru", "th", "zh-Hans", "zh-Hant"], "title": "Locale", "type": "string"}}, {"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"close_at": "2026-11-27T18:00:00Z", "close_local": "13:00", "country": "US", "date": "2026-11-27", "estimated": false, "id": "XNYS:2026-11-27", "market": "XNYS", "market_name": "NYSE / Nasdaq", "market_name_locale": "en", "name": "Day after Thanksgiving Day", "name_locale": "en", "status": "early_close", "time_zone": "America/New_York"}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_MarketHolidayResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/market-holidays", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}, "market_holidays_invalid_range": {"summary": "Invalid Range", "value": {"code": "market_holidays_invalid_range", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The date range is reversed or longer than allowed.", "instance": "/api/v1/market-holidays", "status": 400, "title": "Invalid Range", "type": "https://errors.renzo.app/market_holidays_invalid_range"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`market_holidays_invalid_range`: The date range is reversed or longer than allowed. `invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/market-holidays", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/market-holidays", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/market-holidays", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List market holidays", "tags": ["market-holidays"]}}, "/api/v1/market-holidays/markets": {"get": {"description": "Lists the exchanges in the holiday calendar. No token needed.", "operationId": "list_markets_api_v1_market_holidays_markets_get", "parameters": [{"description": "Language of `name`. English when it has none.", "in": "query", "name": "locale", "required": false, "schema": {"default": "en", "description": "Language of `name`. English when it has none.", "enum": ["en", "kk", "ru", "th", "zh-Hans", "zh-Hant"], "title": "Locale", "type": "string"}}], "responses": {"200": {"content": {"application/json": {"example": {"markets": [{"code": "XNYS", "country": "US", "name": "NYSE / Nasdaq", "name_locale": "en", "time_zone": "America/New_York"}]}, "schema": {"$ref": "#/components/schemas/MarketsResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/market-holidays/markets", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/market-holidays/markets", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/market-holidays/markets", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/market-holidays/markets", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List markets", "tags": ["market-holidays"]}}, "/api/v1/notifications/channels": {"get": {"description": "Lists the delivery channels (email, WhatsApp, Telegram) and whether each can reach you now. Needs a customer token.", "operationId": "list_channels_api_v1_notifications_channels_get", "responses": {"200": {"content": {"application/json": {"example": {"channels": [{"available": true, "channel": "email", "connected": true, "price_alerts_available": true}, {"available": true, "channel": "telegram", "connected": true, "connected_at": "2026-10-06T09:12:00Z", "display_name": "@marketwatcher", "price_alerts_available": true}, {"available": false, "channel": "whatsapp", "connected": false, "price_alerts_available": false}]}, "schema": {"$ref": "#/components/schemas/ChannelConnectionListResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/notifications/channels", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/notifications/channels", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/notifications/channels", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/notifications/channels", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/notifications/channels", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/notifications/channels", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/notifications/channels", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/notifications/channels", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "List your channels", "tags": ["notifications"]}}, "/api/v1/notifications/channels/{channel}": {"delete": {"description": "Stops delivery on the channel at once and forgets the connected account. Disconnecting twice is not an error. Needs a customer token and a username on the account.", "operationId": "disconnect_channel_api_v1_notifications_channels__channel__delete", "parameters": [{"in": "path", "name": "channel", "required": true, "schema": {"title": "Channel", "type": "string"}}], "responses": {"204": {"description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/notifications/channels/{channel}", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/notifications/channels/{channel}", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/notifications/channels/{channel}", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/notifications/channels/{channel}", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/notifications/channels/{channel}", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/notifications/channels/{channel}", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/notifications/channels/{channel}", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"notification_channel_not_connectable": {"summary": "Channel Not Connectable", "value": {"code": "notification_channel_not_connectable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This channel needs no connection step, for example email.", "instance": "/api/v1/notifications/channels/{channel}", "status": 422, "title": "Channel Not Connectable", "type": "https://errors.renzo.app/notification_channel_not_connectable"}}, "notification_channel_unknown": {"summary": "Unknown Channel", "value": {"code": "notification_channel_unknown", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The channel name is not one Renzo knows.", "instance": "/api/v1/notifications/channels/{channel}", "status": 422, "title": "Unknown Channel", "type": "https://errors.renzo.app/notification_channel_unknown"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`notification_channel_unknown`: The channel name is not one Renzo knows. `notification_channel_not_connectable`: This channel needs no connection step, for example email."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/notifications/channels/{channel}", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Disconnect a messaging app", "tags": ["notifications"]}}, "/api/v1/notifications/channels/{channel}/connect": {"post": {"description": "Returns a single-use, short-lived link that connects a messaging account, such as Telegram or WhatsApp, to your Renzo account. Open it in that app to finish. WhatsApp needs any paid plan. Needs a customer token and a username on the account.", "operationId": "begin_connect_api_v1_notifications_channels__channel__connect_post", "parameters": [{"in": "path", "name": "channel", "required": true, "schema": {"title": "Channel", "type": "string"}}], "responses": {"201": {"content": {"application/json": {"example": {"channel": "telegram", "deep_link": "https://t.me/RenzoAlertsBot?start=Zk3p9QxT2mVw", "expires_at": "2026-11-04T13:40:00Z"}, "schema": {"$ref": "#/components/schemas/ConnectTicketResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/notifications/channels/{channel}/connect", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/notifications/channels/{channel}/connect", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/notifications/channels/{channel}/connect", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/notifications/channels/{channel}/connect", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/notifications/channels/{channel}/connect", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "403": {"content": {"application/problem+json": {"examples": {"notification_channel_locked": {"summary": "Channel Needs a Paid Plan", "value": {"code": "notification_channel_locked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "WhatsApp delivery comes with any paid Renzo plan, and the free plan does not include it.", "instance": "/api/v1/notifications/channels/{channel}/connect", "status": 403, "title": "Channel Needs a Paid Plan", "type": "https://errors.renzo.app/notification_channel_locked"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`notification_channel_locked`: WhatsApp delivery comes with any paid Renzo plan, and the free plan does not include it."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/notifications/channels/{channel}/connect", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/notifications/channels/{channel}/connect", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"notification_channel_not_connectable": {"summary": "Channel Not Connectable", "value": {"code": "notification_channel_not_connectable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This channel needs no connection step, for example email.", "instance": "/api/v1/notifications/channels/{channel}/connect", "status": 422, "title": "Channel Not Connectable", "type": "https://errors.renzo.app/notification_channel_not_connectable"}}, "notification_channel_unavailable": {"summary": "Channel Unavailable", "value": {"code": "notification_channel_unavailable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This channel cannot deliver right now in this environment.", "instance": "/api/v1/notifications/channels/{channel}/connect", "status": 422, "title": "Channel Unavailable", "type": "https://errors.renzo.app/notification_channel_unavailable"}}, "notification_channel_unknown": {"summary": "Unknown Channel", "value": {"code": "notification_channel_unknown", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The channel name is not one Renzo knows.", "instance": "/api/v1/notifications/channels/{channel}/connect", "status": 422, "title": "Unknown Channel", "type": "https://errors.renzo.app/notification_channel_unknown"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`notification_channel_unknown`: The channel name is not one Renzo knows. `notification_channel_not_connectable`: This channel needs no connection step, for example email. `notification_channel_unavailable`: This channel cannot deliver right now in this environment."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/notifications/channels/{channel}/connect", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Start connecting a messaging app", "tags": ["notifications"]}}, "/api/v1/notifications/preferences": {"get": {"description": "Returns, for each notification type and channel, whether you receive it. A cell you never set shows the type's default. Needs a customer token.", "operationId": "read_preferences_api_v1_notifications_preferences_get", "responses": {"200": {"content": {"application/json": {"example": {"channels": ["email", "whatsapp", "telegram", "wechat"], "types": [{"channels": [{"available": true, "channel": "email", "connected": true, "enabled": true}, {"available": true, "channel": "telegram", "connected": true, "enabled": false}], "description": "A short summary of the markets before the US open.", "label": "Pre-market summary", "type_key": "market.pre_market_summary"}]}, "schema": {"$ref": "#/components/schemas/PreferenceMatrixResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/notifications/preferences", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/notifications/preferences", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/notifications/preferences", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/notifications/preferences", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/notifications/preferences", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/notifications/preferences", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/notifications/preferences", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/notifications/preferences", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Get your notification preferences", "tags": ["notifications"]}, "put": {"description": "Turns notification types on or off per channel. Cells you leave out keep their current value. WhatsApp needs any paid plan. Needs a customer token and a username on the account.", "operationId": "set_preferences_api_v1_notifications_preferences_put", "requestBody": {"content": {"application/json": {"example": {"preferences": [{"channel": "telegram", "enabled": true, "type_key": "market.pre_market_summary"}]}, "schema": {"$ref": "#/components/schemas/PreferenceUpdateRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"channels": ["email", "whatsapp", "telegram", "wechat"], "types": [{"channels": [{"available": true, "channel": "email", "connected": true, "enabled": true}, {"available": true, "channel": "telegram", "connected": true, "enabled": false}], "description": "A short summary of the markets before the US open.", "label": "Pre-market summary", "type_key": "market.pre_market_summary"}]}, "schema": {"$ref": "#/components/schemas/PreferenceMatrixResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/notifications/preferences", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/notifications/preferences", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/notifications/preferences", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/notifications/preferences", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/notifications/preferences", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "403": {"content": {"application/problem+json": {"examples": {"notification_channel_locked": {"summary": "Channel Needs a Paid Plan", "value": {"code": "notification_channel_locked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "WhatsApp delivery comes with any paid Renzo plan, and the free plan does not include it.", "instance": "/api/v1/notifications/preferences", "status": 403, "title": "Channel Needs a Paid Plan", "type": "https://errors.renzo.app/notification_channel_locked"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`notification_channel_locked`: WhatsApp delivery comes with any paid Renzo plan, and the free plan does not include it."}, "404": {"content": {"application/problem+json": {"examples": {"notification_type_not_found": {"summary": "Not Found", "value": {"code": "notification_type_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No notification type has this key.", "instance": "/api/v1/notifications/preferences", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/notification_type_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`notification_type_not_found`: No notification type has this key."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/notifications/preferences", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"notification_channel_unavailable": {"summary": "Channel Unavailable", "value": {"code": "notification_channel_unavailable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This channel cannot deliver right now in this environment.", "instance": "/api/v1/notifications/preferences", "status": 422, "title": "Channel Unavailable", "type": "https://errors.renzo.app/notification_channel_unavailable"}}, "notification_channel_unknown": {"summary": "Unknown Channel", "value": {"code": "notification_channel_unknown", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The channel name is not one Renzo knows.", "instance": "/api/v1/notifications/preferences", "status": 422, "title": "Unknown Channel", "type": "https://errors.renzo.app/notification_channel_unknown"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`notification_channel_unknown`: The channel name is not one Renzo knows. `notification_channel_unavailable`: This channel cannot deliver right now in this environment."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/notifications/preferences", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Update your notification preferences", "tags": ["notifications"]}}, "/api/v1/notifications/types": {"get": {"description": "Lists the kinds of notifications Renzo sends, such as price alerts, with their default channels. Needs a customer token. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_types_api_v1_notifications_types_get", "parameters": [{"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"default_channels": ["email"], "description": "A short summary of the markets before the US open.", "id": "673b6764-9c5c-5187-895f-079e3e5f67ab", "key": "market.pre_market_summary", "label": "Pre-market summary", "position": 2, "schedule_kind": "daily", "send_hour_local": 8}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_NotificationTypeResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/notifications/types", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/notifications/types", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/notifications/types", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/notifications/types", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/notifications/types", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/notifications/types", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/notifications/types", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/notifications/types", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "List notification types", "tags": ["notifications"]}}, "/api/v1/price-alerts": {"get": {"description": "Lists your price alerts, newest first, each with the symbol's current price. Filter by `symbol_id` or `state`. Your plan's cap is `price_alerts.max_active` in `GET /api/v1/users/me/entitlements`. Needs a customer token and a username on the account. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_price_alerts_api_v1_price_alerts_get", "parameters": [{"description": "Only alerts on this symbol.", "in": "query", "name": "symbol_id", "required": false, "schema": {"anyOf": [{"format": "uuid", "type": "string"}, {"type": "null"}], "description": "Only alerts on this symbol.", "title": "Symbol Id"}}, {"description": "Only alerts in this state.", "in": "query", "name": "state", "required": false, "schema": {"anyOf": [{"$ref": "#/components/schemas/AlertState"}, {"type": "null"}], "description": "Only alerts in this state.", "title": "State"}}, {"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"channels": ["telegram", "email"], "created_at": "2026-11-04T13:30:00Z", "current_price": 187.42, "direction": "above", "distance_percent": 6.71, "id": "6ca4458e-77ae-5441-b992-1b389fe10186", "mode": "single", "price_observed_at": "2026-11-04T15:42:10Z", "price_replayed": false, "state": "active", "symbol": {"asset_class": "equity", "display_name": "Apple Inc.", "exchange": "NASDAQ", "id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "is_active": true, "slug": "aapl-nasdaq", "ticker": "AAPL"}, "target_price": 200, "updated_at": "2026-11-04T13:30:00Z"}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_PriceAlertResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/price-alerts", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/price-alerts", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/price-alerts", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/price-alerts", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/price-alerts", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/price-alerts", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/price-alerts", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/price-alerts", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/price-alerts", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "List your price alerts", "tags": ["price-alerts"]}, "post": {"description": "Creates an alert that messages you by email, Telegram or WhatsApp when the symbol's price crosses `target_price`. Refused once your plan's active-alert limit is reached. Needs a customer token and a username on the account. Send an `Idempotency-Key` header so a retry replays the first answer instead of acting twice.", "operationId": "create_price_alert_api_v1_price_alerts_post", "parameters": [{"description": "Retry-safety token. A repeat with the same key replays the first response.", "in": "header", "name": "Idempotency-Key", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Retry-safety token. A repeat with the same key replays the first response.", "title": "Idempotency-Key"}}], "requestBody": {"content": {"application/json": {"example": {"channels": ["telegram", "email"], "direction": "above", "mode": "single", "symbol_id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "target_price": "200.00"}, "schema": {"$ref": "#/components/schemas/PriceAlertCreateRequest"}}}, "required": true}, "responses": {"201": {"content": {"application/json": {"example": {"channels": ["telegram", "email"], "created_at": "2026-11-04T13:30:00Z", "current_price": 187.42, "direction": "above", "distance_percent": 6.71, "id": "6ca4458e-77ae-5441-b992-1b389fe10186", "mode": "single", "price_observed_at": "2026-11-04T15:42:10Z", "price_replayed": false, "state": "active", "symbol": {"asset_class": "equity", "display_name": "Apple Inc.", "exchange": "NASDAQ", "id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "is_active": true, "slug": "aapl-nasdaq", "ticker": "AAPL"}, "target_price": 200, "updated_at": "2026-11-04T13:30:00Z"}, "schema": {"$ref": "#/components/schemas/PriceAlertResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/price-alerts", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/price-alerts", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/price-alerts", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/price-alerts", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/price-alerts", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"price_alert_symbol_not_found": {"summary": "Not Found", "value": {"code": "price_alert_symbol_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No active symbol has this ID.", "instance": "/api/v1/price-alerts", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/price_alert_symbol_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`price_alert_symbol_not_found`: No active symbol has this ID."}, "409": {"content": {"application/problem+json": {"examples": {"price_alert_limit_reached": {"summary": "Price Alert Limit Reached", "value": {"code": "price_alert_limit_reached", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Your plan allows no more active price alerts.", "instance": "/api/v1/price-alerts", "status": 409, "title": "Price Alert Limit Reached", "type": "https://errors.renzo.app/price_alert_limit_reached"}}, "profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/price-alerts", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`price_alert_limit_reached`: Your plan allows no more active price alerts."}, "422": {"content": {"application/problem+json": {"examples": {"price_alert_channel_not_connected": {"summary": "Channel Not Connected", "value": {"code": "price_alert_channel_not_connected", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The alert asks for a channel, such as Telegram, that your account has not connected.", "instance": "/api/v1/price-alerts", "status": 422, "title": "Channel Not Connected", "type": "https://errors.renzo.app/price_alert_channel_not_connected"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`price_alert_channel_not_connected`: The alert asks for a channel, such as Telegram, that your account has not connected."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/price-alerts", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Create a price alert", "tags": ["price-alerts"]}}, "/api/v1/price-alerts/fired": {"get": {"description": "Lists the times your alerts fired, newest first, with the price that fired them. Filter by `symbol_id` or `alert_id`. Needs a customer token and a username on the account. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_fired_price_alerts_api_v1_price_alerts_fired_get", "parameters": [{"description": "Only alerts on this symbol.", "in": "query", "name": "symbol_id", "required": false, "schema": {"anyOf": [{"format": "uuid", "type": "string"}, {"type": "null"}], "description": "Only alerts on this symbol.", "title": "Symbol Id"}}, {"description": "Only fires of this alert.", "in": "query", "name": "alert_id", "required": false, "schema": {"anyOf": [{"format": "uuid", "type": "string"}, {"type": "null"}], "description": "Only fires of this alert.", "title": "Alert Id"}}, {"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"alert_id": "6ca4458e-77ae-5441-b992-1b389fe10186", "channels": ["telegram"], "deliveries": [{"channel": "telegram", "status": "sent"}], "direction": "above", "fired_at": "2026-11-04T15:42:10Z", "id": "c4566de0-dd1f-597e-be82-e8ed221f75bc", "mode": "single", "observed_at": "2026-11-04T15:42:10Z", "price": 200.15, "replayed": false, "symbol": {"asset_class": "equity", "display_name": "Apple Inc.", "exchange": "NASDAQ", "id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "is_active": true, "slug": "aapl-nasdaq", "ticker": "AAPL"}, "target_price": 200}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_PriceAlertFireResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/price-alerts/fired", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/price-alerts/fired", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/price-alerts/fired", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/price-alerts/fired", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/price-alerts/fired", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/price-alerts/fired", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/price-alerts/fired", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/price-alerts/fired", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/price-alerts/fired", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "List fired alerts", "tags": ["price-alerts"]}}, "/api/v1/price-alerts/stop": {"post": {"description": "Stops one alert using the signed token from the stop link in an alert message. The token is the only key, so no sign-in is needed. Clicking twice answers the same.", "operationId": "stop_price_alert_api_v1_price_alerts_stop_post", "requestBody": {"content": {"application/json": {"example": {"token": "eyJhbGciOi...example"}, "schema": {"$ref": "#/components/schemas/PriceAlertStopRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"alert_id": "6ca4458e-77ae-5441-b992-1b389fe10186", "direction": "above", "state": "paused", "target_price": 200, "ticker": "AAPL"}, "schema": {"$ref": "#/components/schemas/PriceAlertStopResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"price_alert_stop_token_invalid": {"summary": "Invalid Stop Link", "value": {"code": "price_alert_stop_token_invalid", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The stop link is damaged or was not issued by Renzo.", "instance": "/api/v1/price-alerts/stop", "status": 400, "title": "Invalid Stop Link", "type": "https://errors.renzo.app/price_alert_stop_token_invalid"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`price_alert_stop_token_invalid`: The stop link is damaged or was not issued by Renzo."}, "404": {"content": {"application/problem+json": {"examples": {"price_alert_not_found": {"summary": "Not Found", "value": {"code": "price_alert_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No price alert with this ID belongs to you.", "instance": "/api/v1/price-alerts/stop", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/price_alert_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`price_alert_not_found`: No price alert with this ID belongs to you."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/price-alerts/stop", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/price-alerts/stop", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "Stop an alert from its message link", "tags": ["price-alerts"]}}, "/api/v1/price-alerts/{alert_id}": {"delete": {"description": "Deletes one of your alerts. Its past fires stay in the fired list. Needs a customer token and a username on the account.", "operationId": "delete_price_alert_api_v1_price_alerts__alert_id__delete", "parameters": [{"in": "path", "name": "alert_id", "required": true, "schema": {"format": "uuid", "title": "Alert Id", "type": "string"}}], "responses": {"204": {"description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"price_alert_not_found": {"summary": "Not Found", "value": {"code": "price_alert_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No price alert with this ID belongs to you.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/price_alert_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`price_alert_not_found`: No price alert with this ID belongs to you."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/price-alerts/{alert_id}", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Delete a price alert", "tags": ["price-alerts"]}, "get": {"description": "Returns one of your price alerts with the symbol's current price. Needs a customer token and a username on the account.", "operationId": "read_price_alert_api_v1_price_alerts__alert_id__get", "parameters": [{"in": "path", "name": "alert_id", "required": true, "schema": {"format": "uuid", "title": "Alert Id", "type": "string"}}], "responses": {"200": {"content": {"application/json": {"example": {"channels": ["telegram", "email"], "created_at": "2026-11-04T13:30:00Z", "current_price": 187.42, "direction": "above", "distance_percent": 6.71, "id": "6ca4458e-77ae-5441-b992-1b389fe10186", "mode": "single", "price_observed_at": "2026-11-04T15:42:10Z", "price_replayed": false, "state": "active", "symbol": {"asset_class": "equity", "display_name": "Apple Inc.", "exchange": "NASDAQ", "id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "is_active": true, "slug": "aapl-nasdaq", "ticker": "AAPL"}, "target_price": 200, "updated_at": "2026-11-04T13:30:00Z"}, "schema": {"$ref": "#/components/schemas/PriceAlertResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"price_alert_not_found": {"summary": "Not Found", "value": {"code": "price_alert_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No price alert with this ID belongs to you.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/price_alert_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`price_alert_not_found`: No price alert with this ID belongs to you."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/price-alerts/{alert_id}", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Get a price alert", "tags": ["price-alerts"]}, "patch": {"description": "Changes the target, mode or channels of an alert, or pauses or resumes it. Re-arming a fired alert counts against your active-alert limit. Needs a customer token and a username on the account.", "operationId": "update_price_alert_api_v1_price_alerts__alert_id__patch", "parameters": [{"in": "path", "name": "alert_id", "required": true, "schema": {"format": "uuid", "title": "Alert Id", "type": "string"}}], "requestBody": {"content": {"application/json": {"example": {"channels": ["email"], "direction": "above", "mode": "continuous", "state": "active", "target_price": "195.50"}, "schema": {"$ref": "#/components/schemas/PriceAlertUpdateRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"channels": ["telegram", "email"], "created_at": "2026-11-04T13:30:00Z", "current_price": 187.42, "direction": "above", "distance_percent": 6.71, "id": "6ca4458e-77ae-5441-b992-1b389fe10186", "mode": "single", "price_observed_at": "2026-11-04T15:42:10Z", "price_replayed": false, "state": "active", "symbol": {"asset_class": "equity", "display_name": "Apple Inc.", "exchange": "NASDAQ", "id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "is_active": true, "slug": "aapl-nasdaq", "ticker": "AAPL"}, "target_price": 200, "updated_at": "2026-11-04T13:30:00Z"}, "schema": {"$ref": "#/components/schemas/PriceAlertResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"price_alert_not_found": {"summary": "Not Found", "value": {"code": "price_alert_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No price alert with this ID belongs to you.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/price_alert_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`price_alert_not_found`: No price alert with this ID belongs to you."}, "409": {"content": {"application/problem+json": {"examples": {"price_alert_limit_reached": {"summary": "Price Alert Limit Reached", "value": {"code": "price_alert_limit_reached", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Your plan allows no more active price alerts.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 409, "title": "Price Alert Limit Reached", "type": "https://errors.renzo.app/price_alert_limit_reached"}}, "profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`price_alert_limit_reached`: Your plan allows no more active price alerts."}, "422": {"content": {"application/problem+json": {"examples": {"price_alert_channel_not_connected": {"summary": "Channel Not Connected", "value": {"code": "price_alert_channel_not_connected", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The alert asks for a channel, such as Telegram, that your account has not connected.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 422, "title": "Channel Not Connected", "type": "https://errors.renzo.app/price_alert_channel_not_connected"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`price_alert_channel_not_connected`: The alert asks for a channel, such as Telegram, that your account has not connected."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/price-alerts/{alert_id}", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Update a price alert", "tags": ["price-alerts"]}}, "/api/v1/products": {"get": {"description": "Lists the plans on sale with their active prices and what each plan grants. The free plan has no price. No token needed. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_products_api_v1_products_get", "parameters": [{"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"capabilities": {"content.tier": "premium", "markets.data_download": true, "mcp.full_text": true, "notifications.whatsapp": true, "price_alerts.max_active": 50, "watchlist.max_lists": 10}, "code": "premium", "description": "Full articles, key takeaways and more price alerts.", "highlighted": true, "id": "52108830-cd62-51b4-9ce3-f0051ed42666", "is_default": false, "name": "Premium", "prices": [{"amount_cents": 1900, "currency": "USD", "id": "e20b39bd-9326-5178-9074-9c31733f3a2f", "interval": "month"}, {"amount_cents": 19000, "currency": "USD", "id": "026b9c9b-b877-592c-9954-cc9d8ee8e9d1", "interval": "year"}], "rank": 10}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_PublicProductResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/products", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/products", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/products", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/products", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List plans and prices", "tags": ["products"]}}, "/api/v1/referrals/codes/{code}": {"get": {"description": "Says whether a referral code is active and what discount it gives, for a live check on a sign-up form. Case does not matter. No token needed. Throttled per IP address.", "operationId": "check_code_api_v1_referrals_codes__code__get", "parameters": [{"in": "path", "name": "code", "required": true, "schema": {"title": "Code", "type": "string"}}], "responses": {"200": {"content": {"application/json": {"example": {"code": "RENZO-A7K2", "discount_percent": 20}, "schema": {"$ref": "#/components/schemas/ReferralCodeResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/referrals/codes/{code}", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "404": {"content": {"application/problem+json": {"examples": {"referral_code_not_found": {"summary": "Referral Code Not Found", "value": {"code": "referral_code_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No active referral code matches, or the referral program is off.", "instance": "/api/v1/referrals/codes/{code}", "status": 404, "title": "Referral Code Not Found", "type": "https://errors.renzo.app/referral_code_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`referral_code_not_found`: No active referral code matches, or the referral program is off."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/referrals/codes/{code}", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "429": {"content": {"application/problem+json": {"examples": {"rate_limited": {"summary": "Too Many Requests", "value": {"code": "rate_limited", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You sent too many requests in a short time.", "instance": "/api/v1/referrals/codes/{code}", "retry_after_seconds": 30, "status": 429, "title": "Too Many Requests", "type": "https://errors.renzo.app/rate_limited"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`rate_limited`: You sent too many requests in a short time."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/referrals/codes/{code}", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "Check a referral code", "tags": ["referrals"]}}, "/api/v1/referrals/me": {"get": {"description": "Returns your referral code and link with totals of friends who joined and rewards earned. The code is made on the first read. Friends are never named. Needs a customer token and a username on the account.", "operationId": "read_my_referrals_api_v1_referrals_me_get", "responses": {"200": {"content": {"application/json": {"example": {"can_add_code": true, "cap": 12, "code": "RENZO-A7K2", "discount_percent": 20, "enabled": true, "has_referrer": false, "hold_days": 14, "link_path": "/r/RENZO-A7K2", "my_reward": {"days": 30, "kind": "grant"}, "reward_days": 30, "totals": {"earned": 1, "earned_credit_cents": 0, "left_this_year": 11, "next_reward_at": "2026-11-18T13:30:00Z", "pending": 1, "signed_up": 5, "subscribed": 2}}, "schema": {"$ref": "#/components/schemas/ReferralSummaryResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/referrals/me", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/referrals/me", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/referrals/me", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/referrals/me", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/referrals/me", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/referrals/me", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/referrals/me", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}, "referral_cannot_refer": {"summary": "Cannot Refer", "value": {"code": "referral_cannot_refer", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Only an account with a username can have a referral code.", "instance": "/api/v1/referrals/me", "status": 409, "title": "Cannot Refer", "type": "https://errors.renzo.app/referral_cannot_refer"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`referral_cannot_refer`: Only an account with a username can have a referral code."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/referrals/me", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/referrals/me", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Get your referral link and totals", "tags": ["referrals"]}}, "/api/v1/referrals/me/referrer": {"post": {"description": "Links your account to the friend who referred you. Allowed once, and only before you ever had a plan. Needs a customer token and a username on the account. Send an `Idempotency-Key` header so a retry replays the first answer instead of acting twice.", "operationId": "claim_referrer_api_v1_referrals_me_referrer_post", "parameters": [{"description": "Retry-safety token. A repeat with the same key replays the first response.", "in": "header", "name": "Idempotency-Key", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Retry-safety token. A repeat with the same key replays the first response.", "title": "Idempotency-Key"}}], "requestBody": {"content": {"application/json": {"example": {"code": "RENZO-A7K2"}, "schema": {"$ref": "#/components/schemas/ClaimReferrerRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"can_add_code": true, "cap": 12, "code": "RENZO-A7K2", "discount_percent": 20, "enabled": true, "has_referrer": false, "hold_days": 14, "link_path": "/r/RENZO-A7K2", "my_reward": {"days": 30, "kind": "grant"}, "reward_days": 30, "totals": {"earned": 1, "earned_credit_cents": 0, "left_this_year": 11, "next_reward_at": "2026-11-18T13:30:00Z", "pending": 1, "signed_up": 5, "subscribed": 2}}, "schema": {"$ref": "#/components/schemas/ReferralSummaryResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/referrals/me/referrer", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/referrals/me/referrer", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/referrals/me/referrer", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/referrals/me/referrer", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/referrals/me/referrer", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"referral_code_not_found": {"summary": "Referral Code Not Found", "value": {"code": "referral_code_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No active referral code matches, or the referral program is off.", "instance": "/api/v1/referrals/me/referrer", "status": 404, "title": "Referral Code Not Found", "type": "https://errors.renzo.app/referral_code_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`referral_code_not_found`: No active referral code matches, or the referral program is off."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/referrals/me/referrer", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}, "referral_not_eligible": {"summary": "Not Eligible", "value": {"code": "referral_not_eligible", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Only an account that never had a plan can add a referral code.", "instance": "/api/v1/referrals/me/referrer", "status": 409, "title": "Not Eligible", "type": "https://errors.renzo.app/referral_not_eligible"}}, "referral_own_code": {"summary": "Own Referral Code", "value": {"code": "referral_own_code", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You cannot use your own referral code.", "instance": "/api/v1/referrals/me/referrer", "status": 409, "title": "Own Referral Code", "type": "https://errors.renzo.app/referral_own_code"}}, "referrer_already_set": {"summary": "Referrer Already Set", "value": {"code": "referrer_already_set", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Your account already has a referrer.", "instance": "/api/v1/referrals/me/referrer", "status": 409, "title": "Referrer Already Set", "type": "https://errors.renzo.app/referrer_already_set"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`referral_own_code`: You cannot use your own referral code. `referrer_already_set`: Your account already has a referrer. `referral_not_eligible`: Only an account that never had a plan can add a referral code."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/referrals/me/referrer", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/referrals/me/referrer", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Add a friend's referral code", "tags": ["referrals"]}}, "/api/v1/referrals/program": {"get": {"description": "Says whether the referral program is on and what discount a friend gets. Cached. No token needed. Throttled per IP address.", "operationId": "read_program_api_v1_referrals_program_get", "responses": {"200": {"content": {"application/json": {"example": {"discount_percent": 20, "enabled": true}, "schema": {"$ref": "#/components/schemas/ReferralProgramResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/referrals/program", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/referrals/program", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/referrals/program", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "429": {"content": {"application/problem+json": {"examples": {"rate_limited": {"summary": "Too Many Requests", "value": {"code": "rate_limited", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You sent too many requests in a short time.", "instance": "/api/v1/referrals/program", "retry_after_seconds": 30, "status": 429, "title": "Too Many Requests", "type": "https://errors.renzo.app/rate_limited"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`rate_limited`: You sent too many requests in a short time."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/referrals/program", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "Get referral program status", "tags": ["referrals"]}}, "/api/v1/search": {"get": {"description": "Full-text search over published articles in the requested language. Best match first, and a recent article ranks above an older match of the same quality. Filter by `type`, by `symbol` for the articles tagged with that symbol slug, and by `published_after` for articles published at or after that time. No token needed. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "search_articles_api_v1_search_get", "parameters": [{"description": "What the visitor typed. An empty query returns no results, and a query longer than 200 characters is truncated.", "in": "query", "name": "q", "required": false, "schema": {"default": "", "description": "What the visitor typed. An empty query returns no results, and a query longer than 200 characters is truncated.", "title": "Q", "type": "string"}}, {"description": "Article locale, as the engine code or the public tag. Falls back to English.", "in": "query", "name": "locale", "required": false, "schema": {"anyOf": [{"maxLength": 16, "type": "string"}, {"type": "null"}], "description": "Article locale, as the engine code or the public tag. Falls back to English.", "title": "Locale"}}, {"in": "query", "name": "type", "required": false, "schema": {"anyOf": [{"enum": ["news", "opinion", "editorial", "guide"], "type": "string"}, {"type": "null"}], "title": "Type"}}, {"description": "Leave out every article with no translation in `locale`, not English.", "in": "query", "name": "exact_locale", "required": false, "schema": {"default": false, "description": "Leave out every article with no translation in `locale`, not English.", "title": "Exact Locale", "type": "boolean"}}, {"description": "A symbol slug, for example `eur-usd`. Any tag role counts. An unknown or retired slug answers 404.", "in": "query", "name": "symbol", "required": false, "schema": {"anyOf": [{"maxLength": 160, "type": "string"}, {"type": "null"}], "description": "A symbol slug, for example `eur-usd`. Any tag role counts. An unknown or retired slug answers 404.", "title": "Symbol"}}, {"description": "An ISO-8601 UTC time in the past. Keeps articles published at or after it.", "in": "query", "name": "published_after", "required": false, "schema": {"anyOf": [{"format": "date-time", "type": "string"}, {"type": "null"}], "description": "An ISO-8601 UTC time in the past. Keeps articles published at or after it.", "title": "Published After"}}, {"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"access_level": "public", "byline": {"name": "Hafizah Rina", "url": "https://www.linkedin.com/in/hafizah-rina-43a1531a4"}, "created_at": "2026-11-04T13:30:00Z", "hero_image_url": "https://cdn.renzo-digital.com/articles/fed-holds-rates.jpg", "id": "f43679d3-0ab5-5f68-8bda-f0a4c5560594", "is_editors_pick": false, "is_scheduled": false, "locale": "en", "published_at": "2026-11-04T13:30:00Z", "requested_locale": "en", "seo_description": "The Fed kept rates unchanged and signalled patience.", "slug": "fed-holds-rates-steady-as-inflation-cools", "status": "published", "symbols": [{"asset_class": "index", "display_name": "US 500 Index", "exchange": "INDEX", "id": "63d60d4b-cbbd-510b-8352-cdb4ac4859ae", "is_active": true, "role": "primary", "slug": "us500-index", "ticker": "US500"}], "title": "Fed holds rates steady as inflation cools", "type": "news", "updated_at": "2026-11-04T13:30:00Z"}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_ArticleSummaryResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/search", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "404": {"content": {"application/problem+json": {"examples": {"symbol_not_found": {"summary": "Not Found", "value": {"code": "symbol_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No active symbol has this slug.", "instance": "/api/v1/search", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/symbol_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`symbol_not_found`: No active symbol has this slug."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/search", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/search", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "Search articles", "tags": ["search"]}}, "/api/v1/search/suggestions": {"get": {"description": "Published articles whose title holds every word of `q`, also a part word. Titles that start with `q` come first, then the newest. Articles that match `q` in the text fill any room left, newest first. A query with no word of 3 or more characters, or one that takes too long, returns no items. No token needed.", "operationId": "suggest_articles_api_v1_search_suggestions_get", "parameters": [{"description": "What the visitor typed. An empty query returns no results, and a query longer than 200 characters is truncated.", "in": "query", "name": "q", "required": false, "schema": {"default": "", "description": "What the visitor typed. An empty query returns no results, and a query longer than 200 characters is truncated.", "title": "Q", "type": "string"}}, {"description": "Article locale, as the engine code or the public tag. Falls back to English.", "in": "query", "name": "locale", "required": false, "schema": {"anyOf": [{"maxLength": 16, "type": "string"}, {"type": "null"}], "description": "Article locale, as the engine code or the public tag. Falls back to English.", "title": "Locale"}}, {"description": "Leave out every article with no translation in `locale`, not English.", "in": "query", "name": "exact_locale", "required": false, "schema": {"default": false, "description": "Leave out every article with no translation in `locale`, not English.", "title": "Exact Locale", "type": "boolean"}}, {"in": "query", "name": "limit", "required": false, "schema": {"default": 6, "maximum": 10, "minimum": 1, "title": "Limit", "type": "integer"}}], "responses": {"200": {"content": {"application/json": {"example": {"items": [{"access_level": "public", "created_at": "2026-11-04T13:30:00Z", "id": "f43679d3-0ab5-5f68-8bda-f0a4c5560594", "locale": "en", "published_at": "2026-11-04T13:30:00Z", "requested_locale": "en", "slug": "inflation-cools-in-the-euro-area", "status": "published", "title": "Inflation cools in the euro area", "type": "news", "updated_at": "2026-11-04T13:30:00Z"}]}, "schema": {"$ref": "#/components/schemas/ArticleSuggestionsResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/search/suggestions", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/search/suggestions", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/search/suggestions", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/search/suggestions", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "Suggest articles as the visitor types", "tags": ["search"]}}, "/api/v1/shelves/editors-pick": {"get": {"description": "Lists the articles the editors picked, newest first. No token needed. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "editors_pick_api_v1_shelves_editors_pick_get", "parameters": [{"description": "Article locale, as the engine code or the public tag. Falls back to English.", "in": "query", "name": "locale", "required": false, "schema": {"anyOf": [{"maxLength": 16, "type": "string"}, {"type": "null"}], "description": "Article locale, as the engine code or the public tag. Falls back to English.", "title": "Locale"}}, {"description": "Leave out every article with no translation in `locale`, not English.", "in": "query", "name": "exact_locale", "required": false, "schema": {"default": false, "description": "Leave out every article with no translation in `locale`, not English.", "title": "Exact Locale", "type": "boolean"}}, {"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"access_level": "public", "byline": {"name": "Hafizah Rina", "url": "https://www.linkedin.com/in/hafizah-rina-43a1531a4"}, "created_at": "2026-11-04T13:30:00Z", "hero_image_url": "https://cdn.renzo-digital.com/articles/fed-holds-rates.jpg", "id": "f43679d3-0ab5-5f68-8bda-f0a4c5560594", "is_editors_pick": false, "is_scheduled": false, "locale": "en", "published_at": "2026-11-04T13:30:00Z", "requested_locale": "en", "seo_description": "The Fed kept rates unchanged and signalled patience.", "slug": "fed-holds-rates-steady-as-inflation-cools", "status": "published", "symbols": [{"asset_class": "index", "display_name": "US 500 Index", "exchange": "INDEX", "id": "63d60d4b-cbbd-510b-8352-cdb4ac4859ae", "is_active": true, "role": "primary", "slug": "us500-index", "ticker": "US500"}], "title": "Fed holds rates steady as inflation cools", "type": "news", "updated_at": "2026-11-04T13:30:00Z"}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_ArticleSummaryResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/shelves/editors-pick", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/shelves/editors-pick", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/shelves/editors-pick", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/shelves/editors-pick", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List Editor's Pick articles", "tags": ["shelves"]}}, "/api/v1/shelves/market-feed": {"get": {"description": "Lists articles tagged with at least one active symbol, newest first. Filter by `asset_class`. It carries no prices; read those from market data. No token needed. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "market_feed_api_v1_shelves_market_feed_get", "parameters": [{"description": "Article locale, as the engine code or the public tag. Falls back to English.", "in": "query", "name": "locale", "required": false, "schema": {"anyOf": [{"maxLength": 16, "type": "string"}, {"type": "null"}], "description": "Article locale, as the engine code or the public tag. Falls back to English.", "title": "Locale"}}, {"in": "query", "name": "asset_class", "required": false, "schema": {"anyOf": [{"enum": ["equity", "index", "forex", "crypto", "commodity", "bond", "etf", "future", "option"], "type": "string"}, {"type": "null"}], "title": "Asset Class"}}, {"description": "Leave out every article with no translation in `locale`, not English.", "in": "query", "name": "exact_locale", "required": false, "schema": {"default": false, "description": "Leave out every article with no translation in `locale`, not English.", "title": "Exact Locale", "type": "boolean"}}, {"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"access_level": "public", "byline": {"name": "Hafizah Rina", "url": "https://www.linkedin.com/in/hafizah-rina-43a1531a4"}, "created_at": "2026-11-04T13:30:00Z", "hero_image_url": "https://cdn.renzo-digital.com/articles/fed-holds-rates.jpg", "id": "f43679d3-0ab5-5f68-8bda-f0a4c5560594", "is_editors_pick": false, "is_scheduled": false, "locale": "en", "published_at": "2026-11-04T13:30:00Z", "requested_locale": "en", "seo_description": "The Fed kept rates unchanged and signalled patience.", "slug": "fed-holds-rates-steady-as-inflation-cools", "status": "published", "symbols": [{"asset_class": "index", "display_name": "US 500 Index", "exchange": "INDEX", "id": "63d60d4b-cbbd-510b-8352-cdb4ac4859ae", "is_active": true, "role": "primary", "slug": "us500-index", "ticker": "US500"}], "title": "Fed holds rates steady as inflation cools", "type": "news", "updated_at": "2026-11-04T13:30:00Z"}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_ArticleSummaryResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/shelves/market-feed", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/shelves/market-feed", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/shelves/market-feed", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/shelves/market-feed", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List Market Feed articles", "tags": ["shelves"]}}, "/api/v1/symbols": {"get": {"description": "Browses or searches the catalog of active symbols. Search with `q`; filter with `asset_class`. No token needed. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_symbols_api_v1_symbols_get", "parameters": [{"description": "Restrict to one asset class.", "in": "query", "name": "asset_class", "required": false, "schema": {"anyOf": [{"enum": ["equity", "index", "forex", "crypto", "commodity", "bond", "etf", "future", "option"], "type": "string"}, {"type": "null"}], "description": "Restrict to one asset class.", "title": "Asset Class"}}, {"description": "Match on ticker or display name.", "in": "query", "name": "q", "required": false, "schema": {"anyOf": [{"maxLength": 64, "type": "string"}, {"type": "null"}], "description": "Match on ticker or display name.", "title": "Q"}}, {"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"asset_class": "commodity", "created_at": "2026-09-01T08:00:00Z", "display_name": "Gold / US Dollar", "exchange": "FOREX", "id": "ef262e08-a113-551b-af16-238b630e7083", "is_active": true, "price_scale": 2, "slug": "xauusd-forex", "tags": ["metals", "safe-haven"], "ticker": "XAUUSD", "updated_at": "2026-11-04T13:30:00Z"}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_SymbolResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/symbols", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/symbols", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/symbols", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/symbols", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List symbols", "tags": ["symbols"]}}, "/api/v1/symbols/{slug}/articles": {"get": {"description": "Lists published articles tagged with one symbol: the articles about it first, then the ones that only mention it, each newest first. `role` keeps one of the two. No token needed. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_symbol_articles_api_v1_symbols__slug__articles_get", "parameters": [{"in": "path", "name": "slug", "required": true, "schema": {"title": "Slug", "type": "string"}}, {"description": "Article locale, as the engine code or the public tag. Falls back to English.", "in": "query", "name": "locale", "required": false, "schema": {"anyOf": [{"maxLength": 16, "type": "string"}, {"type": "null"}], "description": "Article locale, as the engine code or the public tag. Falls back to English.", "title": "Locale"}}, {"description": "Leave out every article with no translation in `locale`, not English.", "in": "query", "name": "exact_locale", "required": false, "schema": {"default": false, "description": "Leave out every article with no translation in `locale`, not English.", "title": "Exact Locale", "type": "boolean"}}, {"description": "`primary`: the article is about the symbol. `mentioned`: it only names it.", "in": "query", "name": "role", "required": false, "schema": {"anyOf": [{"$ref": "#/components/schemas/TagRole"}, {"type": "null"}], "description": "`primary`: the article is about the symbol. `mentioned`: it only names it.", "title": "Role"}}, {"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"access_level": "public", "byline": {"name": "Hafizah Rina", "url": "https://www.linkedin.com/in/hafizah-rina-43a1531a4"}, "created_at": "2026-11-04T13:30:00Z", "hero_image_url": "https://cdn.renzo-digital.com/articles/fed-holds-rates.jpg", "id": "f43679d3-0ab5-5f68-8bda-f0a4c5560594", "is_editors_pick": false, "is_scheduled": false, "locale": "en", "published_at": "2026-11-04T13:30:00Z", "requested_locale": "en", "seo_description": "The Fed kept rates unchanged and signalled patience.", "slug": "fed-holds-rates-steady-as-inflation-cools", "status": "published", "symbols": [{"asset_class": "index", "display_name": "US 500 Index", "exchange": "INDEX", "id": "63d60d4b-cbbd-510b-8352-cdb4ac4859ae", "is_active": true, "role": "primary", "slug": "us500-index", "ticker": "US500"}], "title": "Fed holds rates steady as inflation cools", "type": "news", "updated_at": "2026-11-04T13:30:00Z"}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_ArticleSummaryResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/symbols/{slug}/articles", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "404": {"content": {"application/problem+json": {"examples": {"symbol_not_found": {"summary": "Not Found", "value": {"code": "symbol_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No active symbol has this slug.", "instance": "/api/v1/symbols/{slug}/articles", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/symbol_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`symbol_not_found`: No active symbol has this slug."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/symbols/{slug}/articles", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/symbols/{slug}/articles", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List articles about a symbol", "tags": ["symbols"]}}, "/api/v1/tags": {"get": {"description": "Lists active symbols that have at least one published article about them (primary tag). Each row has `article_count` (all time) and `recent_count` (last 30 days); an article counts once, whatever its languages. `sort=popular` (default) ranks by `recent_count`, then `article_count`, then ticker; `limit` is at most 50 and there is no cursor. `sort=name` lists by ticker A to Z. Cursor-paginated: pass `next_cursor` back as `cursor`, with the same filters, until `has_more` is false. `type` counts only the articles of that type and drops the tags with none. `q` matches the ticker or display name, as on `GET /symbols`, and also the ticker without its slash, so `XAUUSD` finds `XAU/USD`. With `sort=popular`, the ticker that equals `q` that way comes first. A one-character `q` matches that exact ticker only. `asset_class` keeps one asset class, as on `GET /symbols`. Each row also has `weekly_counts`, the counts of the last 8 weeks (7-day windows ending now, oldest first), and `latest_article`, the newest article in `locale` with the English fallback, or null. No token needed.", "operationId": "list_tags_api_v1_tags_get", "parameters": [{"description": "`popular` or `name`.", "in": "query", "name": "sort", "required": false, "schema": {"$ref": "#/components/schemas/TagSort", "default": "popular", "description": "`popular` or `name`."}}, {"description": "Count one article type only.", "in": "query", "name": "type", "required": false, "schema": {"anyOf": [{"enum": ["news", "opinion", "editorial"], "type": "string"}, {"type": "null"}], "description": "Count one article type only.", "title": "Type"}}, {"description": "Match on ticker or display name.", "in": "query", "name": "q", "required": false, "schema": {"anyOf": [{"maxLength": 64, "type": "string"}, {"type": "null"}], "description": "Match on ticker or display name.", "title": "Q"}}, {"description": "Restrict to one asset class.", "in": "query", "name": "asset_class", "required": false, "schema": {"anyOf": [{"enum": ["equity", "index", "forex", "crypto", "commodity", "bond", "etf", "future", "option"], "type": "string"}, {"type": "null"}], "description": "Restrict to one asset class.", "title": "Asset Class"}}, {"description": "Article locale, as the engine code or the public tag. Falls back to English.", "in": "query", "name": "locale", "required": false, "schema": {"anyOf": [{"maxLength": 16, "type": "string"}, {"type": "null"}], "description": "Article locale, as the engine code or the public tag. Falls back to English.", "title": "Locale"}}, {"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"article_count": 42, "asset_class": "commodity", "display_name": "Gold / US Dollar", "exchange": "FOREX", "id": "ef262e08-a113-551b-af16-238b630e7083", "is_active": true, "latest_article": {"published_at": "2026-11-04T13:30:00Z", "slug": "gold-holds-near-record", "title": "Gold holds near record as the dollar slips"}, "recent_count": 9, "slug": "xauusd-forex", "ticker": "XAUUSD", "weekly_counts": [1, 0, 2, 3, 1, 4, 2, 3]}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_TagResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/tags", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/tags", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/tags", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`validation_failed`: A parameter or body field is missing, has the wrong type, or is out of range."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/tags", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "summary": "List tags", "tags": ["symbols"]}}, "/api/v1/users/me": {"delete": {"description": "Signs out every session and schedules the account for deletion after a 15-day grace period. Signing in during the grace period cancels the deletion. Send `now=true` to delete at once. Needs a customer token.", "operationId": "delete_me_api_v1_users_me_delete", "parameters": [{"description": "Delete at once, with no grace period. A login cannot undo it.", "in": "query", "name": "now", "required": false, "schema": {"default": false, "description": "Delete at once, with no grace period. A login cannot undo it.", "title": "Now", "type": "boolean"}}], "responses": {"204": {"description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/users/me", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/users/me", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/users/me", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/users/me", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/users/me", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/users/me", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/users/me", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/users/me", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Delete your account", "tags": ["users"]}, "get": {"description": "Returns the signed-in customer's profile, including `status` (`pending_profile` until a username is set) and the two language settings. Needs a customer token. Works before a username is set.", "operationId": "read_me_api_v1_users_me_get", "responses": {"200": {"content": {"application/json": {"example": {"article_language": "en", "country": "US", "created_at": "2026-10-04T13:30:00Z", "currency": "USD", "email": "reader@example.com", "id": "eca8506d-1dfa-56a2-8765-96305e99f89c", "last_login_at": "2026-11-04T13:30:00Z", "status": "active", "timezone": "America/New_York", "ui_language": "en", "username": "marketwatcher"}, "schema": {"$ref": "#/components/schemas/ProfileResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/users/me", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/users/me", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/users/me", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/users/me", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/users/me", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/users/me", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/users/me", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/users/me", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Get your profile", "tags": ["users"]}, "patch": {"description": "Changes only the fields you send. A new account sets its username here to finish sign-up, and can change it later. Needs a customer token.", "operationId": "update_me_api_v1_users_me_patch", "requestBody": {"content": {"application/json": {"example": {"article_language": "en", "country": "US", "currency": "USD", "mobile": "+14155550123", "timezone": "America/New_York", "ui_language": "en", "username": "marketwatcher"}, "schema": {"$ref": "#/components/schemas/ProfileUpdateRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"article_language": "en", "country": "US", "created_at": "2026-10-04T13:30:00Z", "currency": "USD", "email": "reader@example.com", "id": "eca8506d-1dfa-56a2-8765-96305e99f89c", "last_login_at": "2026-11-04T13:30:00Z", "status": "active", "timezone": "America/New_York", "ui_language": "en", "username": "marketwatcher"}, "schema": {"$ref": "#/components/schemas/ProfileResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/users/me", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/users/me", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/users/me", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/users/me", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/users/me", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/users/me", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "409": {"content": {"application/problem+json": {"examples": {"username_taken": {"summary": "Username Taken", "value": {"code": "username_taken", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Another account already uses this username.", "instance": "/api/v1/users/me", "status": 409, "title": "Username Taken", "type": "https://errors.renzo.app/username_taken"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`username_taken`: Another account already uses this username."}, "422": {"content": {"application/problem+json": {"examples": {"username_invalid": {"summary": "Invalid Username", "value": {"code": "username_invalid", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The username breaks the length or character rules.", "instance": "/api/v1/users/me", "status": 422, "title": "Invalid Username", "type": "https://errors.renzo.app/username_invalid"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`username_invalid`: The username breaks the length or character rules."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/users/me", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Update your profile", "tags": ["users"]}}, "/api/v1/users/me/connections": {"get": {"description": "Lists the AI apps (MCP clients) you allowed to use your Renzo account, newest first. Needs a customer token. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_connections_api_v1_users_me_connections_get", "parameters": [{"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"client_id": "dcr_8f2a91c4e7b3", "created_at": "2026-10-20T08:00:00Z", "id": "02c91c24-eb6c-5972-9b2b-be598e4f29df", "kind": "ai_client", "last_used_at": "2026-11-04T13:30:00Z", "name": "Claude", "scopes": ["renzo.read", "renzo.alerts"]}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_ConnectionResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/users/me/connections", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/users/me/connections", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/users/me/connections", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/users/me/connections", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/users/me/connections", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/users/me/connections", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/users/me/connections", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/users/me/connections", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "List connected AI apps", "tags": ["users"]}}, "/api/v1/users/me/connections/{connection_id}": {"delete": {"description": "Revokes an AI app's access at once; its tokens stop working on the next call. Needs a customer token.", "operationId": "disconnect_api_v1_users_me_connections__connection_id__delete", "parameters": [{"in": "path", "name": "connection_id", "required": true, "schema": {"format": "uuid", "title": "Connection Id", "type": "string"}}], "responses": {"204": {"description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/users/me/connections/{connection_id}", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/users/me/connections/{connection_id}", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/users/me/connections/{connection_id}", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/users/me/connections/{connection_id}", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/users/me/connections/{connection_id}", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"connection_not_found": {"summary": "Connection Not Found", "value": {"code": "connection_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No connected app with this ID belongs to your account.", "instance": "/api/v1/users/me/connections/{connection_id}", "status": 404, "title": "Connection Not Found", "type": "https://errors.renzo.app/connection_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`connection_not_found`: No connected app with this ID belongs to your account."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/users/me/connections/{connection_id}", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/users/me/connections/{connection_id}", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Disconnect an AI app", "tags": ["users"]}}, "/api/v1/users/me/email/request": {"post": {"description": "Emails a code to the new address and returns a `challenge_token`. The address changes only after `POST /api/v1/users/me/email/verify` succeeds. Needs a customer token and a username on the account. Each request opens an independent challenge. Throttled per IP address and per email address.", "operationId": "request_email_change_api_v1_users_me_email_request_post", "requestBody": {"content": {"application/json": {"example": {"email": "new.address@example.com"}, "schema": {"$ref": "#/components/schemas/EmailChangeRequest"}}}, "required": true}, "responses": {"202": {"content": {"application/json": {"example": {"attempts_remaining": 5, "challenge_token": "ch_7Hq2mXz9Kp4TnV1b", "code_expires_at": "2026-11-04T13:35:00Z", "expires_at": "2026-11-04T13:40:00Z"}, "schema": {"$ref": "#/components/schemas/OtpChallengeResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/users/me/email/request", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/users/me/email/request", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/users/me/email/request", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/users/me/email/request", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/users/me/email/request", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/users/me/email/request", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "409": {"content": {"application/problem+json": {"examples": {"email_unchanged": {"summary": "Email Unchanged", "value": {"code": "email_unchanged", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The new email address is the same as the current one.", "instance": "/api/v1/users/me/email/request", "status": 409, "title": "Email Unchanged", "type": "https://errors.renzo.app/email_unchanged"}}, "profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/users/me/email/request", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`email_unchanged`: The new email address is the same as the current one."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/users/me/email/request", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "429": {"content": {"application/problem+json": {"examples": {"rate_limited": {"summary": "Too Many Requests", "value": {"code": "rate_limited", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You sent too many requests in a short time.", "instance": "/api/v1/users/me/email/request", "retry_after_seconds": 30, "status": 429, "title": "Too Many Requests", "type": "https://errors.renzo.app/rate_limited"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`rate_limited`: You sent too many requests in a short time."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/users/me/email/request", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}, "503": {"content": {"application/problem+json": {"examples": {"auth_temporarily_unavailable": {"summary": "Sign-in Unavailable", "value": {"code": "auth_temporarily_unavailable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Sign-in is paused for a moment to protect accounts.", "instance": "/api/v1/users/me/email/request", "status": 503, "title": "Sign-in Unavailable", "type": "https://errors.renzo.app/auth_temporarily_unavailable"}}, "dependency_unavailable": {"summary": "Service Unavailable", "value": {"code": "dependency_unavailable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A service we depend on, such as email delivery, did not answer.", "instance": "/api/v1/users/me/email/request", "status": 503, "title": "Service Unavailable", "type": "https://errors.renzo.app/dependency_unavailable"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`auth_temporarily_unavailable`: Sign-in is paused for a moment to protect accounts. `dependency_unavailable`: A service we depend on, such as email delivery, did not answer."}}, "security": [{"CustomerBearer": []}], "summary": "Request a code to change your email", "tags": ["users"]}}, "/api/v1/users/me/email/verify": {"post": {"description": "Checks the code sent to the new address and moves the account to it. Returns the updated profile. Needs a customer token and a username on the account. Throttled per IP address.", "operationId": "verify_email_change_api_v1_users_me_email_verify_post", "requestBody": {"content": {"application/json": {"example": {"challenge_token": "ch_7Hq2mXz9Kp4TnV1b", "code": "482913", "referral_code": "RENZO-A7K2", "referral_source": "link", "timezone": "America/New_York"}, "schema": {"$ref": "#/components/schemas/OtpVerifyRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"article_language": "en", "country": "US", "created_at": "2026-10-04T13:30:00Z", "currency": "USD", "email": "reader@example.com", "id": "eca8506d-1dfa-56a2-8765-96305e99f89c", "last_login_at": "2026-11-04T13:30:00Z", "status": "active", "timezone": "America/New_York", "ui_language": "en", "username": "marketwatcher"}, "schema": {"$ref": "#/components/schemas/ProfileResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/users/me/email/verify", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/users/me/email/verify", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/users/me/email/verify", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "otp_challenge_expired": {"summary": "Challenge Expired", "value": {"code": "otp_challenge_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The login challenge is too old.", "instance": "/api/v1/users/me/email/verify", "status": 401, "title": "Challenge Expired", "type": "https://errors.renzo.app/otp_challenge_expired"}}, "otp_challenge_invalid": {"summary": "Invalid Challenge", "value": {"code": "otp_challenge_invalid", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `challenge_token` is unknown or was already used.", "instance": "/api/v1/users/me/email/verify", "status": 401, "title": "Invalid Challenge", "type": "https://errors.renzo.app/otp_challenge_invalid"}}, "otp_code_expired": {"summary": "Code Expired", "value": {"code": "otp_code_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The emailed code is past its expiry time.", "instance": "/api/v1/users/me/email/verify", "status": 401, "title": "Code Expired", "type": "https://errors.renzo.app/otp_code_expired"}}, "otp_code_incorrect": {"summary": "Incorrect Code", "value": {"code": "otp_code_incorrect", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The six-digit code does not match the one we emailed.", "instance": "/api/v1/users/me/email/verify", "status": 401, "title": "Incorrect Code", "type": "https://errors.renzo.app/otp_code_incorrect"}}, "otp_too_many_attempts": {"summary": "Too Many Attempts", "value": {"code": "otp_too_many_attempts", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Too many wrong codes were tried for this challenge, so it is closed.", "instance": "/api/v1/users/me/email/verify", "status": 401, "title": "Too Many Attempts", "type": "https://errors.renzo.app/otp_too_many_attempts"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/users/me/email/verify", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/users/me/email/verify", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`otp_challenge_invalid`: The `challenge_token` is unknown or was already used. `otp_challenge_expired`: The login challenge is too old. `otp_code_incorrect`: The six-digit code does not match the one we emailed. `otp_code_expired`: The emailed code is past its expiry time. `otp_too_many_attempts`: Too many wrong codes were tried for this challenge, so it is closed."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/users/me/email/verify", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "409": {"content": {"application/problem+json": {"examples": {"email_already_registered": {"summary": "Email Already Registered", "value": {"code": "email_already_registered", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Another account already uses this email address.", "instance": "/api/v1/users/me/email/verify", "status": 409, "title": "Email Already Registered", "type": "https://errors.renzo.app/email_already_registered"}}, "profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/users/me/email/verify", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`email_already_registered`: Another account already uses this email address."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/users/me/email/verify", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "429": {"content": {"application/problem+json": {"examples": {"rate_limited": {"summary": "Too Many Requests", "value": {"code": "rate_limited", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "You sent too many requests in a short time.", "instance": "/api/v1/users/me/email/verify", "retry_after_seconds": 30, "status": 429, "title": "Too Many Requests", "type": "https://errors.renzo.app/rate_limited"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`rate_limited`: You sent too many requests in a short time."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/users/me/email/verify", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}, "503": {"content": {"application/problem+json": {"examples": {"auth_temporarily_unavailable": {"summary": "Sign-in Unavailable", "value": {"code": "auth_temporarily_unavailable", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Sign-in is paused for a moment to protect accounts.", "instance": "/api/v1/users/me/email/verify", "status": 503, "title": "Sign-in Unavailable", "type": "https://errors.renzo.app/auth_temporarily_unavailable"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`auth_temporarily_unavailable`: Sign-in is paused for a moment to protect accounts."}}, "security": [{"CustomerBearer": []}], "summary": "Confirm your new email", "tags": ["users"]}}, "/api/v1/users/me/entitlements": {"get": {"description": "Returns what your current plan grants: capability flags and limits, such as the maximum number of watchlists and active price alerts. Read limits here rather than hard-coding them. Needs a customer token.", "operationId": "read_entitlements_api_v1_users_me_entitlements_get", "responses": {"200": {"content": {"application/json": {"example": {"capabilities": {"content.tier": "premium", "markets.data_download": true, "mcp.full_text": true, "notifications.whatsapp": true, "price_alerts.max_active": 50, "watchlist.max_lists": 10}, "product_code": "premium"}, "schema": {"$ref": "#/components/schemas/EntitlementResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/users/me/entitlements", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/users/me/entitlements", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/users/me/entitlements", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/users/me/entitlements", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/users/me/entitlements", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/users/me/entitlements", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/users/me/entitlements", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/users/me/entitlements", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Get your plan limits", "tags": ["users"]}}, "/api/v1/users/me/identities": {"get": {"description": "Lists the social sign-in providers linked to your account, at most one per provider, so the list is not paged. Each item says when it was linked and last used. Needs a customer token.", "operationId": "list_identities_api_v1_users_me_identities_get", "responses": {"200": {"content": {"application/json": {"example": {"items": [{"created_at": "2026-10-04T13:30:00Z", "email": "reader@gmail.com", "last_login_at": "2026-11-04T13:30:00Z", "provider": "google"}]}, "schema": {"$ref": "#/components/schemas/IdentityListResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/users/me/identities", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/users/me/identities", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/users/me/identities", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/users/me/identities", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/users/me/identities", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/users/me/identities", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/users/me/identities", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/users/me/identities", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "List linked social sign-ins", "tags": ["users"]}}, "/api/v1/users/me/identities/{provider}": {"delete": {"description": "Removes one provider from your account. It is always allowed, because an emailed code still opens the account. Needs a customer token.", "operationId": "unlink_identity_api_v1_users_me_identities__provider__delete", "parameters": [{"in": "path", "name": "provider", "required": true, "schema": {"$ref": "#/components/schemas/Provider"}}], "responses": {"204": {"description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/users/me/identities/{provider}", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/users/me/identities/{provider}", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/users/me/identities/{provider}", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/users/me/identities/{provider}", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/users/me/identities/{provider}", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"identity_not_found": {"summary": "Identity Not Found", "value": {"code": "identity_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "This provider is not linked to your account.", "instance": "/api/v1/users/me/identities/{provider}", "status": 404, "title": "Identity Not Found", "type": "https://errors.renzo.app/identity_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`identity_not_found`: This provider is not linked to your account."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/users/me/identities/{provider}", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/users/me/identities/{provider}", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Unlink a social sign-in", "tags": ["users"]}}, "/api/v1/users/username-available": {"get": {"description": "Says whether a username is valid and not taken, so a sign-up form can check as the user types. It never says which account holds a taken name. Needs a customer token.", "operationId": "username_available_api_v1_users_username_available_get", "parameters": [{"in": "query", "name": "username", "required": true, "schema": {"maxLength": 64, "minLength": 1, "title": "Username", "type": "string"}}], "responses": {"200": {"content": {"application/json": {"example": {"available": true, "username": "marketwatcher"}, "schema": {"$ref": "#/components/schemas/UsernameAvailabilityResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/users/username-available", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/users/username-available", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/users/username-available", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/users/username-available", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/users/username-available", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/users/username-available", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/users/username-available", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/users/username-available", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Check if a username is free", "tags": ["users"]}}, "/api/v1/watchlists": {"get": {"description": "Lists your watchlists with their symbols. Your plan's cap is in `GET /api/v1/users/me/entitlements`. Needs a customer token and a username on the account. Cursor-paginated: pass `next_cursor` back as `cursor` until `has_more` is false.", "operationId": "list_watchlists_api_v1_watchlists_get", "parameters": [{"description": "Page size.", "in": "query", "name": "limit", "required": false, "schema": {"anyOf": [{"minimum": 1, "type": "integer"}, {"type": "null"}], "description": "Page size.", "title": "Limit"}}, {"description": "Opaque cursor from a prior page with the same filters.", "in": "query", "name": "cursor", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "description": "Opaque cursor from a prior page with the same filters.", "title": "Cursor"}}], "responses": {"200": {"content": {"application/json": {"example": {"has_more": true, "items": [{"created_at": "2026-11-04T13:30:00Z", "id": "eb008601-9f76-5f47-89d1-95472e1d44e1", "name": "Tech leaders", "position": 0, "symbols": [{"asset_class": "equity", "display_name": "Apple Inc.", "exchange": "NASDAQ", "id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "is_active": true, "slug": "aapl-nasdaq", "ticker": "AAPL"}, {"asset_class": "equity", "display_name": "NVIDIA Corp.", "exchange": "NASDAQ", "id": "a24ff11d-4ac9-5506-9aba-5598104ae499", "is_active": true, "slug": "nvda-nasdaq", "ticker": "NVDA"}], "updated_at": "2026-11-04T13:30:00Z"}], "limit": 20, "next_cursor": "eyJrIjoiMjAyNi0xMS0wNFQxMzozMDowMFoifQ"}, "schema": {"$ref": "#/components/schemas/CursorPageResponse_WatchlistResponse_"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"invalid_cursor": {"summary": "Invalid Cursor", "value": {"code": "invalid_cursor", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The `cursor` is damaged, expired, or belongs to a different list or filter.", "instance": "/api/v1/watchlists", "status": 400, "title": "Invalid Cursor", "type": "https://errors.renzo.app/invalid_cursor"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`invalid_cursor`: The `cursor` is damaged, expired, or belongs to a different list or filter."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/watchlists", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/watchlists", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/watchlists", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/watchlists", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/watchlists", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/watchlists", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/watchlists", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/watchlists", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "List your watchlists", "tags": ["watchlists"]}, "post": {"description": "Creates an empty watchlist. Refused once your plan's watchlist limit is reached. Needs a customer token and a username on the account.", "operationId": "create_watchlist_api_v1_watchlists_post", "requestBody": {"content": {"application/json": {"example": {"name": "Tech leaders"}, "schema": {"$ref": "#/components/schemas/WatchlistCreateRequest"}}}, "required": true}, "responses": {"201": {"content": {"application/json": {"example": {"created_at": "2026-11-04T13:30:00Z", "id": "eb008601-9f76-5f47-89d1-95472e1d44e1", "name": "Tech leaders", "position": 0, "symbols": [{"asset_class": "equity", "display_name": "Apple Inc.", "exchange": "NASDAQ", "id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "is_active": true, "slug": "aapl-nasdaq", "ticker": "AAPL"}, {"asset_class": "equity", "display_name": "NVIDIA Corp.", "exchange": "NASDAQ", "id": "a24ff11d-4ac9-5506-9aba-5598104ae499", "is_active": true, "slug": "nvda-nasdaq", "ticker": "NVDA"}], "updated_at": "2026-11-04T13:30:00Z"}, "schema": {"$ref": "#/components/schemas/WatchlistResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/watchlists", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/watchlists", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/watchlists", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/watchlists", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/watchlists", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"not_found": {"summary": "Not Found", "value": {"code": "not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No resource exists at this path, or it is not visible to you.", "instance": "/api/v1/watchlists", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "No such resource."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/watchlists", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}, "watchlist_limit_reached": {"summary": "Watchlist Limit Reached", "value": {"code": "watchlist_limit_reached", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Your plan allows no more watchlists.", "instance": "/api/v1/watchlists", "status": 409, "title": "Watchlist Limit Reached", "type": "https://errors.renzo.app/watchlist_limit_reached"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`watchlist_limit_reached`: Your plan allows no more watchlists."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/watchlists", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/watchlists", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Create a watchlist", "tags": ["watchlists"]}}, "/api/v1/watchlists/{watchlist_id}": {"delete": {"description": "Deletes one of your watchlists and its symbol list. Needs a customer token and a username on the account.", "operationId": "delete_watchlist_api_v1_watchlists__watchlist_id__delete", "parameters": [{"in": "path", "name": "watchlist_id", "required": true, "schema": {"format": "uuid", "title": "Watchlist Id", "type": "string"}}], "responses": {"204": {"description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"watchlist_not_found": {"summary": "Not Found", "value": {"code": "watchlist_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No watchlist with this ID belongs to you.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/watchlist_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`watchlist_not_found`: No watchlist with this ID belongs to you."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/watchlists/{watchlist_id}", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Delete a watchlist", "tags": ["watchlists"]}, "get": {"description": "Returns one of your watchlists with its symbols in your order. Needs a customer token and a username on the account.", "operationId": "read_watchlist_api_v1_watchlists__watchlist_id__get", "parameters": [{"in": "path", "name": "watchlist_id", "required": true, "schema": {"format": "uuid", "title": "Watchlist Id", "type": "string"}}], "responses": {"200": {"content": {"application/json": {"example": {"created_at": "2026-11-04T13:30:00Z", "id": "eb008601-9f76-5f47-89d1-95472e1d44e1", "name": "Tech leaders", "position": 0, "symbols": [{"asset_class": "equity", "display_name": "Apple Inc.", "exchange": "NASDAQ", "id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "is_active": true, "slug": "aapl-nasdaq", "ticker": "AAPL"}, {"asset_class": "equity", "display_name": "NVIDIA Corp.", "exchange": "NASDAQ", "id": "a24ff11d-4ac9-5506-9aba-5598104ae499", "is_active": true, "slug": "nvda-nasdaq", "ticker": "NVDA"}], "updated_at": "2026-11-04T13:30:00Z"}, "schema": {"$ref": "#/components/schemas/WatchlistResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"watchlist_not_found": {"summary": "Not Found", "value": {"code": "watchlist_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No watchlist with this ID belongs to you.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/watchlist_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`watchlist_not_found`: No watchlist with this ID belongs to you."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/watchlists/{watchlist_id}", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Get a watchlist", "tags": ["watchlists"]}, "patch": {"description": "Changes the name of one of your watchlists. Needs a customer token and a username on the account.", "operationId": "rename_watchlist_api_v1_watchlists__watchlist_id__patch", "parameters": [{"in": "path", "name": "watchlist_id", "required": true, "schema": {"format": "uuid", "title": "Watchlist Id", "type": "string"}}], "requestBody": {"content": {"application/json": {"example": {"name": "US megacaps"}, "schema": {"$ref": "#/components/schemas/WatchlistRenameRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"created_at": "2026-11-04T13:30:00Z", "id": "eb008601-9f76-5f47-89d1-95472e1d44e1", "name": "Tech leaders", "position": 0, "symbols": [{"asset_class": "equity", "display_name": "Apple Inc.", "exchange": "NASDAQ", "id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "is_active": true, "slug": "aapl-nasdaq", "ticker": "AAPL"}, {"asset_class": "equity", "display_name": "NVIDIA Corp.", "exchange": "NASDAQ", "id": "a24ff11d-4ac9-5506-9aba-5598104ae499", "is_active": true, "slug": "nvda-nasdaq", "ticker": "NVDA"}], "updated_at": "2026-11-04T13:30:00Z"}, "schema": {"$ref": "#/components/schemas/WatchlistResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"watchlist_not_found": {"summary": "Not Found", "value": {"code": "watchlist_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No watchlist with this ID belongs to you.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/watchlist_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`watchlist_not_found`: No watchlist with this ID belongs to you."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/watchlists/{watchlist_id}", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/watchlists/{watchlist_id}", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Rename a watchlist", "tags": ["watchlists"]}}, "/api/v1/watchlists/{watchlist_id}/symbols": {"post": {"description": "Adds a symbol at the end of the watchlist. Adding a symbol already on it changes nothing. Needs a customer token and a username on the account.", "operationId": "add_symbol_api_v1_watchlists__watchlist_id__symbols_post", "parameters": [{"in": "path", "name": "watchlist_id", "required": true, "schema": {"format": "uuid", "title": "Watchlist Id", "type": "string"}}], "requestBody": {"content": {"application/json": {"example": {"symbol_id": "ed6621c0-5979-526b-8ba1-452bf82b80c0"}, "schema": {"$ref": "#/components/schemas/WatchlistSymbolRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"created_at": "2026-11-04T13:30:00Z", "id": "eb008601-9f76-5f47-89d1-95472e1d44e1", "name": "Tech leaders", "position": 0, "symbols": [{"asset_class": "equity", "display_name": "Apple Inc.", "exchange": "NASDAQ", "id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "is_active": true, "slug": "aapl-nasdaq", "ticker": "AAPL"}, {"asset_class": "equity", "display_name": "NVIDIA Corp.", "exchange": "NASDAQ", "id": "a24ff11d-4ac9-5506-9aba-5598104ae499", "is_active": true, "slug": "nvda-nasdaq", "ticker": "NVDA"}], "updated_at": "2026-11-04T13:30:00Z"}, "schema": {"$ref": "#/components/schemas/WatchlistResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"symbol_not_found": {"summary": "Not Found", "value": {"code": "symbol_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No active symbol has this slug.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/symbol_not_found"}}, "watchlist_not_found": {"summary": "Not Found", "value": {"code": "watchlist_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No watchlist with this ID belongs to you.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/watchlist_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`watchlist_not_found`: No watchlist with this ID belongs to you. `symbol_not_found`: No active symbol has this slug."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/watchlists/{watchlist_id}/symbols", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Add a symbol to a watchlist", "tags": ["watchlists"]}}, "/api/v1/watchlists/{watchlist_id}/symbols/order": {"put": {"description": "Sets the order of the symbols. Send every symbol ID on the list exactly once. Needs a customer token and a username on the account.", "operationId": "reorder_symbols_api_v1_watchlists__watchlist_id__symbols_order_put", "parameters": [{"in": "path", "name": "watchlist_id", "required": true, "schema": {"format": "uuid", "title": "Watchlist Id", "type": "string"}}], "requestBody": {"content": {"application/json": {"example": {"symbol_ids": ["a24ff11d-4ac9-5506-9aba-5598104ae499", "ed6621c0-5979-526b-8ba1-452bf82b80c0"]}, "schema": {"$ref": "#/components/schemas/WatchlistReorderRequest"}}}, "required": true}, "responses": {"200": {"content": {"application/json": {"example": {"created_at": "2026-11-04T13:30:00Z", "id": "eb008601-9f76-5f47-89d1-95472e1d44e1", "name": "Tech leaders", "position": 0, "symbols": [{"asset_class": "equity", "display_name": "Apple Inc.", "exchange": "NASDAQ", "id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "is_active": true, "slug": "aapl-nasdaq", "ticker": "AAPL"}, {"asset_class": "equity", "display_name": "NVIDIA Corp.", "exchange": "NASDAQ", "id": "a24ff11d-4ac9-5506-9aba-5598104ae499", "is_active": true, "slug": "nvda-nasdaq", "ticker": "NVDA"}], "updated_at": "2026-11-04T13:30:00Z"}, "schema": {"$ref": "#/components/schemas/WatchlistResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/order", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/order", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/order", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/order", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/order", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"watchlist_not_found": {"summary": "Not Found", "value": {"code": "watchlist_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No watchlist with this ID belongs to you.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/order", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/watchlist_not_found"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`watchlist_not_found`: No watchlist with this ID belongs to you."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/order", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"watchlist_reorder_incomplete": {"summary": "Incomplete Reorder", "value": {"code": "watchlist_reorder_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The new order does not name every symbol on the list exactly once.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/order", "status": 422, "title": "Incomplete Reorder", "type": "https://errors.renzo.app/watchlist_reorder_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`watchlist_reorder_incomplete`: The new order does not name every symbol on the list exactly once."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/order", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Reorder a watchlist", "tags": ["watchlists"]}}, "/api/v1/watchlists/{watchlist_id}/symbols/{symbol_id}": {"delete": {"description": "Removes one symbol from the watchlist and returns the updated list. Needs a customer token and a username on the account.", "operationId": "remove_symbol_api_v1_watchlists__watchlist_id__symbols__symbol_id__delete", "parameters": [{"in": "path", "name": "watchlist_id", "required": true, "schema": {"format": "uuid", "title": "Watchlist Id", "type": "string"}}, {"in": "path", "name": "symbol_id", "required": true, "schema": {"format": "uuid", "title": "Symbol Id", "type": "string"}}], "responses": {"200": {"content": {"application/json": {"example": {"created_at": "2026-11-04T13:30:00Z", "id": "eb008601-9f76-5f47-89d1-95472e1d44e1", "name": "Tech leaders", "position": 0, "symbols": [{"asset_class": "equity", "display_name": "Apple Inc.", "exchange": "NASDAQ", "id": "ed6621c0-5979-526b-8ba1-452bf82b80c0", "is_active": true, "slug": "aapl-nasdaq", "ticker": "AAPL"}, {"asset_class": "equity", "display_name": "NVIDIA Corp.", "exchange": "NASDAQ", "id": "a24ff11d-4ac9-5506-9aba-5598104ae499", "is_active": true, "slug": "nvda-nasdaq", "ticker": "NVDA"}], "updated_at": "2026-11-04T13:30:00Z"}, "schema": {"$ref": "#/components/schemas/WatchlistResponse"}}}, "description": "Successful Response"}, "400": {"content": {"application/problem+json": {"examples": {"bad_request": {"summary": "Bad Request", "value": {"code": "bad_request", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The request could not be read, for example broken JSON.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/{symbol_id}", "status": 400, "title": "Bad Request", "type": "https://errors.renzo.app/bad_request"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Malformed request."}, "401": {"content": {"application/problem+json": {"examples": {"invalid_token": {"summary": "Invalid Token", "value": {"code": "invalid_token", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access or refresh token is malformed, signed wrongly, or already used.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/{symbol_id}", "status": 401, "title": "Invalid Token", "type": "https://errors.renzo.app/invalid_token"}}, "missing_credentials": {"summary": "Unauthenticated", "value": {"code": "missing_credentials", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The endpoint needs a customer access token and none was sent.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/{symbol_id}", "status": 401, "title": "Unauthenticated", "type": "https://errors.renzo.app/missing_credentials"}}, "session_revoked": {"summary": "Session Revoked", "value": {"code": "session_revoked", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The session was ended by a logout, a reused refresh token, or account deletion.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/{symbol_id}", "status": 401, "title": "Session Revoked", "type": "https://errors.renzo.app/session_revoked"}}, "token_expired": {"summary": "Token Expired", "value": {"code": "token_expired", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The access token is past its expiry time.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/{symbol_id}", "status": 401, "title": "Token Expired", "type": "https://errors.renzo.app/token_expired"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The access token is not valid."}, "404": {"content": {"application/problem+json": {"examples": {"watchlist_not_found": {"summary": "Not Found", "value": {"code": "watchlist_not_found", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "No watchlist with this ID belongs to you.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/{symbol_id}", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/watchlist_not_found"}}, "watchlist_symbol_not_on_list": {"summary": "Not Found", "value": {"code": "watchlist_symbol_not_on_list", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The symbol is not on this watchlist.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/{symbol_id}", "status": 404, "title": "Not Found", "type": "https://errors.renzo.app/watchlist_symbol_not_on_list"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "`watchlist_not_found`: No watchlist with this ID belongs to you. `watchlist_symbol_not_on_list`: The symbol is not on this watchlist."}, "409": {"content": {"application/problem+json": {"examples": {"profile_incomplete": {"summary": "Profile Incomplete", "value": {"code": "profile_incomplete", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "The account has no username yet, so it cannot write anything.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/{symbol_id}", "status": 409, "title": "Profile Incomplete", "type": "https://errors.renzo.app/profile_incomplete"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "The account has no username yet."}, "422": {"content": {"application/problem+json": {"examples": {"validation_failed": {"summary": "Validation Failed", "value": {"code": "validation_failed", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "A parameter or body field is missing, has the wrong type, or is out of range.", "errors": [{"location": ["body", "name"], "message": "Field required", "type": "missing"}], "instance": "/api/v1/watchlists/{watchlist_id}/symbols/{symbol_id}", "status": 422, "title": "Validation Failed", "type": "https://errors.renzo.app/validation_failed"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Request failed validation."}, "500": {"content": {"application/problem+json": {"examples": {"internal_error": {"summary": "Internal Server Error", "value": {"code": "internal_error", "correlation_id": "0b6f3c1e8f4a4d2b9a573e2c1d0f9a11", "detail": "Something failed on our side.", "instance": "/api/v1/watchlists/{watchlist_id}/symbols/{symbol_id}", "status": 500, "title": "Internal Server Error", "type": "https://errors.renzo.app/internal_error"}}}, "schema": {"$ref": "#/components/schemas/Problem"}}}, "description": "Unexpected server error."}}, "security": [{"CustomerBearer": []}], "summary": "Remove a symbol from a watchlist", "tags": ["watchlists"]}}}, "servers": [{"description": "UAT", "url": "https://api.uat.renzo-digital.com"}], "tags": [{"description": "Sign in with an emailed code or a social provider, refresh tokens and sign out.", "name": "auth"}, {"description": "Your profile, email address, plan limits, linked social sign-ins, connected AI apps and account deletion.", "name": "users"}, {"description": "Published articles: list them, or read one by slug. Full text may need a plan.", "name": "articles"}, {"description": "Full-text search over published articles.", "name": "search"}, {"description": "Curated article lists: Editor's Pick and the Market Feed.", "name": "shelves"}, {"description": "Like or dislike an article, read its totals, and report a read.", "name": "engagement"}, {"description": "The catalog of tradable symbols and the articles tagged with each one.", "name": "symbols"}, {"description": "Quotes, daily bars and the latest intraday price of catalog symbols. Bond symbols are US Treasury yields in percent.", "name": "market-data"}, {"description": "Read-only system lists: Popular, Most active, Winners and Losers.", "name": "default-watchlists"}, {"description": "Your own lists of symbols. Your plan sets how many you can keep.", "name": "watchlists"}, {"description": "Alerts that message you when a symbol crosses a price.", "name": "price-alerts"}, {"description": "Send feedback to the Renzo team and read the replies.", "name": "feedback"}, {"description": "Releases of economic indicators (one Release is one scheduled publication of an indicator, such as US CPI for October), and your personal .ics calendar feed.", "name": "economic-calendar"}, {"description": "Exchange closures and early closes.", "name": "market-holidays"}, {"description": "Futures roll dates and index dividend adjustments that move CFD prices.", "name": "cfd-calendars"}, {"description": "Cash dividends of US-listed stocks and funds by ex-date.", "name": "dividends"}, {"description": "Notification types, your channel preferences and messaging connections.", "name": "notifications"}, {"description": "Unsubscribe links in Renzo emails. No sign-in needed.", "name": "email"}, {"description": "Plans on sale and their prices.", "name": "products"}, {"description": "Checkout, your subscription, plan changes, cancellation and orders.", "name": "billing"}, {"description": "Your referral link and totals, and adding a friend's code.", "name": "referrals"}]}