Central API

Central API Reference

API surface extracted from NestJS controllers in the central-api service. Use this as a quick map of endpoints, payloads, and permission levels.

Base URL

http://localhost:3000 (default PORT)

Content type defaults to JSON unless noted.

Text responses: /meta/combine, /meta/combine_yaml, /redis/:key.

Auth model

Permission Access rule
READ_ONLY Query secret == API_KEY_READ_ONLY OR Authorization: Bearer API_KEY_READ_WRITE
READ_WRITE Authorization: Bearer API_KEY_READ_WRITE
AUTH_USER Session cookie from OAuth login
PUBLIC No auth required. If a session exists, @CurrentUser is populated.
READ_ONLY endpoints also accept the read-write key via Authorization header.

Module pages

News sources

SourceKey Notes
v2exV2EX
toutiaoToutiao
douyinDouyin
baiduBaidu
hupuHupu
bilibiliBilibili
zhihuZhihu
juejinJuejin
itzhijiaItzhijia
linuxdoLinux.do
weiboWeibo
ifengIfeng
idcflareIdcflare

Task logic list

Value Description
FETCH_DATAFetch data
FETCH_LINUX_DO_TOPICFetch Linux.do topic
FETCH_LINUX_DO_NEW_TOPIC_LISTFetch Linux.do latest topics
UPDATE_LINUX_DO_NAV_ITEMUpdate Linux.do nav item
UPDATE_LINUX_DO_NAV_ITEM_BATCHUpdate Linux.do nav items in batch
PUBLISH_NEWSPublish news to GitHub
RUN_AGENTRun AI agent
GET_NEWS_TOPGet news top list
RENEW_CURRENT_DATERenew current date
MESSAGE_PROVIDERParameterized message provider
SAVE_LINUX_DO_NOTESave Linux.do note
SAVE_LINUX_DO_NOTE_BATCHSave Linux.do notes in batch