{"openapi":"3.1.0","info":{"title":"daily.press REST API","version":"3.0.0","description":"Self-hosted RSS, Atom, and YouTube reader API."},"servers":[{"url":"/"}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key (dp_...)"}},"schemas":{"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}},"HealthResponse":{"type":"object","required":["status","version"],"properties":{"status":{"type":"string"},"version":{"type":"string"}}},"UserProfile":{"type":"object","required":["user_id","username","role"],"properties":{"user_id":{"type":"integer"},"username":{"type":"string"},"role":{"type":"string"}}},"EntryItem":{"type":"object","required":["id","source_id","title","url","published_at"],"properties":{"id":{"type":"string"},"source_id":{"type":"string"},"source_name":{"type":"string"},"title":{"type":"string"},"url":{"type":"string"},"summary":{"type":"string"},"image_url":{"type":["string","null"]},"video_id":{"type":["string","null"]},"category":{"type":"string"},"entry_type":{"type":"string"},"published_at":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"content_html":{"type":"string"}}},"EntryListResponse":{"type":"object","required":["items","count","total","limit","offset"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/EntryItem"}},"count":{"type":"integer"},"total":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"}}}}},"paths":{"/api/v1/health":{"get":{"summary":"Health check","tags":["System"],"responses":{"200":{"description":"Service is healthy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}},"/api/v1/me":{"get":{"summary":"Current API key owner","tags":["Auth"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Authenticated user profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfile"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/entries":{"get":{"summary":"List subscribed entries","tags":["Entries"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"category","in":"query","schema":{"type":"string"}},{"name":"type","in":"query","schema":{"type":"string"}},{"name":"q","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","default":25}},{"name":"offset","in":"query","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"Paginated entries","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntryListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/entries/{entry_id}":{"get":{"summary":"Get entry details","tags":["Entries"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Entry with content_html","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntryItem"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/saved":{"get":{"summary":"List saved reading-list entries","tags":["Saved"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Saved entries"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/saved/{entry_id}":{"post":{"summary":"Save an entry to reading list","tags":["Saved"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Saved"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"summary":"Remove an entry from reading list","tags":["Saved"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/categories":{"get":{"summary":"List user categories","tags":["Subscriptions"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Categories list"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/sources":{"get":{"summary":"List subscribed sources and health status","tags":["Subscriptions"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Subscribed sources"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/sync":{"post":{"summary":"Trigger feed & ticker sync cycle","tags":["System"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Sync completed"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}