{"kind":"aiinfo.agent.subscribe","version":2,"name":"AIInfo · AI 原生新闻","humanRequired":false,"auth":{"required":false,"type":"bearer","header":"Authorization: Bearer <AIINFO_AI_API_KEY>","query":"api_key","keyOnThisPage":false,"existingNews":{"required":false,"action":"existing"},"createChannel":{"required":true,"error":"subscribe_key_required","status":401,"actions":["channel_created","channel_reused"]}},"subscribe":{"method":"POST","url":"https://aiinfo.mysispace.com/api/ai/subscriptions","contentType":"application/json","body":{"name":"agent-feed","topics":["llm-us","llm-cn","embodied"],"keywords":["OpenAI","DeepSeek","机器人"],"lang":"en","minScore":8,"limit":20},"optionalCategory":{"when":"Only when topics do not cover the request. Omit it otherwise.","field":"category","shape":{"name":"category name","keywords":["keyword"]}},"response":{"ok":true,"humanRequired":false,"action":"existing | channel_created | channel_reused","item":{"id":"aisub_…"},"feedUrl":"https://aiinfo.mysispace.com/api/ai/subscriptions/{id}/feed","feedAuth":"none","items":[]},"unauthorized":{"ok":false,"error":"subscribe_key_required","action":"channel_required","humanRequired":false,"retry":"POST the same JSON with auth.header"}},"read":{"news":"https://aiinfo.mysispace.com/api/ai/news?limit=20&lang=en","feed":"https://aiinfo.mysispace.com/api/ai/subscriptions/{id}/feed","item":"https://aiinfo.mysispace.com/api/ai/news/{articleId}","categories":"https://aiinfo.mysispace.com/api/ai/categories"},"procedure":[{"id":"post","when":"always, first call","zh":"直接 POST subscribe.url，正文用 subscribe.body。保留 lang，不要改掉，也不要删。不要带 Authorization，也不要先向人要钥匙。","en":"POST subscribe.url with subscribe.body. Keep lang as written. Do not send Authorization. Do not ask a human for a key first."},{"id":"existing","when":"HTTP 201 and action=existing","zh":"站内已有这些新闻，已经订阅。读 items，然后反复 GET feedUrl。读新闻和 feedUrl 都不要钥匙。","en":"The station already has this news and you are subscribed. Read items, then poll feedUrl. Reading news and feedUrl needs no key."},{"id":"need-key","when":"HTTP 401 and error=subscribe_key_required","zh":"站内没有对得上的新闻。匿名不能新建频道。把同一份 JSON 再 POST 一次，并加上 auth.header。钥匙不在本页。你没有钥匙就停下来，说明开不了新频道。不要叫人来点保存或审核。","en":"No matching stories. Anonymous callers cannot open a channel. POST the same JSON again with auth.header. The key is not on this page. If you have no key, stop and say a new channel cannot be opened. Do not ask a human to click save or approve."},{"id":"created","when":"HTTP 201 and action=channel_created or channel_reused","zh":"频道已建好，并已抓取相关最新新闻。读 items，然后反复 GET feedUrl。","en":"A channel is open and the latest related stories were fetched. Read items, then poll feedUrl."}],"steps":["always, first call: POST subscribe.url with subscribe.body. Keep lang as written. Do not send Authorization. Do not ask a human for a key first.","HTTP 201 and action=existing: The station already has this news and you are subscribed. Read items, then poll feedUrl. Reading news and feedUrl needs no key.","HTTP 401 and error=subscribe_key_required: No matching stories. Anonymous callers cannot open a channel. POST the same JSON again with auth.header. The key is not on this page. If you have no key, stop and say a new channel cannot be opened. Do not ask a human to click save or approve.","HTTP 201 and action=channel_created or channel_reused: A channel is open and the latest related stories were fetched. Read items, then poll feedUrl."],"language":{"value":"en","values":["zh","en"],"zh":"中国默认中文，欧美默认英文。正文里的 lang 可以改成 zh 或 en。选定后新闻按这个语言给出，同一篇只翻译一次。","en":"Chinese in China, English in Europe and the Americas. Set lang to zh or en to choose. Stories are returned in that language, and each story is translated once per language.","source":"explicit"},"handoff":"Subscribe me to AIInfo. Do this yourself. Do not ask a person to click save or approve anything on the website.\nIf I added a topic after this note, replace the keywords in the JSON with that topic. Otherwise use the JSON as written.\nThe lang field is the language of the news. If you omit it, the server chooses from the caller's location: Chinese in China, English in Europe and the Americas. Set it to zh or en to choose. Stories are translated into that language. Each story is translated once per language and then reused.\n\n1. POST https://aiinfo.mysispace.com/api/ai/subscriptions\nContent-Type: application/json\nDo not send Authorization.\nBody:\n{\n  \"name\": \"agent-feed\",\n  \"topics\": [\n    \"llm-us\",\n    \"llm-cn\",\n    \"embodied\"\n  ],\n  \"keywords\": [\n    \"OpenAI\",\n    \"DeepSeek\",\n    \"机器人\"\n  ],\n  \"lang\": \"en\",\n  \"minScore\": 8,\n  \"limit\": 20\n}\n\n2. If HTTP 201 and action is existing: the station already has this news and the subscription is done. Reply with the titles and links in items, and remember feedUrl. Later, GET that feedUrl. No key.\n\n3. If HTTP 401 and error is subscribe_key_required: nothing on the station matches. Anonymous callers cannot open a channel. If you already hold AIINFO_AI_API_KEY, POST the same JSON again with Authorization: Bearer <AIINFO_AI_API_KEY>. This note has no key. If you have no key, stop and say a new channel cannot be opened.\n\n4. If HTTP 201 and action is channel_created or channel_reused: the channel is open and the latest stories were fetched. Reply with the titles and links in items, and remember feedUrl.\n\nRead news already on the station (no key): GET https://aiinfo.mysispace.com/api/ai/news?limit=20&lang=en\nUpdates for this subscription (no key): GET https://aiinfo.mysispace.com/api/ai/subscriptions/{id}/feed\nFull protocol: GET https://aiinfo.mysispace.com/api/ai/agent?lang=en"}