{"openapi":"3.1.0","info":{"title":"GET /api/v1/preferences/notifications/topics","version":"1.0.0","description":"Get Topic Overrides Endpoint"},"servers":[{"url":"https://api.ondayzero.com","description":"Production"}],"paths":{"/api/v1/preferences/notifications/topics":{"get":{"tags":["notification-preferences"],"summary":"Get Topic Overrides Endpoint","description":"Return the per-topic channel overrides for the current user.","operationId":"get_topic_overrides_endpoint_api_v1_preferences_notifications_topics_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopicChannelOverridesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"TopicChannelOverridesResponse":{"properties":{"overrides":{"additionalProperties":{"additionalProperties":{"type":"boolean"},"type":"object"},"type":"object","title":"Overrides","description":"Map of topic -> {channel: bool}"},"available_channels":{"items":{"type":"string"},"type":"array","title":"Available Channels","description":"Channels the override grid can toggle"}},"type":"object","title":"TopicChannelOverridesResponse","description":"User's per-topic channel overrides + the channel set this UI accepts.\n\nThe ``available_channels`` field lets the frontend stay in\nsync with backend without hardcoding the channel list."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Token","description":"API token authentication. Format: `Bearer dz_...`"}}},"security":[{"BearerAuth":[]}]}