Knowledge retrieval API — gives your AI agent deterministic business-operations know-how from the AiCOO cloud knowledge base.
https://aicoo-ai.com/v1/knowledge. Every request must carry ?key=YOUR_API_KEY.The API key is passed as a URL query parameter:
https://aicoo-ai.com/v1/knowledge?action=start&key=YOUR_API_KEY
action=start — start the knowledge walkthroughReturns the first knowledge fragment. After the first call you can use next to keep walking through the rest.
curl "https://aicoo-ai.com/v1/knowledge?action=start&key=YOUR_API_KEY"
Response:
{
"ok": true,
"fragment": {
"id": "frag-001",
"content": "...",
"total": 24,
"remaining": 23
}
}
action=next — get the next fragmentCall this after start to walk the knowledge base fragment by fragment.
curl "https://aicoo-ai.com/v1/knowledge?action=next&key=YOUR_API_KEY"
Once every fragment has been returned, you get:
{ "ok": true, "fragment": null, "remaining": 0 }
action=agents — list available agentsReturns the agents included in your plan, with a short description of each. Can be called on its own — no start needed.
curl "https://aicoo-ai.com/v1/knowledge?action=agents&key=YOUR_API_KEY"
Response:
{
"ok": true,
"agents": [
{"name": "战略总管", "role": "全局视野 · 任务派遣 · 项目记忆中枢"},
...
]
}
action=search — search a skill by codeLooks up the SOP for a specific skill code. Available on Pro and Ultra plans.
curl "https://aicoo-ai.com/v1/knowledge?action=search&code=SKILL-001&key=YOUR_API_KEY"
Not found:
{ "ok": true, "found": false }
| Plan | Knowledge domain |
|---|---|
| AiCOO Free | Free basic knowledge base (constitution + file management) |
| AiCOO Base | Watchdog knowledge domain · Project-memory methodology · Operations handbook |
| AiCOO Pro | All operations domains · Skill library access · Deep research · Matrix publishing |
| AiCOO Ultra | All knowledge domains + AI foundation deployment support |
| HTTP | Error code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | No key supplied, or the key is invalid |
| 403 | FORBIDDEN | Key is valid, but it has no permission for this knowledge domain |
| 429 | RATE_LIMITED | Exceeded the rate limit of 60 requests per minute |
start resets the cursor. If you need to keep your place across sessions, manage it in your own layer.