KIDUNA INTEGRATIONS
Get AI answers in your own application, browse the skills Kiduna’s agents follow, or connect assistants such as Codex and Claude to your Kiduna tools.
An API key is the private credential that connects your app or assistant to your Kiduna account.
WHAT YOU CAN DO
GET CONNECTED
Sign in to Kiduna and open Settings → Global API access. Create a key and copy the secret when it is shown.
For your own app, store the key on your server. For Codex or Claude, follow the connection guide to configure the credential.
Developers can call GET /v1/capabilities to check API access. In an MCP assistant, ask it to list the tools available to you.
New to Kiduna? The setup guide covers your account and access requirements. See usage and cost and request limits before integrating.
FOR DEVELOPERS
Use https://api.agent.kiduna.ai as the API base URL. Each interface authenticates with your Kiduna integration key; available operations depend on the key and your account’s access.
List the agents you can use, then send a message to one of them.
POST /v1/agents/{agent_id}/chatHTTP API →Send messages over a WebSocket connection. An open connection does not retain conversation history.
WSS /v1/ws/chatWebSocket guide →The Skill Builder drafts a skill from your words and checks it. The Kiduna team can save and publish it.
POST /v1/skills/draftHTTP API →Use an MCP client to discover and call allowed tools over Streamable HTTP.
MCP /mcp/MCP tools guide →See which API capabilities and permissions your key currently has.
GET /v1/capabilitiesHTTP API →GETTING STARTED
This guide sends one answer-only chat message. You need a Kiduna account, an active integration key, and the public agent-service address for your deployment.
Open Kiduna Settings, find Global API access, create a key, and copy the secret. The secret is shown once, so save it in your password manager or secret manager before closing the dialog.
Set KIDUNA_BASE_URL to the HTTPS address of your Kiduna agent service and KIDUNA_API_KEY to the key. Keep both values on your server; do not expose the key in browser code, a mobile app, or a public repository.
Call GET /v1/capabilities. A successful response tells you whether generic chat, selected-agent chat, and Skills access are available. If it returns 401, check that you sent Authorization: Bearer ….
Send a non-empty message to POST /v1/chat. Use an idempotency key if your application might retry a request after a timeout.
Save the returned request_id in your own logs. It identifies this request when you need to troubleshoot a result or a retry.
AUTHENTICATION
Every public HTTP, WebSocket, and MCP request uses a Kiduna integration key. The server verifies the key, its lifecycle state, scopes, and the owner’s current access each time it is used.
Send the key only in the standard Bearer header. Do not use a query parameter, X-API-Key, or a plain Authorization value.
Authorization: Bearer kiduna_ik_<your-secret>
/v1/meReturns the authenticated wallet. Use this to confirm which Kiduna account your service key represents.
/v1/capabilitiesReturns whether chat and Skills reads are currently available, plus the integration’s current permission details.
{
"chat": true,
"skills_read": true,
"agents_read": true,
"agents_chat": true,
"integration": { "scopes": ["chat.send", "skills.read", "agents.read", "agents.chat"] },
"scope": "authenticated_person"
}The exact integration object can include additional account-specific fields. Treat it as an access result, not as a permanent grant—permissions may change later.
The next request fails authentication, including a message sent over an already-open WebSocket.
The old secret stops working. Update your secret manager before sending another request.
The next MCP discovery or tool call sees the current account state and Tool Book.
A key without the required scope receives 403; do not retry until its access is changed.
API
Talk to Kiduna’s agents from your own server; check, draft and update the skills they follow; set up your DUNA’s Guide and Scout as its Catalyst; and read your own logs and what Ki learned about you. Send HTTPS requests with your API key and get JSON back. Chat answers are text only: chat never runs tools, reads your account data, or changes anything.
Base URL: https://api.agent.kiduna.ai. The scope is the permission the key needs. A key made in Settings → Global API access has every scope below (manage your key).
| Endpoint | What it does | Scope |
|---|---|---|
GET/v1/me | Shows which account the key belongs to. | Any key |
GET/v1/capabilities | Shows what the key may do. | Any key |
GET/v1/agents | Lists the agents you can talk to. | agents.read |
POST/v1/agents/{agent_id}/chat | Sends a message to one agent and returns its answer. | agents.chat |
POST/v1/chat | Sends a message to Kiduna’s general assistant and returns its answer. | chat.send |
GET/v1/automations | Lists your own automations. | skills.read |
GET/v1/automations/{automation_id} | Returns one of your automations. | skills.read |
GET/v1/skills/{skill_id} | Returns a skill Kiduna’s agents follow: its live text and its saved versions. | skills.read |
POST/v1/skills/check | The Skill Builder checks a skill and says what to fix. | skills.check |
POST/v1/skills/draft | The Skill Builder writes a skill from your words, or fixes one. | skills.check |
POST/v1/skills | Saves a new skill as a draft. Kiduna team only. | skills.write |
PUT/v1/skills/{skill_id} | Saves a new draft of a skill. Kiduna team only. | skills.write |
POST/v1/skills/{skill_id}/publish | Makes a draft live. Kiduna team only. | skills.write |
GET/v1/dunas/{duna}/agents/{kind}/parts | Your DUNA’s Guide or Scout, part by part. Its Catalyst only. | agents.read |
POST/v1/dunas/{duna}/agents/{kind}/parts | Assigns, removes, or switches on or off one item of your DUNA’s Guide or Scout. Its Catalyst only. | agents.manage |
POST/v1/dunas/{duna}/notes | Adds text to your DUNA’s notes, which its Guide uses. Its Catalyst only. | agents.manage |
GET/v1/logs | Your own logs: what Ki and your agents did for you. | logs.read |
GET/v1/learned | What Ki learned about you. | learned.read |
POST/v1/learned/{item}/undo | Undoes one thing Ki learned about you. | learned.undo |
WSS/v1/ws/chat | The same chat over one open connection. | chat.send, or agents.chat for one agent |
| Rule | Details |
|---|---|
Authorization header | Bearer kiduna_ik_… on every request. Keep the key on your server, never in a browser or an app. |
Content-Type header | application/json on every POST. |
| Body | At most 24,000 bytes; 200,000 for the skill endpoints; 128,000 for a DUNA’s notes. A field the endpoint does not list is refused. |
| Answer headers | Every answer has Cache-Control: no-store and X-Content-Type-Options: nosniff. |
| Errors | One shape: {"error": "<code>"}. A 422 also names the wrong fields: "fields": [["body", "message"]]. The skill endpoints often add "message": plain words you can show a person. |
Any endpoint can also answer with these. Each code is explained on Errors.
| Status | Error | When |
|---|---|---|
| 401 | authentication_requiredintegration_key_requiredinvalid_integration_key | No key was sent; what was sent is not a Kiduna API key; or the key is unknown, expired, disabled or deleted. |
| 403 | integration_scope_required | The key does not have the scope this endpoint needs. |
| 413 | request_too_large | The body is over 24,000 bytes (200,000 for the skill endpoints, 128,000 for a DUNA’s notes). |
| 429 | integration_rate_limitedrate_limited | Too many requests. Wait the number of seconds in Retry-After. See Rate limits. |
Shows which account the key belongs to. A quick way to test a key.
No parameters.
| Status | Body | When |
|---|---|---|
| 200 | wallet (string) | The key works. wallet is the wallet address of the key’s account. |
curl https://api.agent.kiduna.ai/v1/me \ -H "Authorization: Bearer $KIDUNA_API_KEY"
{ "wallet": "<the account’s wallet address>" }Shows what the key may do, so your app can hide what it cannot use.
No parameters.
| Field | Type | Meaning |
|---|---|---|
chat | boolean | The key may use POST /v1/chat. |
agents_read | boolean | The key may list agents. |
agents_chat | boolean | The key may chat with one agent. |
skills_read | boolean | The key may read your automations and Kiduna’s skills. |
skills_check | boolean | The key may ask the Skill Builder to check and draft skills. |
skills_write | boolean | The key may ask to save and publish skills. Only the Kiduna team is then allowed; anyone else gets skill_change_not_allowed. |
agents_manage | boolean | The key may change a DUNA’s Guide and Scout. Only that DUNA’s Catalyst is then allowed. |
logs_read | boolean | The key may read your own logs. |
learned_read | boolean | The key may read what Ki learned about you. |
learned_undo | boolean | The key may undo what Ki learned about you. |
integration.id | string | The key’s id. It is not the secret. |
integration.scopes | array of strings | Every scope the key has. |
integration.duna_ids | array of strings, or null | The DUNAs the key is limited to. null means it is not limited. |
integration.expires_at | string | When the key stops working: a date and time with its time zone. |
scope | string | Always "authenticated_person": every answer is about the key’s own account. |
curl https://api.agent.kiduna.ai/v1/capabilities \ -H "Authorization: Bearer $KIDUNA_API_KEY"
{
"chat": true,
"skills_read": true,
"skills_check": true,
"skills_write": true,
"agents_read": true,
"agents_chat": true,
"agents_manage": true,
"logs_read": true,
"learned_read": true,
"learned_undo": true,
"integration": {
"id": "0f1e2d3c4b5a69788796a5b4c3d2e1f0",
"scopes": ["dunas.read", "actions.read", "decisions.request", "actions.publish", "requests.read", "chat.send", "skills.read",
"skills.check", "skills.write", "agents.read", "agents.chat", "agents.manage", "logs.read", "learned.read",
"learned.undo", "mcp.use", "connected-tools.use", "common-tools.use"],
"duna_ids": null,
"expires_at": "2026-12-06 18:09:49.922+00"
},
"scope": "authenticated_person"
}Lists the agents you can talk to: agents that are public, and agents you own or were given. They are sorted by name. Drafts, switched-off agents, archived agents and helper (worker) agents are never listed. Show the names to your user and keep the id they choose.
No parameters.
| Field | Type | Meaning |
|---|---|---|
agents[].id | string | Use it in /v1/agents/{agent_id}/chat. |
agents[].name | string | The agent’s name, such as a DUNA’s Guide. |
agents[].description | string | What the agent helps with. |
agents[].status | string | "ACTIVE" or "PUBLISHED". |
agents[].mode | string | Always "answer_only": through the API an agent answers but never acts. |
agents[].transports | array of strings | ["http", "wss"]: reachable over HTTP and WebSocket. |
curl https://api.agent.kiduna.ai/v1/agents \ -H "Authorization: Bearer $KIDUNA_API_KEY"
{
"agents": [
{
"id": "curator-elderhood",
"name": "A Ripe Old Age Sage",
"description": "Looks after the A Ripe Old Age Realm: its Sparks and the links between them.",
"status": "ACTIVE",
"mode": "answer_only",
"transports": ["http", "wss"]
},
{
"id": "duna-guide-acting-out",
"name": "Acting Out Guide",
"description": "The official Guide for the Acting Out DUNA.",
"status": "ACTIVE",
"mode": "answer_only",
"transports": ["http", "wss"]
}
]
}Sends one message to one agent and returns its whole answer. The agent answers in its own voice but has no tools and no access to account data. Nothing is remembered between requests: send what the agent needs in each message.
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
agent_id | path | string | Yes | 1–64 characters. An id from GET /v1/agents. |
Idempotency-Key | header | string | No | 8–128 characters, kept 7 days. Sending the same request again with the same key returns the first answer instead of asking again. |
message | body | string | Yes | 1–6,000 characters. The only field allowed in the body. |
| Status | Body | When |
|---|---|---|
| 200 | agent {id, name}, response, mode "answer_only", request_id | The agent answered. Show response. |
| 202 | request_id, status, message | "pending": a request with this Idempotency-Key is still running, so send it again in a few seconds. "uncertain": Kiduna could not confirm an answer, so ask again with a new Idempotency-Key. |
| 403 | restricted_integration_chat_unavailablechat_disabled | The key is limited to some DUNAs, and chat needs a key that is not; or chat is switched off on this server. |
| 404 | agent_not_found | There is no such agent, or you may not use it. |
| 409 | idempotency_key_reused, or status "held" | This Idempotency-Key was used with a different message, or its first request was refused. Use a new key. |
| 422 | invalid_request and fields | A wrong value: for example an empty message, a message over 6,000 characters, an extra field, or an Idempotency-Key that is too short. |
curl -X POST https://api.agent.kiduna.ai/v1/agents/duna-guide-acting-out/chat \
-H "Authorization: Bearer $KIDUNA_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 7c9e6679-7425-40de-944b-e07fc1f90ae7" \
-d '{ "message": "In one sentence, what can you help me with?" }'
{
"agent": { "id": "duna-guide-acting-out", "name": "Acting Out Guide" },
"response": "I can help you learn about Acting Out and explore accessible ways to learn, connect, perform, produce, attend, sponsor, or contribute to live theatre and comedy.",
"mode": "answer_only",
"request_id": "req_58e0f0abb54ebb0d9c9ec0004a829b34"
}Sends one message to Kiduna’s general assistant and returns its whole answer. Use it when no particular agent is needed. It has no tools and no access to account data, and nothing is remembered between requests.
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
Idempotency-Key | header | string | No | 8–128 characters, kept 7 days. Sending the same request again with the same key returns the first answer. |
message | body | string | Yes | 1–6,000 characters. The only field allowed in the body. |
| Status | Body | When |
|---|---|---|
| 200 | response, mode "read_only", request_id | The assistant answered. Show response. |
| 202 | request_id, status, message | "pending": still running, so send it again in a few seconds. "uncertain": no answer could be confirmed, so ask again with a new Idempotency-Key. |
| 403 | restricted_integration_chat_unavailablechat_disabled | The key is limited to some DUNAs, or chat is switched off on this server. |
| 409 | idempotency_key_reused, or status "held" | This Idempotency-Key was used with a different message, or its first request was refused. Use a new key. |
| 422 | invalid_request and fields | A wrong value, as for agent chat. |
curl -X POST https://api.agent.kiduna.ai/v1/chat \
-H "Authorization: Bearer $KIDUNA_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "message": "Explain API keys simply." }'
{
"response": "An API key is like a password that lets one app or service access another app’s features or data.\n\nFor example, a weather app might use an API key to request forecasts from a weather service. The key helps the service identify the app and control what it’s allowed to do.\n\nKeep API keys private—if someone else gets yours, they may be able to use your account or run up charges.",
"mode": "read_only",
"request_id": "req_b794316ad86e344372de98d806619057"
}Lists the automations you made in Kiduna (“when this happens, do that”; the Kiduna app calls them skills), newest first. They are yours alone. The skills Kiduna’s agents follow are something else: see Skills and the Skill Builder. Reading an automation never runs it.
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
page | query | integer | No | 1 or more. Default 1. |
page_size | query | integer | No | 1–100. Default 20. |
| Status | Body | When |
|---|---|---|
| 200 | automations (array), total, page, page_size | One page of your automations. total counts all of them. An empty page has "automations": []. |
| 422 | invalid_request and fields | page or page_size is out of range. |
| Field | Type | Meaning |
|---|---|---|
id | string | Use it in GET /v1/automations/{automation_id}. |
name | string | Its name. |
trigger_type | string | "time" (on a schedule), "event" (when something new arrives), "condition" (when a value crosses a line) or "command" (only when you run it). |
when_text | string | When it runs, in plain words. |
then_text | string | What it does, in plain words. |
tools | array of strings | The tools it may use. |
skill_content | string or null | Its full written instructions, when it has them. |
status | string | "active" or "paused". |
cron_expression | string or null | Its schedule, for a "time" automation. |
poll_interval_sec | integer or null | How often it checks, in seconds, for an "event" or "condition" automation. |
requires_approval | boolean | It asks you before it acts. |
realm_id | string or null | The Realm it belongs to, if any. |
created_at, updated_at | string | UTC date and time, for example "2026-12-03T09:00:00.120000". |
curl "https://api.agent.kiduna.ai/v1/automations?page=1&page_size=20" \ -H "Authorization: Bearer $KIDUNA_API_KEY"
{
"automations": [
{
"id": "5b0c5c1e-6f7a-4d3e-9a51-2f4b9c7d8e10",
"name": "Weekday summary",
"trigger_type": "time",
"when_text": "Every weekday at 9:00",
"then_text": "Summarise my open tasks",
"tools": [],
"skill_content": null,
"status": "active",
"cron_expression": "0 9 * * 1-5",
"poll_interval_sec": null,
"requires_approval": false,
"realm_id": null,
"created_at": "2026-12-03T09:00:00.120000",
"updated_at": "2026-12-03T09:00:00.120000"
}
],
"total": 1,
"page": 1,
"page_size": 20
}Returns one of your automations.
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
automation_id | path | string | Yes | An id from GET /v1/automations. |
| Status | Body | When |
|---|---|---|
| 200 | One automation, with the fields above | It is yours. |
| 404 | automation_not_found | You have no automation with this id. |
curl https://api.agent.kiduna.ai/v1/automations/5b0c5c1e-6f7a-4d3e-9a51-2f4b9c7d8e10 \ -H "Authorization: Bearer $KIDUNA_API_KEY"
A skill is one SKILL.md file that tells Kiduna’s agents how to do one job: front matter with its name and description, a # title, then the sections Purpose, When to use, Inputs, Steps, Output, Quality checks, Tools needed and Limits. Every skill an agent uses is in the Skills directory.
The Skill Builder is Kiduna Cloud’s own agent for skills. It checks a skill: its format, whether its purpose, when to use it and its steps are clear, the tools it names, whether another skill already does the same job, and which agents load it. It writes a skill from your words, and fixes one from its check. The endpoints below ask it.
| Who | May |
|---|---|
| Anyone with a key | Read a skill, check a text, and get a draft. |
| The Kiduna team: David, and the Catalysts and Mages of The Big Kiduna | Also save skills and make them live. Anyone else gets 403 skill_change_not_allowed. |
| Step | Endpoint | What happens |
|---|---|---|
| 1. Draft | POST /v1/skills/draft | The Skill Builder writes the SKILL.md and checks it. Nothing is saved. |
| 2. Check | POST /v1/skills/check | After your own edits, check again. Nothing is saved. |
| 3. Save | POST /v1/skills (new) or PUT /v1/skills/{skill_id} (a change) | A draft version is saved and its tests run at once: front matter, sections and size. Agents never get a draft. |
| 4. Publish | POST /v1/skills/{skill_id}/publish | A draft whose tests passed goes live, unless the Skill Builder finds another skill in use that does the same job. Agents get it from their next message. |
Versions are numbered per skill in Kiduna Cloud, from 1. A skill from a DUNA kit or from Kiduna’s shared library (a package) keeps its own version until a change goes live: the change is saved in Kiduna Cloud as v1, v2 and so on, and once live it takes the package version’s place for every agent that uses the skill.
A check, a draft and a refused publish all return this report.
| Field | Type | Meaning |
|---|---|---|
result | string | "good": nothing to fix. "needs_fix": something to fix. "duplicate": another skill in use already does the same job. |
headline | string | One line that says what to fix. |
skill | object | Which skill the text is: name, title, version, status, owner (“Kiduna (shared)”, a DUNA’s name, “Kiduna Cloud”, or “Not in Kiduna yet”). |
format | array | The checks a version must pass to be saved and go live: front matter and name, description, sections, size. Each has id, title, status ("passed" or "failed") and says. |
points | array | Is it clear what it is for ("purpose"), when to use it and when not ("when"), and do its steps do the job ("steps")? Each has status ("good", "fix" or "unknown"), says and chance (how sure, 0 to 1). |
tools | object | lines: each tool the skill names, with status: "ready", "member_account" (works once each member connects their own account), "held", "unreachable", "not_linked" or "not_found"; closest is the Kiduna tool that does its job, when there is one. says: the sum. |
steps | array | Each step and the tool it needs: needs is "none", "listed" (a tool the skill names), "other" (a Kiduna tool the skill should name: tool), "missing" (Kiduna has no tool for it yet) or "unknown". |
same_job | array | Other skills in use that do the same job: name, title, owner, kind ("copy": the same skill in another DUNA) and chance. |
same_name | object | count and owners of skills with the same name in other DUNAs. |
used_by | object | Which agents load it, and why one does not. Scouts and Envoys are counted, not named. |
notes | array of strings | What the check could not do, if anything. |
took_ms, checked_at, sha256 | number, string, string | How long it took, when, and the SHA-256 of the text checked. |
Returns a skill: the text agents get now, the versions saved in Kiduna Cloud, and its newest check.
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
skill_id | path | string | Yes | A skill’s id: its name, as in the Skills directory, such as skill-maintenance. |
| Status | Body | When |
|---|---|---|
| 200 | id, title, description, owner, live, versions, check | Kiduna has this skill. |
| 404 | skill_not_found | Kiduna has no skill with this id. |
| 422 | invalid_request and fields | The id has characters a skill id cannot have. |
| Field | Type | Meaning |
|---|---|---|
owner | string | “Kiduna (shared)”, a DUNA’s name, or “Kiduna Cloud”. |
live | object or null | The text agents get now: version, from ("package" or "cloud"), text (the whole SKILL.md) and sha256. null when no version is live. |
versions | array | The versions saved in Kiduna Cloud, newest first: version, state ("draft", "live", "earlier": live before, or "undone"), tests ("passed", "failed" or "incomplete"), tests_say, made_at and why. Empty for a skill never changed in Kiduna Cloud. |
check | object or null | The newest check of the live text: id, result, headline, checked_at. |
curl https://api.agent.kiduna.ai/v1/skills/garden-workday-rota \ -H "Authorization: Bearer $KIDUNA_API_KEY"
{
"id": "garden-workday-rota",
"title": "Garden workday rota",
"description": "Turn a community garden workday's task list and volunteers into a fair rota with times and rest breaks. Not for paid staff shifts.",
"owner": "Kiduna Cloud",
"live": {
"version": 2,
"from": "cloud",
"text": "---\nname: garden-workday-rota\ndescription: Turn a community garden workday's task list and volunteers into a fair rota with times and rest breaks. Not for paid staff shifts.\n---\n# Garden workday rota\n…",
"sha256": "be5d8fcfb98aa7cbc7c4b275954f5acf523fb0dd91799f49e8fec851c51777a6"
},
"versions": [
{
"version": 2,
"state": "live",
"tests": "passed",
"tests_say": "v2 passed its tests.",
"made_at": "2026-12-05T19:56:40.244Z",
"why": "A longer midday break"
},
{
"version": 1,
"state": "draft",
"tests": "passed",
"tests_say": "v1 passed its tests.",
"made_at": "2026-12-05T19:56:40.144Z",
"why": "Testing the Skills API locally"
}
],
"check": {
"id": "b545cb7a-2257-4fd3-8690-750176f0ff5f",
"result": "needs_fix",
"headline": "To fix: steps.",
"checked_at": "2026-12-05T19:56:41.877Z"
}
}The Skill Builder checks a skill’s text and says what to fix. It changes nothing. A check takes a few seconds, up to a minute when the Skill Builder first learns the skills in use. Each check is kept with Kiduna, so the team sees it beside the skill.
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
text | body | string | Yes | The whole SKILL.md. At most 64 KB. |
skill | body | string | No | The id of the skill this text is a new version of. Leave it out for a new skill: the check then uses the name in its front matter. |
| Status | Body | When |
|---|---|---|
| 200 | check_id, report | The check is done. See the check report. |
| 404 | skill_not_found | skill names no skill Kiduna has. |
| 413 | skill_too_large | The text is over 64 KB. |
| 422 | invalid_skill_text and message | The text is empty, or not text. |
| 503 | skill_builder_unavailable and message | The Skill Builder cannot check just now. Try again. |
curl https://api.agent.kiduna.ai/v1/skills/check \
-H "Authorization: Bearer $KIDUNA_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "text": "---\nname: garden-workday-rota\ndescription: Turn a community garden workday's tasks and volunteers into a fair rota.\n---\n# Garden workday rota\n\n## Purpose\n…" }'
{
"check_id": "0bd5aaae-6dfb-4149-83ff-73e9bf372432",
"report": {
"result": "good",
"headline": "Nothing to fix, and no other skill in use does this job.",
"skill": {
"name": "garden-workday-rota",
"title": "Garden workday rota",
"version": null,
"status": null,
"owner": "Not in Kiduna yet",
"ki_name": null
},
"format": [
{
"id": "name",
"title": "Front matter and name",
"status": "passed",
"says": "Its front matter names it garden-workday-rota."
},
{
"id": "description",
"title": "Description",
"status": "passed",
"says": "It has a description: the line Ki reads to choose the skill."
},
{
"id": "sections",
"title": "The sections Ki's skills need",
"status": "passed",
"says": "It has the 8 sections Ki's skills need, each with text."
},
{
"id": "size",
"title": "Size",
"status": "passed",
"says": "It is about 252 tokens long; Ki loads at most 3,000."
}
],
"points": [
{
"id": "purpose",
"title": "Purpose",
"status": "good",
"says": "It says what the skill is for and what it gives back, in its own words.",
"chance": 0.98
},
{
"id": "when",
"title": "When to use",
"status": "good",
"says": "It says when to pick it and when not to.",
"chance": 0.64
},
{
"id": "steps",
"title": "Steps",
"status": "good",
"says": "Yes: each step follows from the one before, and together they finish the job.",
"chance": 0.58
}
],
"tools": {
"lines": [],
"says": "It names no tools."
},
"steps": [
{
"n": 1,
"text": "Read the tasks, hours and volunteers; ask once for anything missing that changes the rota.",
"needs": "none",
"tool": null,
"says": "Needs no tool."
},
{
"n": 2,
"text": "Split heavy tasks across people so no one does two heavy tasks in a row.",
"needs": "none",
"tool": null,
"says": "Needs no tool."
}
],
"same_job": [],
"same_name": {
"count": 0,
"owners": []
},
"used_by": {
"lines": [],
"says": "No agent is set up to use it."
},
"notes": [],
"took_ms": 4314,
"checked_at": "2026-12-05T19:54:15.026Z",
"sha256": "430e88474419b930c6812d1e767c5380f9812471fdb786779e4c569238dd7c79"
}
}The Skill Builder writes a SKILL.md: a new skill from your words, or a skill changed as you say or fixed from its check. It follows Kiduna’s own skill on writing skills (skill-maintenance), offers the Kiduna tools closest to the job, then checks what it wrote. If that check finds something in the wording to fix, it fixes it once. Nothing is saved. It takes 10 to 30 seconds.
Send at least one of the three.
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
words | body | string | No | 1–6,000 characters: what the skill should do, or what to change. |
skill | body | string | No | A skill to change or fix. Without words, the Skill Builder fixes its live text from its check. |
text | body | string | No | A SKILL.md to change or fix instead, such as your own edit. At most 64 KB. |
| Status | Body | When |
|---|---|---|
| 200 | text, name, based_on, check_id, report | text is the whole SKILL.md and report its check. based_on is the skill and the SHA-256 of the text it started from, or null for a new skill. A changed skill keeps its name. |
| 404 | skill_not_found | skill names no skill Kiduna has. |
| 413 | skill_too_large | The text is over 64 KB. |
| 422 | invalid_request, invalid_words or invalid_skill_text, with message | None of the three was sent, or one of them is empty or too long. |
| 502 | skill_builder_failed and message | The Skill Builder could not write a usable text this time. Try again. |
| 503 | skill_builder_unavailable and message | The Skill Builder cannot write just now. Try again. |
curl https://api.agent.kiduna.ai/v1/skills/draft \
-H "Authorization: Bearer $KIDUNA_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "words": "Help a neighbourhood tool library lend tools fairly: check who asked first, how long they keep a tool, and remind them a day before it is due back." }'
{
"text": "---\nname: fair-tool-lending\ndescription: Help an authorized neighbourhood tool-library coordinator review lending requests in order, apply the library's agreed loan duration, and prepare or arrange a reminder one day before a confirmed return date.\n---\n# Fair Tool Lending\n\n## Purpose\nSupport consistent, transparent handling of neighbourhood tool-library requests. Surface request order, apply the library's stated loan policy, and help prepare a due-date reminder without inventing rules or implying an unconfirmed booking.\n…",
"name": "fair-tool-lending",
"based_on": null,
"check_id": "3a836b6c-a6ee-4065-8255-9cb6b6901e69",
"report": {
"result": "good",
"headline": "Nothing to fix, and no other skill in use does this job."
}
}Kiduna team only. Saves a new skill. Its id is the name in its front matter. Version 1 is a draft, and its tests run at once.
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
text | body | string | Yes | The whole SKILL.md. Its name is 2 to 64 lower case letters, digits and dashes. At most 64 KB. |
why | body | string | Yes | 3–500 characters. Kept with the version. |
| Status | Body | When |
|---|---|---|
| 201 | id, version, state, live_version, tests, changed, message | Saved as a draft. tests.verdict is "passed", "failed" or "incomplete"; tests.checks are the same checks as the report’s format. |
| 403 | skill_change_not_allowed and message | You are not on the Kiduna team. |
| 409 | skill_exists and message | A skill with this name exists. Change it with PUT /v1/skills/{skill_id}, or give this one another name. A retry after a timeout can get this too: your first request saved it. |
| 413 | skill_too_large | The text is over 64 KB. |
| 422 | invalid_skill_text or invalid_why, with message | The text has no usable name, or the why is too short or too long. |
curl https://api.agent.kiduna.ai/v1/skills \
-H "Authorization: Bearer $KIDUNA_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "text": "---\nname: garden-workday-rota\ndescription: Turn a community garden workday's tasks and volunteers into a fair rota.\n---\n# Garden workday rota\n\n## Purpose\n…", "why": "A rota for garden workdays" }'
{
"id": "garden-workday-rota",
"version": 1,
"state": "draft",
"live_version": null,
"tests": {
"verdict": "passed",
"says": "v1 passed its tests.",
"checks": [
{
"id": "name",
"title": "Front matter and name",
"status": "passed",
"says": "Its front matter names it garden-workday-rota."
},
{
"id": "description",
"title": "Description",
"status": "passed",
"says": "It has a description: the line Ki reads to choose the skill."
}
]
},
"changed": true,
"message": "garden-workday-rota v1 is saved as a draft. v1 passed its tests."
}
Anyone not on the Kiduna team gets:
{
"error": "skill_change_not_allowed",
"message": "Only David and the Catalysts and Mages of The Big Kiduna can save or publish Kiduna's skills. You can check and draft them."
}Kiduna team only. Saves a new draft of a skill. Its tests run at once. The live version stays live until you publish the draft. A change to a package skill is saved in Kiduna Cloud, as v1 the first time.
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
skill_id | path | string | Yes | The skill to change. |
text | body | string | Yes | The whole new SKILL.md, with the same name in its front matter. At most 64 KB. |
why | body | string | Yes | 3–500 characters. Kept with the version. |
from_version | body | integer | No | The version this change starts from: the live one or a draft. Default: the live version, or else the newest. |
| Status | Body | When |
|---|---|---|
| 200 | The same fields as POST /v1/skills | The new draft is saved. If the same text was already saved as a draft from the same version, that draft comes back with "changed": false. |
| 403 | skill_change_not_allowed and message | You are not on the Kiduna team. |
| 404 | skill_not_found or skill_version_not_found | No such skill, or no such from_version. |
| 409 | skill_unchanged, skill_version_not_editable or skill_deleted, with message | That version already holds this text; from_version was live before (start from the live version or a draft); or the skill is deleted in Kiduna Cloud (restore it there first). |
| 413 | skill_too_large | The text is over 64 KB. |
| 422 | invalid_skill_text or invalid_why, with message | The name in the text is not the skill’s id, or the why is too short or too long. |
curl -X PUT https://api.agent.kiduna.ai/v1/skills/garden-workday-rota \
-H "Authorization: Bearer $KIDUNA_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "text": "---\nname: garden-workday-rota\ndescription: Turn a community garden workday's tasks and volunteers into a fair rota.\n---\n# Garden workday rota\n\n## Purpose\n…", "why": "A longer midday break" }'
{
"id": "garden-workday-rota",
"version": 2,
"state": "draft",
"live_version": null,
"tests": {
"verdict": "passed",
"says": "v2 passed its tests.",
"checks": [
{
"id": "name",
"title": "Front matter and name",
"status": "passed",
"says": "Its front matter names it garden-workday-rota."
}
]
},
"changed": true,
"message": "Draft v2 is saved. v2 passed its tests."
}Kiduna team only. Makes a draft live. Its tests must have passed. The Skill Builder then checks its text again: if another skill in use already does the same job, the draft does not go live. Otherwise agents that use the skill get it from their next message, and the version live before is kept as "earlier".
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
skill_id | path | string | Yes | The skill. |
version | body | integer | Yes | The draft to make live. 1 or more. |
why | body | string | Yes | 3–500 characters. Kept with the change. |
| Status | Body | When |
|---|---|---|
| 200 | The same fields as POST /v1/skills, and check (id, result, headline) | It is live. If it was live already, "changed": false. |
| 403 | skill_change_not_allowed and message | You are not on the Kiduna team. |
| 404 | skill_not_found or skill_version_not_found | No such skill, or no such version saved in Kiduna Cloud. |
| 409 | skill_tests_failed, with message and tests | Its tests did not pass. Fix the text and save a new draft. |
| 409 | skill_is_duplicate, with message, check_id and report | Another skill in use already does this job: report.same_job names it. Change that skill instead, or make this one do a different job. |
| 409 | skill_version_not_draft, skill_deleted or skill_conflict, with message | The version was live before (only a draft goes live), the skill is deleted in Kiduna Cloud, or Kiduna refused the change (the message says why). |
| 503 | skill_builder_unavailable and message | The Skill Builder could not check it just now. Nothing changed; try again. |
curl https://api.agent.kiduna.ai/v1/skills/garden-workday-rota/publish \
-H "Authorization: Bearer $KIDUNA_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "version": 2, "why": "Ready for organisers" }'
{
"id": "garden-workday-rota",
"version": 2,
"state": "live",
"live_version": 2,
"tests": {
"verdict": "passed",
"says": "v2 passed its tests.",
"checks": [
{
"id": "name",
"title": "Front matter and name",
"status": "passed",
"says": "Its front matter names it garden-workday-rota."
}
]
},
"changed": true,
"message": "v2 is live now.",
"check": {
"id": "b545cb7a-2257-4fd3-8690-750176f0ff5f",
"result": "needs_fix",
"headline": "To fix: steps."
}
}
A draft that does another skill’s job:
{
"error": "skill_is_duplicate",
"message": "2 other skills do the same job. Also to fix: when to use and steps. v3 cannot go live. Nothing changed.",
"report": {
"result": "duplicate",
"headline": "2 other skills do the same job. Also to fix: when to use and steps.",
"same_job": [
{
"name": "skill-maintenance",
"title": "Prepare a Skill revision",
"owner": "Kiduna (shared)",
"kind": "same_job",
"chance": 1
},
{
"name": "soul-kitchen--learn-method",
"title": "Refine a reusable method under Abilities",
"owner": "Soul Kitchen",
"kind": "same_job",
"chance": 0.74
}
]
},
"check_id": "1574006c-c443-48f3-9969-0c6bdfa27230"
}A DUNA’s Guide and Scout are agents, each made of six parts. Read them here as the DUNA’s Catalyst, and change them with POST. Only the Catalyst of that DUNA may: anyone else gets 403. Ki’s own parts are kept by the Kiduna team in Kiduna Cloud.
| Part | What it is | Actions |
|---|---|---|
instructions | How the agent works and what it must not do. Its own Instructions are always used. It may use one more from Kiduna Cloud: assigning another replaces it. | assign, remove, on, off |
wisdom | Knowledge bases it searches: Kiduna’s shared bases and this DUNA’s own, among them the DUNA’s notes (POST /v1/dunas/{duna}/notes). | assign, remove, on, off |
skills | Written methods it follows, one for each kind of task. | assign, remove, on, off |
tools | Kiduna functions it may call. Never a tool from a connected account. | assign, remove, on, off |
automations | Work it does when something happens. Its own kit automations are off, on (it prepares a draft and sends nothing) or run (for real; only when every step reads or drafts). A Kiduna Cloud automation runs as one agent: you may assign one that runs as no agent yet to your Guide, and remove one that runs as your Guide or Scout. | assign, remove, on, off, run |
vibes | How its replies sound: a live shared Vibes profile, or its own. | assign, remove |
A DUNA has one Guide. Each of its Alliances runs its own copy of the one Scout, so a change to the Scout is made to every copy.
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
duna | path | string | Yes | The DUNA’s id, for example river-keepers. |
kind | path | string | Yes | guide or scout. |
part | query | string | No | One of the six parts. Without it you get all six, each with options_count. With it you get that part with its options: what may be assigned. |
| Status | Body | When |
|---|---|---|
| 200 | duna, agent, parts, note | You are the DUNA’s Catalyst. |
| 422 | invalid_request and fields | kind or part is not one of them. |
| 401 | sign_in_again | Kiduna could not confirm the key’s account just now. Try again. |
| 403 | not_this_duna_catalyst | The key’s account is not this DUNA’s Catalyst. The Kiduna team changes these agents in Kiduna Cloud. |
| 403 | integration_duna_forbidden | The key is limited to other DUNAs. |
| 404 | duna_not_found | No active DUNA has that id. |
| 404 | no_guideno_scout | The DUNA has no Guide running yet, or no Alliance with a Scout yet. |
| 503 | backend_unreachable | Kiduna could not check the Catalyst seat just now. Try again in a moment. |
| Field | Type | Meaning |
|---|---|---|
duna | object | id and name. |
agent | object | kind, id, name, on (it is running), and copies: for a Scout, the id of each copy; null for a Guide. |
parts.<part>.rows | array | What it uses now. Each row is below. |
parts.<part>.options | array | Only when you asked for one part: what may be assigned, each with key, name, note and group. Kiduna’s shared items and this DUNA’s own; never another DUNA’s or a person’s. |
parts.<part>.options_count | integer | Without part: how many may be assigned. |
parts.<part>.actions | array of strings | The actions this part takes. |
parts.<part>.one_only | boolean | true for instructions and vibes: one at a time. |
note | string or null | For a Scout: that a change is made to every copy. |
| Field | Type | Meaning |
|---|---|---|
key | string | Pass it as item to change it. |
name | string | Its name. |
from | string | "own": from the agent’s own kit. "assigned": assigned to it in Kiduna Cloud or here. |
on | boolean | It is used now. |
switchable | boolean | It can be switched on or off. When not, fixed says why. |
mode | string | Automations only: off, prepare (on: it prepares a draft and sends nothing) or run. |
note | string or null | A short line about it. |
by, at | string or null | Who assigned it or switched it off, and when. |
curl "https://api.agent.kiduna.ai/v1/dunas/river-keepers/agents/guide/parts?part=skills" \ -H "Authorization: Bearer $KIDUNA_API_KEY"
{
"duna": { "id": "river-keepers", "name": "River Keepers" },
"agent": { "kind": "guide", "id": "duna-guide-river-keepers", "name": "River Keepers Guide", "on": true, "copies": null },
"parts": {
"skills": {
"part": "skills",
"rows": [
{ "key": "intent-routing", "name": "Check the scope and route", "from": "own", "on": false, "switchable": true,
"fixed": null, "note": "From its kit", "by": "Rosa", "at": "2026-12-06T11:42:31.030587+00:00" }
],
"options": [
{ "key": "multi-ally-conversation", "name": "Lead a shared conversation", "note": "…", "group": null }
],
"actions": ["assign", "remove", "on", "off"],
"one_only": false
}
},
"note": null
}Makes one change to your DUNA’s Guide, or to every copy of its Scout: assign an item, remove one, or switch one on or off. The agent works with the change from its next answer. Every change is kept in Kiduna Cloud’s audit with your reason. Over this API the change is made at once, so ask your user first. (Over MCP the tool first asks for a confirm code.)
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
duna | path | string | Yes | The DUNA’s id. |
kind | path | string | Yes | guide or scout. |
part | body | string | Yes | One of the six parts. |
action | body | string | Yes | assign, remove, on, off or run, as the part takes them (see the six parts). |
item | body | string | Yes, except one case | The key of a row (to remove or switch) or of an option (to assign). Up to 240 characters. To put the Vibes back to the agent’s own, send remove with no item. |
why | body | string | Yes | Why, in a few words: 3 to 500 characters. It is kept with the change. |
| Status | Body | When |
|---|---|---|
| 200 | changed, message and the change | Done, or nothing to do: "changed": false when it was so already. |
| 400 | action_not_for_partchoose_itemwhy_required | The part does not take that action; no item was named; or no reason was given. |
| 404 | not_usedno_live_automationno_live_profile | The agent does not use that item; or no live Kiduna Cloud automation or Vibes profile has that id. |
| 409 | not_offered | It may not be assigned: it is not live in Kiduna Cloud, or it is not one a DUNA’s agents may take. Read the part’s options. |
| 409 | own_part | It is from the agent’s own kit: switch it off instead of removing it. |
| 409 | no_switch | It has no switch. |
| 409 | runs_as_anotherscout_holds_nonecannot_run_as_itautomation_refused | A Kiduna Cloud automation already runs as another agent; it can run only as the Guide; or it cannot run as this agent, as message says. |
| 409 | vibes_refused | The Vibes profile could not be applied, as message says. |
| 422 | invalid_request and fields | A field is missing, too long, or not one of the allowed values. |
| 401 | sign_in_again | Kiduna could not confirm the key’s account just now. Try again. |
| 403 | not_this_duna_catalyst | The key’s account is not this DUNA’s Catalyst. The Kiduna team changes these agents in Kiduna Cloud. |
| 403 | integration_duna_forbidden | The key is limited to other DUNAs. |
| 404 | duna_not_found | No active DUNA has that id. |
| 404 | no_guideno_scout | The DUNA has no Guide running yet, or no Alliance with a Scout yet. |
| 503 | backend_unreachable | Kiduna could not check the Catalyst seat just now. Try again in a moment. |
Every refusal has error and message: plain words you can show a person. Nothing is changed when it is refused.
| Field | Type | Meaning |
|---|---|---|
duna, kind, part, action, item | string | The change you asked for. |
changed | boolean | false when it was so already. |
message | string | What was done, in words. |
copies | array or null | For a Scout: each copy with agent_id, agent, outcome (changed, already or refused) and says. null for a Guide. |
curl https://api.agent.kiduna.ai/v1/dunas/river-keepers/agents/guide/parts \
-H "Authorization: Bearer $KIDUNA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"part": "skills", "action": "off", "item": "intent-routing", "why": "Members found the routing questions slow"}'
{
"duna": "river-keepers",
"kind": "guide",
"part": "skills",
"action": "off",
"item": "intent-routing",
"changed": true,
"message": "Switched off: River Keepers Guide stops using Check the scope and route from its next answer.",
"copies": null
}Adds text to your DUNA’s notes: one knowledge base kept for the DUNA, made the first time you add to it. Its Guide is given it at once and searches it from its next answer. A package update of the DUNA never replaces it. Anyone the Guide talks to may be shown what it finds there, so add nothing private. Its Catalyst only.
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
duna | path | string | Yes | The DUNA’s id. |
title | body | string | Yes | 1 to 200 characters. |
text | body | string | Yes | 20 to 20,000 characters. It is split into passages for searching. |
why | body | string | Yes | Why, in a few words: 3 to 500 characters. It is kept with the change. |
The body may be up to 128,000 bytes, so 20,000 characters fit in any language.
| Status | Body | When |
|---|---|---|
| 201 | base, added, guide, message | Added. |
| 400 | words_required | No title, or less than 20 characters of text. |
| 409 | not_the_notes | The DUNA’s notes base is not as Kiduna made it. Ask the Kiduna team. |
| 413 | too_longrequest_too_large | More than 20,000 characters of text, or a body over 128,000 bytes. |
| 422 | invalid_request and fields | A field is missing or too long. |
| 401 | sign_in_again | Kiduna could not confirm the key’s account just now. Try again. |
| 403 | not_this_duna_catalyst | The key’s account is not this DUNA’s Catalyst. The Kiduna team changes these agents in Kiduna Cloud. |
| 403 | integration_duna_forbidden | The key is limited to other DUNAs. |
| 404 | duna_not_found | No active DUNA has that id. |
| 404 | no_guideno_scout | The DUNA has no Guide running yet, or no Alliance with a Scout yet. |
| 503 | backend_unreachable | Kiduna could not check the Catalyst seat just now. Try again in a moment. |
| Field | Type | Meaning |
|---|---|---|
duna | string | The DUNA. |
base | object | id, name, and made_now (true the first time). |
added | object | id, title, and passages: how many passages the text became. |
guide | object | id, name, assigned_now (the notes were given to the Guide just now) and on. When you switched the notes off for the Guide before, adding more does not switch them back on. |
message | string | What was done, in words. |
curl https://api.agent.kiduna.ai/v1/dunas/river-keepers/notes \
-H "Authorization: Bearer $KIDUNA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title": "Spring clean-up days", "text": "We meet on the first Saturday of April at the north bridge…", "why": "Members keep asking when we meet"}'
{
"duna": "river-keepers",
"base": { "id": "…", "name": "River Keepers: notes from its Catalyst", "made_now": false },
"added": { "id": "item_3f9a1c2b7d4e", "title": "Spring clean-up days", "passages": 1 },
"guide": { "id": "duna-guide-river-keepers", "name": "River Keepers Guide", "assigned_now": false, "on": true },
"message": "Added to River Keepers: notes from its Catalyst: 1 passage. River Keepers Guide uses it from its next answer."
}Your own logs, newest first: each piece of work Ki and your agents did for you, what started it, which agent did it, the tools, skills and Decision API questions it used, how long it took and how it ended. Only your own: nobody else’s, whatever you ask. A log shows your message and the answer you were given, never what a model was sent or what a tool brought back. Ki keeps logs 30 days.
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
since, until | query | string | No | Times like 2026-12-06T09:30:00Z. Without them: the last 7 days. Nothing older than 30 days. |
kind | query | string | No | chat (a message you sent), tap (your tap on a card: Do it, Accept, Decline or Done), event (work on something that happened about you) or wake (work Ki did for you on its own). |
agent | query | string | No | ki, guide, scout, envoy or actor; or words from the agent’s name. Up to 80 characters. |
duna | query | string | No | A DUNA’s id: only work done in that DUNA. |
result | query | string | No | answered, done, failed or running. |
tool | query | string | No | Only work that used this tool, named as the logs name it, for example search_knowledge. |
words | query | string | No | Up to 120 characters, found in your message, the answer, what started it, the agent, tools, skills or questions. |
limit | query | integer | No | 1 to 50. Default 20. |
cursor | query | string | No | The next a page gave, for the page after it. |
A key limited to some DUNAs reads only the work done in them.
| Status | Body | When |
|---|---|---|
| 200 | logs, next, since, until, kept_days, note | One page. next is null on the last page. |
| 400 | bad_timebad_windowbad_dunabad_toolbad_cursor | A time, window, DUNA id, tool name or cursor cannot be read. message says how to fix it. |
| 403 | integration_duna_forbidden | You asked for a DUNA the key is not limited to. |
| 422 | invalid_request and fields | kind or result is not one of them, or limit is out of range. |
| Field | Type | Meaning |
|---|---|---|
id | string | The log’s id. |
kind | string | chat, tap, event or wake. |
started_at, ended_at | string | UTC date and time. |
ms | integer or null | How long it took, in milliseconds. |
started_by | string | What started it, in words: "Your message" for a chat; otherwise the event and what it means, for example "action.started: a member tapped Do it on a card"; or "Ki, on its own". |
message | string or null | For a chat: your message. |
answer | string or null | The words you were given. |
agent | object | kind and name of the agent that did it. |
duna | string or null | The DUNA it was done in. |
result | string | answered, done, failed or running. |
tools, skills | array of strings | The tools and skills it used. |
wisdom_searches, model_calls | integer | How many times it searched Wisdom and called a model. |
decisions | array | Each Decision API question: kind, question, answer (the choice, in words), by, model, ms and sure (0 to 100). |
curl "https://api.agent.kiduna.ai/v1/logs?kind=tap&limit=1" \ -H "Authorization: Bearer $KIDUNA_API_KEY"
{
"logs": [
{
"id": "tr_056f1b11114f4dd6",
"kind": "tap",
"started_at": "2026-12-06T12:02:42.415470+00:00",
"ended_at": "2026-12-06T12:02:42.617470+00:00",
"ms": 202,
"started_by": "action.started: a member tapped Do it on a card",
"message": null,
"answer": null,
"agent": { "kind": "ki", "name": "Ki" },
"duna": "the-big-kiduna",
"result": "done",
"tools": ["search_knowledge"],
"skills": [],
"wisdom_searches": 1,
"model_calls": 1,
"decisions": []
}
],
"next": "WyIyMDI2LTEyLTA2VDEyOjAy…",
"since": "2026-11-29T12:10:00+00:00",
"until": "2026-12-06T12:10:00+00:00",
"kept_days": 30,
"note": null
}What Ki learned about you, newest first: facts about you, what Scouts noted about you in your Alliances, changes to how your Envoy’s replies read, and interests Ki found. Each item says where it came from, whether it is in use or only noticed, and whether you can undo it. Only your own.
| Kind | What it is | Undo |
|---|---|---|
fact | Something about you: what you said, what your Envoy learned, or what came from your profile or files. Also what Ki only noticed while learning only notices. | Yes |
scout_note | What a Scout noted about you in one of your Alliances (alliance_id), for example the work you fit. | Yes |
manner | A change to how your Envoy’s replies read to you. | Yes |
interest | Topics Ki noticed you like or would rather not, and interests Ki found in what you engaged with: a Spark, a Realm, topics you raised again. | No: change your Envoy’s interests in Your Envoy |
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
kind | query | string | No | One of the four kinds. |
status | query | string | No | in_use, noticed_only (seen while learning only notices; not used) or undone. Without it: in use and noticed only. |
since, until | query | string | No | Times like 2026-12-06T09:30:00Z: items learned or noticed again in that time. |
words | query | string | No | Up to 120 characters, found in what it says, where it came from or why. |
limit | query | integer | No | 1 to 50. Default 20. |
cursor | query | string | No | The next a page gave, for the page after it. |
| Status | Body | When |
|---|---|---|
| 200 | learned, next, counts, learning, note | One page. next is null on the last page. |
| 400 | bad_timebad_windowbad_cursor | A time, window or cursor cannot be read. |
| 403 | integration_duna_limited | The key is limited to some DUNAs, and none of this is a DUNA’s. Use a key without a DUNA limit. |
| 422 | invalid_request and fields | kind or status is not one of them, or limit is out of range. |
| Field | Type | Meaning |
|---|---|---|
learned | array | The items. Each one is below. |
next | string or null | The cursor for the next page. |
counts | object | How many items of each kind fit your filters, across all pages. |
learning | object | How far learning goes now, for facts, scout_notes and manner: off, shadow (it only notices) or on. |
note | string or null | Anything you should know about the list, for example that something could not be read just now. |
| Field | Type | Meaning |
|---|---|---|
id | string | Pass it to POST /v1/learned/{item}/undo. |
kind | string | One of the four kinds. |
says | string | What was learned, in words. |
category | string or null | Its kind of fact or note, for example preference. |
from | string or null | Where it came from, in words, for example "You said". |
why | string or null | Why it was learned, when Ki kept a reason. |
status | string | in_use, noticed_only or undone. |
learned_at, last_at | string | When it was first learned, and last noticed again. |
times | integer or null | How many times it was noticed, when counted. |
alliance_id | string or null | For a Scout’s note: the Alliance. |
can_undo | boolean | It can be undone. |
curl "https://api.agent.kiduna.ai/v1/learned?kind=fact&limit=1" \ -H "Authorization: Bearer $KIDUNA_API_KEY"
{
"learned": [
{
"id": "memory_7c41d2e9",
"kind": "fact",
"says": "Prefers morning meetings",
"category": "preference",
"from": "You said",
"why": null,
"status": "in_use",
"learned_at": "2026-12-06T12:27:42.906018+00:00",
"last_at": "2026-12-06T12:27:42.906018+00:00",
"times": null,
"alliance_id": null,
"can_undo": true
}
],
"next": "WyIyMDI2LTEyLTA2VDEyOjI3…",
"counts": { "fact": 3, "scout_note": 0, "manner": 0, "interest": 0 },
"learning": { "facts": "shadow", "scout_notes": "shadow", "manner": "shadow" },
"note": "Learning only notices for now (facts, scout notes, manner): what it notices is listed as noticed only and is not used."
}Undoes one thing Ki learned about you. Over this API it is done at once, so show your user the item and ask first. (Over MCP the tool first asks for a confirm code.)
| What you undo | What happens |
|---|---|
| A fact in use | Ki no longer uses it: it is taken out of your facts, their knowledge copy and the graph. |
| Something only noticed | It is closed: Ki does not suggest it again for 30 days. |
| A manner change | Your Envoy no longer uses it; your Vibes are as you set them. |
| A Scout’s note | The Scout no longer reads it, and does not learn it again for 30 days. |
| A Scout’s note only noticed | It is closed: the Scout does not suggest it again for 30 days. |
| An interest | No Undo here: change your Envoy’s interests in Your Envoy. |
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
item | path | string | Yes | An id from GET /v1/learned. 3 to 160 letters, digits and _ . : -. |
No body.
| Status | Body | When |
|---|---|---|
| 200 | undone, already, message | Undone. "already": true when it was undone before: nothing more is done. |
| 400 | bad_id | That is not an item id. |
| 403 | integration_duna_limited | The key is limited to some DUNAs. Use a key without a DUNA limit. |
| 404 | not_found | Nothing Ki learned about you has that id. |
| 409 | no_undo | It has no Undo here. message says where to change it. |
| 409 | cannot_undo | It changed meanwhile, or it cannot be undone now. Read the list again. |
| 422 | invalid_request and fields | The id is too short, too long or has other characters. |
| Field | Type | Meaning |
|---|---|---|
undone | object | The item as it is now, with the fields of GET /v1/learned. |
already | boolean | true when it was undone before. |
message | string | What was done, in words. |
curl -X POST https://api.agent.kiduna.ai/v1/learned/memory_7c41d2e9/undo \ -H "Authorization: Bearer $KIDUNA_API_KEY"
{
"undone": {
"id": "memory_7c41d2e9",
"kind": "fact",
"says": "Prefers morning meetings",
"category": "preference",
"from": "You said",
"why": null,
"status": "undone",
"learned_at": "2026-12-06T12:27:42.906018+00:00",
"last_at": "2026-12-06T12:27:42.906018+00:00",
"times": null,
"alliance_id": null,
"can_undo": false
},
"already": false,
"message": "Ki no longer uses it: it is taken out of your facts, their knowledge copy and the graph."
}API
Keep one connection open and send many messages. Each message gets one whole answer. Like the HTTP API, the connection does not remember earlier messages, and agents answer without tools or account data.
Open wss://api.agent.kiduna.ai/v1/ws/chat. Sign in one of two ways. Never put the key in the address: addresses end up in logs.
| Way | How | Use it from |
|---|---|---|
| Header | Send Authorization: Bearer kiduna_ik_… when you open the connection. | A server |
| First message | Within 20 seconds of opening, send {"type": "authenticate", "apiKey": "kiduna_ik_…"}. | Clients that cannot set headers |
When the key works, Kiduna sends {"type": "authenticated", "wallet": "…"}. When it does not, Kiduna sends one error message and closes the connection with code 1008 and the reason authentication_failed. If no sign-in comes within 20 seconds, that counts as a failed sign-in. If the API or chat is switched off on the server, the opening itself is refused with HTTP 403.
The key is checked again for every chat message. A key that is disabled or deleted stops working on an open connection too.
| type | Fields | What happens |
|---|---|---|
authenticate | apiKey (string, required) | Signs in. Only as the first message, and only when no header was sent. |
chat | message (string, 1–6,000 characters, required)agentId (string, 1–64 characters, optional)idempotencyKey (string, 8–128 characters, optional) | Asks Kiduna’s general assistant, or the agent named in agentId (an id from GET /v1/agents). Needs chat.send, or agents.chat with agentId. The same idempotencyKey sent again returns the first answer. |
ping | None | Kiduna answers pong. A ping does not count toward the rate limit. |
| type | Fields | When |
|---|---|---|
authenticated | wallet | Sign-in worked. |
response | response, mode, request_id, and agent {id, name} when you named an agent | The answer to one chat message. mode is "read_only" from the general assistant and "answer_only" from an agent. |
request_status | status, request_id, message | No answer this time. "pending": still running, so send the same message and idempotencyKey again shortly. "uncertain": ask again with a new idempotencyKey. "held": the first message with this key was refused. |
pong | None | The answer to ping. |
error | status (number), error (code) | Something was wrong. After sign-in the connection stays open; send the next message. |
An error message looks like {"type": "error", "status": 422, "error": "invalid_request"}. The key, scope and rate-limit errors are the same as over HTTP; see Errors. These belong to WebSocket chat:
| status | error | When |
|---|---|---|
| 401 | authentication_required | No header was sent, and the first message was not authenticate with an apiKey, was not JSON, or did not come within 20 seconds. The connection then closes. |
| 422 | invalid_websocket_message | The message is not a JSON object. |
| 422 | unsupported_websocket_message | Its type is not chat or ping. |
| 422 | invalid_request | message is missing, empty or over 6,000 characters. |
| 422 | invalid_agent_id | agentId is empty, too long or not a string. |
| 422 | invalid_idempotency_key | idempotencyKey is shorter than 8 or longer than 128 characters. |
| 404 | agent_not_found | There is no such agent, or you may not use it. |
Messages in order, after opening the connection without a header. → is sent, ← is received.
→ {"type": "authenticate", "apiKey": "kiduna_ik_…"}
← {"type": "authenticated", "wallet": "<the account’s wallet address>"}
→ {"type": "ping"}
← {"type": "pong"}
→ {"type": "chat", "message": "Say hello in five words.", "idempotencyKey": "hello-0001"}
← {"type": "response", "response": "Hello there, how are you today?", "mode": "read_only", "request_id": "req_ceb852bb0d286689d7326105262f81c5"}
→ {"type": "chat", "message": "In one sentence, what can you help me with?", "agentId": "duna-guide-acting-out"}
← {"type": "response", "agent": {"id": "duna-guide-acting-out", "name": "Acting Out Guide"}, "response": "I can help you learn about Acting Out and explore accessible ways to learn, connect, perform, produce, attend, sponsor, or contribute.", "mode": "answer_only", "request_id": "req_…"}
→ {"type": "chat", "message": ""}
← {"type": "error", "status": 422, "error": "invalid_request"}
// Node.js 22 or newer has WebSocket built in. It cannot set headers, so it signs in with the first message.
const socket = new WebSocket("wss://api.agent.kiduna.ai/v1/ws/chat");
socket.onopen = () => socket.send(JSON.stringify({ type: "authenticate", apiKey: process.env.KIDUNA_API_KEY }));
socket.onmessage = (event) => {
const frame = JSON.parse(event.data);
if (frame.type === "authenticated") socket.send(JSON.stringify({ type: "chat", message: "Explain API keys simply." }));
if (frame.type === "response") console.log(frame.response);
if (frame.type === "error") console.error(frame.status, frame.error);
};
SKILLS
Every skill Kiduna’s own agents use: Ki, the System Actors, each DUNA’s Guide and Scout, and each Realm’s Sage. Search them, choose an agent to see only its skills, and open a skill to read it.
A skill is a short written method an agent follows for one kind of task: what it needs, the steps, and what it must not do. Each agent runs the version shown here.
Loading skills…
MCP
Every Kiduna tool an API key opens, sorted into modules: what it is for, what it takes, and whether it changes anything. Your account’s rights decide what each call may do.
Every tool an API key opens over MCP, in 22 modules: what each does, what it takes, and whether it changes anything. A key needs mcp.use and common-tools.use; every key made in Settings has both. The tools of the DUNAs, Guides & Scouts, Realms & Sparks, What Ki learned and Your logs modules also show what they answer.
| Rule | Details |
|---|---|
| Name | Over MCP each tool’s name starts with kiduna__, for example kiduna__create_duna. |
| Answer | Text. Most tools answer JSON when they worked, and one line that starts with Failed: when they did not, in words you can show a person. Some older tools answer one plain sentence either way, and some lists answer one plain sentence when they are empty. The tools with an Output table answer as it shows. |
| Changes anything | No: it only reads. Yes: it changes something at once, so ask the person first. Yes, after a yes: it changes nothing until the person said yes, as the next row says. |
| A tool that changes something | A tool with confirm_code takes two calls. The first changes nothing: it answers Confirmation required., the exact action to show the person, and a confirm_code. Once the person says yes, call it again with the same arguments, confirmed: true and that confirm_code. The code works once, only for that exact action and that API key, for 15 minutes. With other arguments, a used code or an old one, nothing changes and it answers Confirmation required: … again: ask for a new code and show the person the action again. A tool with confirmed and no confirm_code changes nothing until you call it with confirmed set, after the person said yes. |
| A key limited to some DUNAs | It changes things only in those DUNAs and makes no new DUNA. Anywhere else it answers Failed: This API key is not allowed to use that DUNA. It also makes and changes no Realm or Spark, and reads nothing of what Ki learned about you. |
| Never over a key | Tools that move the Kiduna app’s own screen, and the tools of accounts you connected (Gmail, Bluesky, Telegram and others), are not opened to an API key. |
| Who may | Every tool acts as the key’s account. Kiduna checks that account’s rights on each call, as in the app. |
A DUNA is a community in Kiduna, with its own members, rules and Initiatives. Every DUNA sits under The Big Kiduna. Anyone who opens every DUNA can make one and becomes its Catalyst. A new DUNA starts with its Guide and its first chapter, and the chapter has its Scout.
| Tool | What it does | Changes anything |
|---|---|---|
list_dunas | Lists every DUNA, and the domains a DUNA can name. | No |
get_duna_details | One DUNA’s details, and the version a change passes back. | No |
list_my_dunas | Your DUNA memberships and roles, and which DUNAs open for you now. | No |
join_duna | Joins a DUNA the person asked to join, like the app’s Join button. | Yes |
create_duna | Makes a new DUNA, with its Guide and its first chapter. Its maker becomes its Catalyst. | Yes, after a yes |
update_duna_details | Changes a DUNA’s details at once: its Catalyst or Mages. | Yes, after a yes |
list_duna_visions | A DUNA’s public Initiatives. | No |
list_duna_activities | The Activities of a DUNA’s Initiatives, with your status on each. | No |
list_governance_dunas | The DUNAs where you take part in governance. | No |
get_duna_governance_schedule | When proposals and votes are open, by the server’s clock. | No |
get_governance_rule_order | The order in which rules win, highest first. | No |
check_governance_rule | Checks a rule against the higher rules a DUNA has adopted. | No |
check_proposed_action | Checks an Action against a DUNA’s rules before it is offered. | Can ask its Mages |
get_my_action | One of your own Actions, by its id. | No |
list_duna_policies | The policies a DUNA has adopted. | No |
list_duna_proposals | The latest proposals you can see in a DUNA. | No |
get_duna_proposal | One governance proposal. | No |
get_work_proposal | One chapter, Initiative or Activity proposal. | No |
validate_duna_proposal | Checks a proposal without creating it. | No |
create_duna_proposal | Creates a proposal for a DUNA’s governors to review. | Yes, after a yes |
review_duna_proposal | A governor approves or rejects a proposal. | Yes, after a yes |
vote_duna_proposal | A member votes yes or no. | Yes, after a yes |
get_duna_treasury | A DUNA’s treasury balance, in dollars. | No |
Lists every DUNA, and the domains a DUNA can name.
None.
| Field | Type | What |
|---|---|---|
count | number | How many DUNAs there are. |
dunas | list | Each DUNA: id, name, mission, and when it has them focus, domains and previousNames. |
domains | list | The domains a DUNA can name: Technology, Culture, Care, Governance, Economics, Ecology. |
One DUNA’s details, and the version a change passes back.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id from list_dunas. |
| Field | Type | What |
|---|---|---|
duna | object | Its details: id, name, mission, slogan, domains, focus, provisional, parentDunaId, organization, organizationNumber, organizationUrl, coverUrl, faceUrl, marketingUrl, visitUrl, and profile (its page). |
version | number | Pass it to update_duna_details with a change. |
Your DUNA memberships and roles, and which DUNAs open for you now.
None.
| Field | Type | What |
|---|---|---|
memberships | list | Each one: dunaId, role, status, joinedAt, standing, votes and says (your standing in words). |
access | object | allDunas (true when every DUNA opens for you), reason and rootDunaId. |
Until KC is bought and staked only The Big Kiduna opens. The answer is then opens_now, rule (why, in words), memberships_that_open, catalog_duna_count, open_duna_count and closed_until_kc_is_staked.
Joins a DUNA the person asked to join, like the app’s Join button.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA they asked to join. |
A line that starts Joined. Kiduna then welcomes them in that DUNA. A line that starts Failed: says why not, for example that only The Big Kiduna opens until KC is staked.
Makes a new DUNA under The Big Kiduna. Its maker becomes its Catalyst, with a Mage grant, so they govern it: they review its proposals and add its Mages. It starts with its Guide, live from a starter package made from these words, and with its first chapter where the maker is the organizer; the chapter has its own Scout. It starts provisional, and Kiduna sets up its treasury. Anyone who opens every DUNA may make one: KC bought and staked, or a Mage account.
| Name | Type | Required | What |
|---|---|---|---|
name | string | Yes | Up to 160 characters. The DUNA’s id comes from it: River Keepers → river-keepers. No other DUNA may have the same name or id. |
mission | string | Yes | 10 to 4,000 characters. |
domains | list of strings | Yes | At least one, from the domains of list_dunas. |
why | string | Yes | 3 to 500 characters. Kept in the audit. |
slogan | string | No | Up to 500 characters. |
focus | list of strings | No | What it works on. |
chapter_state | string | Yes | Where its first chapter meets: a two-letter US state, for example WV. |
chapter_county | string | No | The county it meets in, for example Jefferson. Give this or chapter_city. |
chapter_city | string | No | Or the town it meets in, for example Shepherdstown. |
governing_principles | list of strings | No | Up to 50 lines. |
confirmed | boolean | No | true only after the person said yes to the name, mission, domains, the first chapter’s place and why. Without it nothing is made. |
confirm_code | string | No | Over MCP only: the code the first call answered with, once the person said yes. See “A tool that changes something” above. |
| Field | Type | What |
|---|---|---|
duna | object | id, name, mission, domains, focus, slogan, provisional. |
version | number | 0. Pass it to update_duna_details. |
you | object | {"role": "catalyst", "mage": true}. |
treasury | string | ready, or not_set_up when this server cannot make treasuries yet. |
chapter | object | Its first chapter: id, name, place, and you: organizer. |
guide | object | Its Guide: id, name, status (live, or being made for a few seconds more), starter_package (published) and says (what happened to the package, in words). |
scout | object | The first chapter’s Scout: id, name, status (made, or being made). |
The first call, without a code, makes nothing and answers: Confirmation required. Nothing was made. Show the person this exact action and ask them: {"make_duna": {"name": "River Keepers", …, "firstChapter": {"state": "WV", "county": "Jefferson"}, "why": "…"}} When they say yes, call this tool again with the same arguments, confirmed=true and confirm_code="K7MXQ2PA". The code works once, only for this exact action and this API key, for 15 minutes. The example below is the second call.
It answers Failed: and Kiduna’s own words when:
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "kiduna__create_duna",
"arguments": {
"name": "River Keepers",
"mission": "Keep the rivers clean, together.",
"domains": [
"Ecology"
],
"slogan": "Clean water for all",
"chapter_state": "WV",
"chapter_county": "Jefferson",
"why": "A DUNA for the people who look after our rivers",
"confirmed": true,
"confirm_code": "K7MXQ2PA"
}
}
}
{
"duna": {
"id": "river-keepers",
"name": "River Keepers",
"mission": "Keep the rivers clean, together.",
"focus": [],
"domains": [
"Ecology"
],
"slogan": "Clean water for all",
"provisional": true
},
"version": 0,
"you": {
"role": "catalyst",
"mage": true
},
"treasury": "ready",
"chapter": {
"id": "6ccd9afc-0a78-4638-bc8a-b9929b4efec5",
"name": "River Keepers · Jefferson County, WV",
"place": "Jefferson County, WV",
"you": "organizer"
},
"guide": {
"id": "duna-guide-river-keepers",
"name": "River Keepers Guide",
"status": "live",
"starter_package": "published",
"says": "v1 is live now: the first version published for this DUNA."
},
"scout": {
"id": "scout-ec23d62045f96c674129",
"name": "River Keepers · Jefferson County, WV Scout",
"status": "made"
}
}
Changes a DUNA’s details at once. Its Catalyst or Mages, David and the Mages of The Big Kiduna may. Anyone else proposes the change to its members with create_duna_proposal.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
changes | string | Yes | A JSON object of only the details that change: name, mission, slogan, domains, focus, governingPrinciples, organization, organizationNumber, organizationUrl, coverUrl, provisional. null clears organization, organizationNumber, organizationUrl or coverUrl. Its page tabs (profile) are not changed here. |
why | string | Yes | 3 to 500 characters. Kept in the audit. |
version | integer | No | The version that get_duna_details returned with the details you showed. If the DUNA changed since, nothing changes: read it again. Without it, the current version is used. |
confirmed | boolean | No | true only after the person said yes to each detail’s current and new value. Without it nothing changes. |
confirm_code | string | No | Over MCP only: the code the first call answered with, once the person said yes. See “A tool that changes something” above. |
| Field | Type | What |
|---|---|---|
duna_id | string | The DUNA. |
details | object | All its details now. |
version | number | Its version now. |
changed | list | The details that changed. Empty when every value was already the same; then the version stays. |
A DUNA made in Kiduna: while its Guide runs from its starter package, the package is made again from the new words, so its Guide and Scouts say them.
It answers Failed: and Kiduna’s own words when:
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "kiduna__update_duna_details",
"arguments": {
"duna_id": "river-keepers",
"changes": "{\"slogan\": \"Clean rivers, together\"}",
"why": "Our members chose a new slogan",
"version": 0,
"confirmed": true,
"confirm_code": "R4WN8ZTE"
}
}
}
{
"duna_id": "river-keepers",
"details": {
"name": "River Keepers",
"slogan": "Clean rivers, together",
"…": "…"
},
"version": 1,
"changed": [
"slogan"
]
}
A DUNA’s public Initiatives.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
| Field | Type | What |
|---|---|---|
duna | object | id and name. |
visions | list | Its public, active Initiatives: id, title, tagline, bannerUrl, packId. |
With none it answers: “This DUNA has no public Visions yet.”
The Activities of a DUNA’s Initiatives, with your status on each.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
search | string | No | Words to narrow the list: title, line, kind or Initiative. |
| Field | Type | What |
|---|---|---|
duna | object | id and name. |
count | number | How many are listed (at most 25). |
activities | list | Each: id, kind, title, line, initiative (id, title), my_status, can_claim, claim_why_not, link. |
It never claims or joins: claiming is the person’s own tap on the Activity page.
The DUNAs where you take part in governance.
None.
| Field | Type | What |
|---|---|---|
dunas | list | Your active memberships other than Guest: id, name, role, status. |
When proposals and votes are open, by the server’s clock.
None.
| Field | Type | What |
|---|---|---|
serverNow | string | The server’s time (UTC). |
phase | string | Where governance is now. |
canSubmit, canReview | boolean | Whether proposals can be sent and reviewed now. |
submissionOpensAt, submissionClosesAt, votingOpensAt, votingClosesAt | string or null | The windows, when one is set. |
rule | string | Each DUNA’s adopted rules set its own vote times: list_duna_proposals shows a DUNA’s. |
The order in which rules win, highest first.
None.
| Field | Type | What |
|---|---|---|
order | list | law, kiduna, duna_constitution, duna_policy, chapter_policy, mandate, action. |
Checks a rule against the higher rules a DUNA has adopted.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
level | string | Yes | One of get_governance_rule_order’s order. |
subject | string | Yes | What the rule is about. |
decision | string | Yes | allow, deny, require or forbid. |
| Field | Type | What |
|---|---|---|
order | list | The rule order used. |
conflict | object or null | The higher adopted rule it clashes with. |
result | string | For example no_known_structured_conflict. |
limitation | string | What it could not check: rules written only in words need a person’s review. |
Checks an Action against a DUNA’s rules before it is offered.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
effect_class | string | Yes | read, internal, binding, external or money. |
kind | string | Yes | What kind of Action it is. |
title | string | No | Its title. |
subject | string | No | What it is about. |
offer | object | No | For an offer, its terms: place, time, effort, pay, owner, reviewer. |
| Field | Type | What |
|---|---|---|
result | string | allowed, needs_confirmation or blocked. |
say | string | One plain line to show as it is. |
confirm_by, rule, missing_rule | Who confirms, the rule that decided, or that no rule covers it. | |
mages_asked | boolean | When no rule covers it, the DUNA’s Mages are asked and the Action waits for them. |
effect_class, limitation | The class checked, and what it could not check. |
One of your own Actions, by its id.
| Name | Type | Required | What |
|---|---|---|---|
action_id | string | Yes | The exact Action id shown in the Action Center. |
| Field | Type | What |
|---|---|---|
id, title, status, stored_status, activity_id, duna_id | The Action as it is now. |
Someone else’s id, or an unknown one, answers “Failed: This Action ID is not available to your account.”
The policies a DUNA has adopted.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
| Field | Type | What |
|---|---|---|
policies | list | Each adopted policy with its title, text and version. |
With none it answers: “This DUNA has no adopted policies yet.” A policy only drafted is not here.
The latest proposals you can see in a DUNA.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. You need an active membership other than Guest. |
| Field | Type | What |
|---|---|---|
duna | object | The DUNA. |
schedule | object | This DUNA’s vote times: phase, canSubmit, canReview, the windows, binding, and why when no binding vote can open yet. |
memberControl | boolean | Whether its members govern it themselves. |
proposals | list | Up to 100, newest first. One waiting for review shows only to its writer and reviewers. Proposals that move money are left out while money is closed. |
One governance proposal.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
proposal_id | string | Yes | The proposal’s id (a UUID) from list_duna_proposals. |
| Field | Type | What |
|---|---|---|
proposal | object | Its title, type, text and status. |
schedule, vote | object | When it is voted on, and its vote class, rules and result. |
reviews, ballots, counts, ownVote | The reviews, the votes, the yes/no/abstain counts and your own vote. | |
typed, execution, distribution | What runs if it passes, and what ran. Passed is not always done: read execution.status. | |
history | list | What happened to it. |
capabilities | object | What you may do now: canEdit, canReview, canVote… |
One chapter, Initiative or Activity proposal.
| Name | Type | Required | What |
|---|---|---|---|
proposal_id | string | Yes | Its exact id (a UUID). |
| Field | Type | What |
|---|---|---|
proposal | object | The proposal. Shown only to the person who asked for it and to who confirms it. |
Checks a proposal without creating it.
| Name | Type | Required | What |
|---|---|---|---|
proposal | string | Yes | A JSON object: title (3–160 characters), reason (10–10,000), and either changes (details to change) or proposedPurpose for a change to the DUNA itself, or type (role, membership, budget, work, policy, distribution) with its data. |
duna_id | string | Yes | The DUNA’s id. |
| Field | Type | What |
|---|---|---|
valid | boolean | Whether it could be created now. |
proposalCreated | boolean | Always false: nothing is created. |
message | string | When it is not valid, why, in words. For example that no binding vote can open until the DUNA adopts its vote rules. |
Creates a proposal for a DUNA’s governors to review.
| Name | Type | Required | What |
|---|---|---|---|
proposal | string | Yes | The same JSON object as validate_duna_proposal. |
duna_id | string | Yes | The DUNA’s id. |
confirmed | boolean | No | true only after the person said yes to the exact proposal. |
confirm_code | string | No | Over MCP only: the code the first call answered with, once the person said yes. See “A tool that changes something” above. |
The new proposal, in governor review.
It answers Failed: and Kiduna’s own words when:
A governor approves or rejects a proposal.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
proposal_id | string | Yes | The proposal’s id. |
choice | string | Yes | approve or reject. |
comment | string | No | Up to 2,000 characters. |
confirmed | boolean | No | true only after the governor said yes to this decision on this proposal. |
confirm_code | string | No | Over MCP only: the code the first call answered with, once the person said yes. See “A tool that changes something” above. |
The proposal after the decision.
A member votes yes or no.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
proposal_id | string | Yes | The proposal’s id. |
choice | string | Yes | yes or no. |
confirmed | boolean | No | true only after the member said yes to this vote on this proposal. |
confirm_code | string | No | Over MCP only: the code the first call answered with, once the person said yes. See “A tool that changes something” above. |
The proposal after the vote. A member whose Envoy is set to observe or to vote directly votes in the app.
A DUNA’s treasury balance, in dollars.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
| Field | Type | What |
|---|---|---|
dunaId | string | The DUNA. |
balance | number | Its balance. |
symbol | string | $. |
Offered over MCP only while money is open in Kiduna.
A DUNA has one Guide, which answers its members, and one Scout, which each of its Alliances runs a copy of. Only the DUNA’s Catalyst reads and changes them: anyone else gets Failed: before any confirm code. There are two ways to change them. Part by part, as on the agent’s page in Kiduna Cloud: assign, remove, or switch an item on or off. Or file by file in the DUNA’s package: a change goes live only when its tests pass. The same parts are on the HTTP API: see the agent parts endpoints.
| Tool | What it does | Changes anything |
|---|---|---|
get_duna_agent_parts | What your DUNA’s Guide or Scout uses, part by part, and what may be assigned. | No |
change_duna_agent_part | Assigns, removes, or switches on or off one item of your DUNA’s Guide or Scout. | Yes, after a yes |
add_to_duna_wisdom | Adds text to your DUNA’s notes, which its Guide searches. | Yes, after a yes |
get_duna_guide | Your DUNA’s Guide as it runs now, file by file, or one file’s whole text. | No |
get_duna_scout | Your DUNA’s Scout as it runs now, file by file, or one file’s whole text. | No |
update_duna_guide | Changes files or settings of one part of the Guide. It goes live only when its tests pass. | Yes, after a yes |
update_duna_scout | Changes files or settings of one part of the Scout. Every Alliance’s copy gets it. | Yes, after a yes |
undo_duna_guide_scout_change | Takes back the latest change to your DUNA’s Guide or Scout. | Yes, after a yes |
create_duna_guide | Makes the Guide of a DUNA left without one. | Yes, after a yes |
What the DUNA’s Guide or Scout uses in each of its six parts: each item, whether it comes from its own kit or was assigned, whether it is on, and the actions each part takes. Name one part to see what may be assigned to it. Only the DUNA’s Catalyst.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id, from list_my_dunas. |
agent | string | Yes | guide or scout. |
part | string | No | One part: instructions, wisdom, skills, tools, automations or vibes. Without it: all six, each with how many items may be assigned. |
The same JSON as GET /v1/dunas/{duna}/agents/{kind}/parts on the HTTP API: duna, agent, parts and note. Each field is explained there.
Every field: GET /v1/dunas/{duna}/agents/{kind}/parts.
One change to the DUNA’s Guide, or to every copy of its Scout: assign an item, remove one, switch one on or off, or set a kit automation to run. The agent works with the change from its next answer, and the change is kept in Kiduna Cloud’s audit with its reason. Only the DUNA’s Catalyst.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
agent | string | Yes | guide or scout. |
part | string | Yes | One of the six parts. |
action | string | Yes | assign, remove, on, off or run, as the part takes them. |
item | string | Yes | The item’s key, as the part’s rows or options give it. For the Vibes, own puts back the agent’s own. |
why | string | Yes | Why, in a few words (3 to 500 characters). It is kept with the change. |
confirmed | boolean | No | true only after the person said yes to this exact action. |
confirm_code | string | No | Over MCP: the code the first call answered with. See “A tool that changes something” above. |
The same JSON as POST /v1/dunas/{duna}/agents/{kind}/parts: changed, message, and for a Scout each copy’s outcome. A refusal is one line that starts Failed: and ends Nothing was changed.
Every field: POST /v1/dunas/{duna}/agents/{kind}/parts.
Adds text to the DUNA’s notes: one knowledge base kept for the DUNA, made the first time. Its Guide is given it at once and searches it from its next answer. A package update never replaces it. Anyone the Guide talks to may be shown what it finds there, so add nothing private. Only the DUNA’s Catalyst.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
title | string | Yes | A short title for what is added. |
text | string | Yes | The words to add: 20 to 20,000 characters. |
why | string | Yes | Why, in a few words (3 to 500 characters). It is kept with the change. |
confirmed | boolean | No | true only after the person said yes to this exact action. |
confirm_code | string | No | Over MCP: the code the first call answered with. See “A tool that changes something” above. |
The same JSON as POST /v1/dunas/{duna}/notes: the notes base, what was added (with how many passages), the guide and a message.
Every field: POST /v1/dunas/{duna}/notes.
The DUNA’s Guide as it runs now: its six parts with their settings and files, its latest versions with their tests, and what undo would go back to. Name one file to read its whole text before changing it. Only the DUNA’s Catalyst.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
file | string | No | One file’s path, as the parts list it. |
| Field | Type | What |
|---|---|---|
ally | object | kind, duna_id and name. |
status | string | live, earlier (was live) or draft (never live): the version shown. not_yet when the DUNA has no package version yet. |
version | object | The version shown: version (its id), sequence, label, origin, based_on and stored_at. |
parts | list | Without file: each of the six parts with its settings and its files: each file’s path and bytes, and also_used_by when the other agent uses the same file. |
versions | list | Without file: up to 10 latest versions, each with its latest tests. |
undo | object | Without file: whether undo is possible, why not, or the version it goes_back_to and the live_version. |
part, settings, file | object | With file: the part it belongs to, that part’s settings, and the file: path, bytes, also_used_by, and its whole text. Text over 60,000 characters is cut there and marked changed_here: false: such a file is not changed with these tools. |
The DUNA’s Scout the same way, and overlays: how each Alliance narrows it. Every Alliance of the DUNA runs this one Scout. Only the DUNA’s Catalyst.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
file | string | No | One file’s path, as the parts list it. |
| Field | Type | What |
|---|---|---|
ally | object | kind, duna_id and name. |
status | string | live, earlier (was live) or draft (never live): the version shown. not_yet when the DUNA has no package version yet. |
version | object | The version shown: version (its id), sequence, label, origin, based_on and stored_at. |
parts | list | Without file: each of the six parts with its settings and its files: each file’s path and bytes, and also_used_by when the other agent uses the same file. |
versions | list | Without file: up to 10 latest versions, each with its latest tests. |
undo | object | Without file: whether undo is possible, why not, or the version it goes_back_to and the live_version. |
part, settings, file | object | With file: the part it belongs to, that part’s settings, and the file: path, bytes, also_used_by, and its whole text. Text over 60,000 characters is cut there and marked changed_here: false: such a file is not changed with these tools. |
overlays | list | How each Alliance narrows the Scout. |
Changes one part of the DUNA’s Guide: a new version is made from the version you read, its tests run at once, and it goes live only when they pass. Otherwise the Guide runs what it ran, and the answer says which checks did not pass. If the Guide changed since you read it, nothing changes. Only the DUNA’s Catalyst.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
part | string | Yes | The part to change: instructions, wisdom, skills, tools, automations or vibes. |
why | string | Yes | Why, in a few words (3 to 500 characters). It is kept with the change. |
files | string | No | A JSON object: each file of that part that changes (its path as the read shows it) and its whole new text. |
settings | string | No | A JSON object: each setting of that part that changes and its new value. |
from_version | string | No | The version the read showed. Without it: the version live now. |
confirmed | boolean | No | true only after the person said yes to this exact action. |
confirm_code | string | No | Over MCP: the code the first call answered with. See “A tool that changes something” above. |
| Field | Type | What |
|---|---|---|
ally, part | string | What was changed, for example guide:river-keepers and skills. |
draft | object | The new version: version, sequence, created and changed. |
tests | object | verdict, passed, says, and not_passed: each check that did not pass, with its lines. |
live | boolean | true when its tests passed and it went live. When false, the agent runs what it ran before. |
published | object or null | When live: version, sequence, and was (the sequence live before). |
also_changes | object | When a changed file is the other agent’s too: that agent and the files. It runs the change as well. |
message | string | What happened, in words. |
ki | object | When live: what Ki runs now. The Guide moves to the live version at once; each Alliance’s Scout within two minutes. |
Changes one part of the DUNA’s Scout, as update_duna_guide does for the Guide. Each Alliance’s Scout moves to the new version within two minutes. Only the DUNA’s Catalyst.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
part | string | Yes | The part to change: instructions, wisdom, skills, tools, automations or vibes. |
why | string | Yes | Why, in a few words (3 to 500 characters). It is kept with the change. |
files | string | No | A JSON object: each file of that part that changes (its path as the read shows it) and its whole new text. |
settings | string | No | A JSON object: each setting of that part that changes and its new value. |
from_version | string | No | The version the read showed. Without it: the version live now. |
confirmed | boolean | No | true only after the person said yes to this exact action. |
confirm_code | string | No | Over MCP: the code the first call answered with. See “A tool that changes something” above. |
| Field | Type | What |
|---|---|---|
ally, part | string | What was changed, for example guide:river-keepers and skills. |
draft | object | The new version: version, sequence, created and changed. |
tests | object | verdict, passed, says, and not_passed: each check that did not pass, with its lines. |
live | boolean | true when its tests passed and it went live. When false, the agent runs what it ran before. |
published | object or null | When live: version, sequence, and was (the sequence live before). |
also_changes | object | When a changed file is the other agent’s too: that agent and the files. It runs the change as well. |
message | string | What happened, in words. |
ki | object | When live: what Ki runs now. The Guide moves to the live version at once; each Alliance’s Scout within two minutes. |
Goes back to the version that was live before the latest change. The Guide and the Scout are one package, so this takes back the latest change of either: the read’s undo says what it goes back to. Only the DUNA’s Catalyst.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
why | string | Yes | Why, in a few words (3 to 500 characters). It is kept with the change. |
live_version | string | No | The live_version the read’s undo showed. If another version went live since, nothing changes. |
confirmed | boolean | No | true only after the person said yes to this exact action. |
confirm_code | string | No | Over MCP: the code the first call answered with. See “A tool that changes something” above. |
| Field | Type | What |
|---|---|---|
duna_id | string | The DUNA. |
changed | boolean | Whether it went back. |
message | string | What happened, in words. |
live | object | The version live now: version and sequence. |
was | number or null | The sequence that was live before. |
ki | object | What Ki runs now. |
A DUNA gets its Guide when it is made, so this is only for a DUNA left without one. The Guide starts from the DUNA’s package. A Guide archived in Kiduna Cloud is brought back by the Kiduna team, not here. Only the DUNA’s Catalyst.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | The DUNA’s id. |
why | string | Yes | Why, in a few words. It is kept with the change. |
confirmed | boolean | No | true only after the person said yes to this exact action. |
confirm_code | string | No | Over MCP: the code the first call answered with. See “A tool that changes something” above. |
| Field | Type | What |
|---|---|---|
duna_id | string | The DUNA. |
guide | object | The new Guide. |
made | boolean | true. |
A Realm is a map of one subject. Its Sparks are the ideas on it, linked to each other. Anyone may make a Realm, or add Sparks to any published Realm: what they make goes live at once, for everyone, with their name kept on it. Only its maker changes, hides or brings back what they made, and nothing is deleted. A mage may hide what people made; then only a mage brings it back. The Kiduna team’s Realms and Sparks are changed in Kiduna Cloud. A key limited to some DUNAs reads Realms but makes and changes none. Some tools call a Realm a map and a Spark a node.
| Tool | What it does | Changes anything |
|---|---|---|
list_maps | Lists the Realms you can read. | No |
get_map_detail | One Realm: what it is about, its groups and its main Sparks. | No |
search_nodes | Finds Sparks in a Realm by name, or lists them all. | No |
get_node_detail | One Spark in full, with its links to other Sparks. | No |
browse_map_connections | The links between Sparks in a Realm. | No |
list_my_realms_and_sparks | The Realms and Sparks you made, hidden ones too. | No |
get_spark | One Spark with its words, and who made it. | No |
create_realm_with_sparks | Makes a new Realm with its first Sparks. It goes live at once. | Yes, after a yes |
add_sparks_to_realm | Adds Sparks to any published Realm. They go live at once. | Yes, after a yes |
update_my_realm | Changes the words of a Realm you made. | Yes, after a yes |
update_my_spark | Changes the words of a Spark you made. | Yes, after a yes |
hide_realm | Hides a Realm you made, with its Sparks. Nothing is deleted. | Yes, after a yes |
restore_realm | Brings back a Realm you hid. | Yes, after a yes |
hide_spark | Hides a Spark you made. Nothing is deleted. | Yes, after a yes |
restore_spark | Brings back a Spark you hid. | Yes, after a yes |
Its tools answer Failed: and Kiduna’s own words when, for example:
Lists the Realms you can read.
None.
Text, as the rules at the top say.
One Realm: what it is about, its groups and its main Sparks.
| Name | Type | Required | What |
|---|---|---|---|
map_slug | string | Yes | Map slug exactly as list_maps returns it. |
Text, as the rules at the top say.
Finds Sparks in a Realm by name, or lists them all.
| Name | Type | Required | What |
|---|---|---|---|
query | string | No | Search term (e.g., "power", "legitimacy"). Leave empty to list all nodes. |
map_slug | string | No | Map slug from list_maps (default: "political") Default political. |
Text, as the rules at the top say.
One Spark in full, with its links to other Sparks.
| Name | Type | Required | What |
|---|---|---|---|
node_slug | string | Yes | The node's slug identifier (e.g., "power", "legitimacy", "proof-of-history") |
Text, as the rules at the top say.
The links between Sparks in a Realm.
| Name | Type | Required | What |
|---|---|---|---|
query | string | No | Filter by predicate or node name. Leave empty to list all connections. |
map_slug | string | No | Which map — "political", "solana", or "agentic" (default: "political") Default political. |
Text, as the rules at the top say.
The Realms and Sparks the key’s account made, hidden ones too. Read it before changing, hiding or bringing one back, and after a change whose outcome was uncertain.
None.
| Field | Type | What |
|---|---|---|
realms | list | A Realm: slug, title, summary, caution, category, hidden, made_by_you and made_by_the_team. |
sparks | list | A Spark: slug, title, summary, family, kind, mechanism, gift, wound, capacity, strategic_meaning, practice, conditions, realm, hidden, made_by_you and made_by_the_team. |
One Spark in a Realm with its words, whether you made it, whether the Kiduna team made it, and whether it is hidden. A hidden Spark is shown only to its maker.
| Name | Type | Required | What |
|---|---|---|---|
realm | string | Yes | The Realm’s name as a slug, for example town-lunch. |
spark | string | Yes | The Spark’s name as a slug, for example soup-on-fridays. |
A Spark: slug, title, summary, family, kind, mechanism, gift, wound, capacity, strategic_meaning, practice, conditions, realm, hidden, made_by_you and made_by_the_team.
Makes a new Realm with its first Sparks. It goes live at once, for everyone, with you kept as its maker: only you can change it, hide it or bring it back.
| Name | Type | Required | What |
|---|---|---|---|
title | string | Yes | The Realm’s name as people see it. |
summary | string | Yes | What it is about: at least 40 characters. |
category | string | Yes | One of the nine categories: Health & Inner Life; Love, Identity & Belonging; Culture, Stories & Play; Home, Place & Everyday Life; Nature & Our Planet; Money, Work & Making; Power, Justice & World Affairs; Science, Technology & Systems; Meaning, Spirit & Possibility. |
sparks | list of objects | Yes | 1 to 12 Sparks. Each is an object: title and summary (at least 40 characters) are needed; family (its group in the Realm), kind, mechanism, gift, wound, capacity, strategic_meaning, practice and conditions (a list of short sentences) may be added. |
caution | string | No | What the Realm does not claim. |
connections | list of objects | No | Links between these Sparks, by name: each {source, target, predicate, mechanism}. |
why | string | No | Why, in a few words. It is kept with the change. |
confirmed | boolean | No | true only after the person said yes to this exact action. |
confirm_code | string | No | Over MCP: the code the first call answered with. See “A tool that changes something” above. |
| Field | Type | What |
|---|---|---|
realm | object | A Realm: slug, title, summary, caution, category, hidden, made_by_you and made_by_the_team. |
sparks | list of strings | The new Sparks’ slugs. |
Adds Sparks to any published Realm, yours or not. They go live at once with you kept as their maker: only you can change them. A hidden Realm takes no new Sparks.
| Name | Type | Required | What |
|---|---|---|---|
realm | string | Yes | The Realm’s name as a slug, for example town-lunch. |
sparks | list of objects | Yes | 1 to 12 Sparks. Each is an object: title and summary (at least 40 characters) are needed; family (its group in the Realm), kind, mechanism, gift, wound, capacity, strategic_meaning, practice and conditions (a list of short sentences) may be added. |
connections | list of objects | No | Links between these Sparks, or to Sparks the Realm has, by name: each {source, target, predicate, mechanism}. |
why | string | No | Why, in a few words. It is kept with the change. |
confirmed | boolean | No | true only after the person said yes to this exact action. |
confirm_code | string | No | Over MCP: the code the first call answered with. See “A tool that changes something” above. |
| Field | Type | What |
|---|---|---|
realm | string | The Realm’s slug. |
sparks | list of strings | The new Sparks’ slugs. |
Changes the title, summary or caution of a Realm you made. Give only what changes.
| Name | Type | Required | What |
|---|---|---|---|
realm | string | Yes | The Realm’s name as a slug, for example town-lunch. |
title | string | No | The new title. |
summary | string | No | The new summary: at least 40 characters. |
caution | string | No | The new caution. |
why | string | No | Why, in a few words. It is kept with the change. |
confirmed | boolean | No | true only after the person said yes to this exact action. |
confirm_code | string | No | Over MCP: the code the first call answered with. See “A tool that changes something” above. |
| Field | Type | What |
|---|---|---|
realm | object | A Realm: slug, title, summary, caution, category, hidden, made_by_you and made_by_the_team. |
changed | list of strings | The words that changed. |
Changes the words of a Spark you made. Its place in the Realm and its links stay as they are. Give only what changes.
| Name | Type | Required | What |
|---|---|---|---|
realm | string | Yes | The Realm’s name as a slug, for example town-lunch. |
spark | string | Yes | The Spark’s name as a slug, for example soup-on-fridays. |
title | string | No | |
summary | string | No | At least 40 characters. |
family | string | No | |
kind | string | No | |
mechanism | string | No | |
gift | string | No | |
wound | string | No | |
capacity | string | No | |
strategic_meaning | string | No | |
practice | string | No | |
conditions | list of strings | No | The new list of short sentences (at most 8). |
why | string | No | Why, in a few words. It is kept with the change. |
confirmed | boolean | No | true only after the person said yes to this exact action. |
confirm_code | string | No | Over MCP: the code the first call answered with. See “A tool that changes something” above. |
| Field | Type | What |
|---|---|---|
spark | object | A Spark: slug, title, summary, family, kind, mechanism, gift, wound, capacity, strategic_meaning, practice, conditions, realm, hidden, made_by_you and made_by_the_team. |
changed | list of strings | The words that changed. |
search_updated | boolean | Whether search shows the new words already. |
Hides a Realm you made; its Sparks go with it. Nothing is deleted: restore_realm brings it back. A mage may hide any Realm a person made, and then only a mage brings it back.
| Name | Type | Required | What |
|---|---|---|---|
realm | string | Yes | The Realm’s name as a slug, for example town-lunch. |
why | string | No | Why, in a few words. It is kept with the change. |
confirmed | boolean | No | true only after the person said yes to this exact action. |
confirm_code | string | No | Over MCP: the code the first call answered with. See “A tool that changes something” above. |
| Field | Type | What |
|---|---|---|
realm | object | A Realm: slug, title, summary, caution, category, hidden, made_by_you and made_by_the_team. |
unchanged | boolean | true when it was hidden already. |
Brings back a Realm you hid. One a mage hid only a mage brings back.
| Name | Type | Required | What |
|---|---|---|---|
realm | string | Yes | The Realm’s name as a slug, for example town-lunch. |
why | string | No | Why, in a few words. It is kept with the change. |
confirmed | boolean | No | true only after the person said yes to this exact action. |
confirm_code | string | No | Over MCP: the code the first call answered with. See “A tool that changes something” above. |
| Field | Type | What |
|---|---|---|
realm | object | A Realm: slug, title, summary, caution, category, hidden, made_by_you and made_by_the_team. |
unchanged | boolean | true when it was not hidden. |
Hides a Spark you made. Nothing is deleted and its links are kept: restore_spark brings it back exactly. A mage may hide any Spark a person made, and then only a mage brings it back.
| Name | Type | Required | What |
|---|---|---|---|
realm | string | Yes | The Realm’s name as a slug, for example town-lunch. |
spark | string | Yes | The Spark’s name as a slug, for example soup-on-fridays. |
why | string | No | Why, in a few words. It is kept with the change. |
confirmed | boolean | No | true only after the person said yes to this exact action. |
confirm_code | string | No | Over MCP: the code the first call answered with. See “A tool that changes something” above. |
| Field | Type | What |
|---|---|---|
spark | object | A Spark: slug, title, summary, family, kind, mechanism, gift, wound, capacity, strategic_meaning, practice, conditions, realm, hidden, made_by_you and made_by_the_team. |
unchanged | boolean | true when it was hidden already. |
search_updated | boolean | Whether search shows it already. |
Brings back a Spark you hid. One a mage hid only a mage brings back.
| Name | Type | Required | What |
|---|---|---|---|
realm | string | Yes | The Realm’s name as a slug, for example town-lunch. |
spark | string | Yes | The Spark’s name as a slug, for example soup-on-fridays. |
why | string | No | Why, in a few words. It is kept with the change. |
confirmed | boolean | No | true only after the person said yes to this exact action. |
confirm_code | string | No | Over MCP: the code the first call answered with. See “A tool that changes something” above. |
| Field | Type | What |
|---|---|---|
spark | object | A Spark: slug, title, summary, family, kind, mechanism, gift, wound, capacity, strategic_meaning, practice, conditions, realm, hidden, made_by_you and made_by_the_team. |
unchanged | boolean | true when it was not hidden. |
search_updated | boolean | Whether search shows it already. |
Kiduna keeps one graph of who and what is connected: people, agents, DUNAs, Alliances, and the Sparks on the Realms. These tools read it, place people and Alliances on the Realms, and find who fits whom.
| Tool | What it does | Changes anything |
|---|---|---|
query_platform_graph | Answers a question about the graph: agents, communities, members and how they connect. | No |
my_graph_context | What the graph knows about you: your agents, communities, markets and referral line. | No |
resolve_topics | Finds the Sparks any text is about, without saving anything. | No |
find_or_create_node | Finds what someone asks for on the Realms, and adds it when it is missing. | Yes |
place_me_on_maps | Places you on the Realms from what you care about, so others can find you. | Yes |
my_map_placement | Where you sit on the Realms: your Sparks and their Realms. | No |
place_alliance_on_maps | Places an Alliance on the Realms from its purpose, so people can be matched to it. | Yes |
alliances_for_ally | Alliances that fit you, through the Sparks you share. | No |
allies_for_alliance | People who fit an Alliance, through the Sparks they share with it. | No |
collaboration_matches | Alliances and people who fit a project you describe. | No |
Answers a question about the graph: agents, communities, members and how they connect.
| Name | Type | Required | What |
|---|---|---|---|
query | string | Yes | Natural language question about platform data. |
Text, as the rules at the top say.
What the graph knows about you: your agents, communities, markets and referral line.
None.
Text, as the rules at the top say.
Finds the Sparks any text is about, without saving anything.
| Name | Type | Required | What |
|---|---|---|---|
text | string | Yes | What to look up, e.g. "Solana smart contracts and AI agents" |
limit | integer | No | How many nodes to return (default 8) Default 8. |
Text, as the rules at the top say.
Finds what someone asks for on the Realms, and adds it when it is missing.
| Name | Type | Required | What |
|---|---|---|---|
request | string | Yes | What the user asked for, in their words. |
Text, as the rules at the top say.
Places you on the Realms from what you care about, so others can find you.
| Name | Type | Required | What |
|---|---|---|---|
text | string | Yes | The user's own words about their interests, skills or goals. |
limit | integer | No | How many nodes to link (default 6) Default 6. |
Text, as the rules at the top say.
Where you sit on the Realms: your Sparks and their Realms.
None.
Text, as the rules at the top say.
Places an Alliance on the Realms from its purpose, so people can be matched to it.
| Name | Type | Required | What |
|---|---|---|---|
realm_id | string | Yes | The alliance (realm) id. |
purpose | string | Yes | The alliance's purpose or mission statement. |
limit | integer | No | How many nodes to link (default 6) Default 6. |
Text, as the rules at the top say.
Alliances that fit you, through the Sparks you share.
| Name | Type | Required | What |
|---|---|---|---|
limit | integer | No | How many alliances to return (default 10) Default 10. |
Text, as the rules at the top say.
People who fit an Alliance, through the Sparks they share with it.
| Name | Type | Required | What |
|---|---|---|---|
realm_id | string | Yes | The alliance (realm) id. |
limit | integer | No | How many people to return (default 10) Default 10. |
Text, as the rules at the top say.
Alliances and people who fit a project you describe.
| Name | Type | Required | What |
|---|---|---|---|
project | string | Yes | The current project, outcome, or collaboration need. |
limit | integer | No | Maximum alliances and people to return (default 5 each) Default 5. |
Text, as the rules at the top say.
An Alliance is a group in a DUNA, such as a local chapter, with its own members, roles, voting policy and proposals. The backend checks each person’s role in the Alliance on every call.
| Tool | What it does | Changes anything |
|---|---|---|
list_my_alliances | Your Alliances: where you are a member or the maker. | No |
discover_alliances | Finds Alliances by words, type or visibility. | No |
get_alliance | One Alliance: its policy, its DUNA, its Guides and your place in it. | No |
get_alliance_events | An Alliance’s record of what happened. | No |
list_alliance_creation_dunas | The DUNAs where you may make an Alliance. | No |
create_alliance | Makes an Alliance in a DUNA, with its voting policy. | Yes |
update_alliance | Changes an Alliance’s name, words or privacy. | Yes |
update_alliance_policy | Changes who may propose and vote in an Alliance, and how long votes stay open. | Yes |
join_alliance | Joins a public Alliance. | Yes |
list_alliance_members | An Alliance’s members and their roles. | No |
update_alliance_member_role | Changes a member’s role in an Alliance. | Yes |
remove_alliance_member | Removes a member from an Alliance. | Yes |
search_alliance_invitees | Finds people to invite, by name, handle or email. | No |
create_alliance_invitation | Invites a person to an Alliance, with a role and an end date. | Yes |
list_alliance_invitations | An Alliance’s invitations and where each stands. | No |
list_pending_alliance_invitations | The Alliance invitations waiting for you. | No |
get_alliance_invitation | Shows an Alliance invitation before you accept it. | No |
accept_alliance_invitation | Accepts an Alliance invitation. | Yes |
resend_alliance_invitation | Sends a waiting invitation again. | Yes |
revoke_alliance_invitation | Takes back a waiting invitation. | Yes |
list_alliance_proposals | An Alliance’s proposals. | No |
get_alliance_proposal | One Alliance proposal and where its vote stands. | No |
get_alliance_proposal_history | What happened to an Alliance proposal, step by step. | No |
create_alliance_proposal | Makes an Alliance proposal: a general one, a member to add, a role to change, a new threshold or a transfer. | Yes |
vote_alliance_proposal | Votes yes, no or abstain on an Alliance proposal. | Yes |
cancel_alliance_proposal | Cancels an open Alliance proposal. | Yes |
Your Alliances: where you are a member or the maker.
| Name | Type | Required | What |
|---|---|---|---|
query_json | string | Yes |
Text, as the rules at the top say.
Finds Alliances by words, type or visibility.
| Name | Type | Required | What |
|---|---|---|---|
query_json | string | Yes |
Text, as the rules at the top say.
One Alliance: its policy, its DUNA, its Guides and your place in it.
| Name | Type | Required | What |
|---|---|---|---|
alliance_id | string | Yes |
Text, as the rules at the top say.
An Alliance’s record of what happened.
| Name | Type | Required | What |
|---|---|---|---|
alliance_id | string | Yes |
Text, as the rules at the top say.
The DUNAs where you may make an Alliance.
None.
Text, as the rules at the top say.
Makes an Alliance in a DUNA, with its voting policy.
| Name | Type | Required | What |
|---|---|---|---|
payload_json | string | Yes |
Text, as the rules at the top say.
Changes an Alliance’s name, words or privacy.
| Name | Type | Required | What |
|---|---|---|---|
alliance_id | string | Yes | |
payload_json | string | Yes |
Text, as the rules at the top say.
Changes who may propose and vote in an Alliance, and how long votes stay open.
| Name | Type | Required | What |
|---|---|---|---|
alliance_id | string | Yes | |
payload_json | string | Yes |
Text, as the rules at the top say.
Joins a public Alliance.
| Name | Type | Required | What |
|---|---|---|---|
alliance_id | string | Yes |
Text, as the rules at the top say.
An Alliance’s members and their roles.
| Name | Type | Required | What |
|---|---|---|---|
alliance_id | string | Yes |
Text, as the rules at the top say.
Changes a member’s role in an Alliance.
| Name | Type | Required | What |
|---|---|---|---|
alliance_id | string | Yes | |
member_id | string | Yes | |
payload_json | string | Yes |
Text, as the rules at the top say.
Removes a member from an Alliance.
| Name | Type | Required | What |
|---|---|---|---|
alliance_id | string | Yes | |
member_id | string | Yes |
Text, as the rules at the top say.
Finds people to invite, by name, handle or email.
| Name | Type | Required | What |
|---|---|---|---|
query_json | string | Yes |
Text, as the rules at the top say.
Invites a person to an Alliance, with a role and an end date.
| Name | Type | Required | What |
|---|---|---|---|
alliance_id | string | Yes | |
payload_json | string | Yes |
Text, as the rules at the top say.
An Alliance’s invitations and where each stands.
| Name | Type | Required | What |
|---|---|---|---|
alliance_id | string | Yes |
Text, as the rules at the top say.
The Alliance invitations waiting for you.
None.
Text, as the rules at the top say.
Shows an Alliance invitation before you accept it.
| Name | Type | Required | What |
|---|---|---|---|
code | string | Yes |
Text, as the rules at the top say.
Accepts an Alliance invitation.
| Name | Type | Required | What |
|---|---|---|---|
code | string | Yes |
Text, as the rules at the top say.
Sends a waiting invitation again.
| Name | Type | Required | What |
|---|---|---|---|
invitation_id | string | Yes |
Text, as the rules at the top say.
Takes back a waiting invitation.
| Name | Type | Required | What |
|---|---|---|---|
invitation_id | string | Yes |
Text, as the rules at the top say.
An Alliance’s proposals.
| Name | Type | Required | What |
|---|---|---|---|
alliance_id | string | Yes |
Text, as the rules at the top say.
One Alliance proposal and where its vote stands.
| Name | Type | Required | What |
|---|---|---|---|
proposal_id | string | Yes |
Text, as the rules at the top say.
What happened to an Alliance proposal, step by step.
| Name | Type | Required | What |
|---|---|---|---|
proposal_id | string | Yes |
Text, as the rules at the top say.
Makes an Alliance proposal: a general one, a member to add, a role to change, a new threshold or a transfer.
| Name | Type | Required | What |
|---|---|---|---|
alliance_id | string | Yes | |
payload_json | string | Yes |
Text, as the rules at the top say.
Votes yes, no or abstain on an Alliance proposal.
| Name | Type | Required | What |
|---|---|---|---|
proposal_id | string | Yes | |
payload_json | string | Yes |
Text, as the rules at the top say.
Cancels an open Alliance proposal.
| Name | Type | Required | What |
|---|---|---|---|
proposal_id | string | Yes |
Text, as the rules at the top say.
A chapter is a DUNA’s Alliance for one area. These tools check what is there already, propose a new chapter and its area, and keep a person’s wish to hear when something fits.
| Tool | What it does | Changes anything |
|---|---|---|
check_chapter_reuse | The chapters and chapter proposals for a place, before you advise on one. | No |
find_other_ways | Live chapters and open Activities nearby, before saying nothing fits. | No |
propose_chapter_area | Proposes the area of a new chapter and shows why: people, demand and chapters there. | With founders_agree |
propose_alliance | Asks for a new Alliance, such as a chapter, to be prepared as a proposal. | Yes |
get_open_chapter_split | Your open chapter split: the new and remaining areas, and your choice so far. | No |
send_founders_meeting | Sends the invite to your chapter’s founders’ meeting. | Yes, after a yes |
record_chapter_decline | Records a person’s no to starting a chapter. | Yes |
record_watch | Keeps a person’s wish to be told when something fits in their county or town. | Yes |
record_fit_watch | Keeps a person’s “tell me when something fits” in the Guide’s DUNA. | Yes |
The chapters and chapter proposals for a place, before you advise on one.
| Name | Type | Required | What |
|---|---|---|---|
county | string | No | |
state | string | No | |
city | string | No | |
duna | string | No |
Text, as the rules at the top say.
Live chapters and open Activities nearby, before saying nothing fits.
| Name | Type | Required | What |
|---|---|---|---|
county | string | No | |
state | string | No | |
city | string | No | |
wish | string | No |
Text, as the rules at the top say.
Proposes the area of a new chapter and shows why: people, demand and chapters there.
| Name | Type | Required | What |
|---|---|---|---|
area | list of strings | Yes | The whole places of the area, each a county or town with its state, e.g. ["Jefferson County, WV"] or ["Jefferson County, WV", "Berkeley County, WV"]; place ids such as "county:54037" work too. |
founders | list of strings | No | Where the founders are, at town or county level, e.g. ["Shepherdstown, WV"]. |
customers | list of strings | No | Where the first customers are, if the founders named any, e.g. ["Charles Town, WV"]. |
big_city | boolean | No | True when the whole places around the founders are far bigger than one partner kitchen's delivery routes can serve on time. |
founders_agree | boolean | No | True only after the founders said they agree to this exact area. |
Text, as the rules at the top say.
Asks for a new Alliance, such as a chapter, to be prepared as a proposal.
| Name | Type | Required | What |
|---|---|---|---|
county | string | No | The county, e.g. "Jefferson" |
state | string | No | The two-letter US state, e.g. "WV" |
town | string | No | The town, e.g. "Shepherdstown" (optional) |
duna | string | No | The DUNA id, e.g. "example-duna" (a Guide or Scout always uses its own DUNA) |
kind | string | No | "chapter" (default), "interest", "skill" or "task" Default chapter. |
topic | string | No | For kinds other than chapter, what it is about in a few words. |
Text, as the rules at the top say.
Your open chapter split: the new and remaining areas, and your choice so far.
| Name | Type | Required | What |
|---|---|---|---|
chapter_id | string | Yes |
Text, as the rules at the top say.
Sends the invite to your chapter’s founders’ meeting.
| Name | Type | Required | What |
|---|---|---|---|
confirmed | string | No |
Text, as the rules at the top say.
Records a person’s no to starting a chapter.
| Name | Type | Required | What |
|---|---|---|---|
county | string | Yes | |
state | string | Yes | |
city | string | No |
Text, as the rules at the top say.
Keeps a person’s wish to be told when something fits in their county or town.
| Name | Type | Required | What |
|---|---|---|---|
wish | string | Yes | |
state | string | Yes | |
until | string | Yes | |
consent | boolean | No | |
county | string | No | |
city | string | No | |
duna | string | No |
Text, as the rules at the top say.
Keeps a person’s “tell me when something fits” in the Guide’s DUNA.
| Name | Type | Required | What |
|---|---|---|---|
wish | string | Yes | |
county | string | Yes | |
state | string | Yes | |
until | string | Yes | |
city | string | No |
Text, as the rules at the top say.
An Initiative is a DUNA’s plan of work, made of Activities. Ki makes a new one with the person: it researches, asks a few questions, and shows a draft before anything is made. These tools still call an Initiative a Vision.
| Tool | What it does | Changes anything |
|---|---|---|
start_vision_creation | Starts making a new Initiative from a person’s wish. | Yes |
get_vision_creation | Where the making of an Initiative stands: progress, questions and the draft. | No |
answer_creation_questions | Gives the person’s answers to Ki’s questions about the Initiative being made. | Yes |
change_vision_draft | Changes the draft of the Initiative being made, as the person asks. | Yes |
create_vision | Makes the Initiative from the draft the person saw. | Yes |
search_vision_knowledge | Searches what the person’s current Initiative knows: its guide, research and sources. | No |
list_my_vision_tasks | Your tasks in Initiatives, as doer, checker or owner. | No |
get_vision_task | One task: its done rule, the proof sent, and what the checker decided. | No |
accept_vision_task | Takes a task in an Initiative for the person. | Yes |
Starts making a new Initiative from a person’s wish.
| Name | Type | Required | What |
|---|---|---|---|
wish | string | Yes | The wish in the person's own words, as one sentence. |
scope | string | No | Global, online, or local, chosen by the person before research. |
place | string | No | The place named by the person, required only for local scope. |
start_another | boolean | No | True only when the person explicitly asks to start another creation. |
Text, as the rules at the top say.
Where the making of an Initiative stands: progress, questions and the draft.
| Name | Type | Required | What |
|---|---|---|---|
creation_id | string | No | Only when the person has more than one creation (the vc_… id) |
Text, as the rules at the top say.
Gives the person’s answers to Ki’s questions about the Initiative being made.
| Name | Type | Required | What |
|---|---|---|---|
answers | string | Yes | The person's answers. |
creation_id | string | No | Only when the person has more than one creation (the vc_… id) |
Text, as the rules at the top say.
Changes the draft of the Initiative being made, as the person asks.
| Name | Type | Required | What |
|---|---|---|---|
request | string | Yes | What the person asked, in their words. |
creation_id | string | No | Only when the person has more than one creation (the vc_… id) |
Text, as the rules at the top say.
Makes the Initiative from the draft the person saw.
| Name | Type | Required | What |
|---|---|---|---|
creation_id | string | No | Only when the person has more than one creation (the vc_… id) |
Text, as the rules at the top say.
Searches what the person’s current Initiative knows: its guide, research and sources.
| Name | Type | Required | What |
|---|---|---|---|
query | string | Yes | The question in plain words. |
k | integer | No | How many passages, 1 to 8 (default 5). Default 5. |
Text, as the rules at the top say.
Your tasks in Initiatives, as doer, checker or owner.
None.
Text, as the rules at the top say.
One task: its done rule, the proof sent, and what the checker decided.
| Name | Type | Required | What |
|---|---|---|---|
task_id | string | Yes |
Text, as the rules at the top say.
Takes a task in an Initiative for the person.
| Name | Type | Required | What |
|---|---|---|---|
task_id | string | Yes | |
place | string | No | |
month | string | No | |
group | string | No |
Text, as the rules at the top say.
An Activity is one piece of an Initiative that a person takes on, step by step, with proof for each step. An Action is one thing on a person’s list, shown as a card in their Action Center.
| Tool | What it does | Changes anything |
|---|---|---|
find_work_templates | Searches the DUNAs’ library of work: Initiatives, Activities, Actions and resources. | No |
read_work_template | One work template: its Activities, resources and what it needs. | No |
propose_work | Asks for a chapter, Initiative, Activity or Action to be proposed for named people and a place. | Yes |
activity_next_steps | The next steps of an Activity the person took. Ki does its own steps and adds their proof. | Yes |
record_step_proof | Adds what the person gave for one step to their record. | Yes |
my_activity_record | The person’s record for an Activity: each step’s proof and each check line. | No |
send_activity_for_check | Sends an Activity’s proof for its check. | Yes, after a yes |
list_my_actions | Your Actions across your DUNAs and Activities. | No |
work_on_my_action | One of your Actions and what to do for it now, as its card’s button asks. | No |
put_on_my_card | Puts Ki’s work for an Action on that Action’s card. | Yes |
finish_my_action | Marks one of your Actions done, with what happened. | Yes |
ask_people_to_help | Asks the people an organizer chose to help with one piece of work. | Yes |
correct_my_attendance | Asks to correct whether you were at a meeting. | Yes |
decide_attendance_correction | An organizer’s answer to a member’s attendance correction. | Yes |
Searches the DUNAs’ library of work: Initiatives, Activities, Actions and resources.
| Name | Type | Required | What |
|---|---|---|---|
query | string | No | |
kind | string | No | |
parent_id | string | No | |
offset | integer | No | |
limit | integer | No | Default 20. |
duna | string | No |
Text, as the rules at the top say.
One work template: its Activities, resources and what it needs.
| Name | Type | Required | What |
|---|---|---|---|
template_id | string | Yes | |
duna | string | No |
Text, as the rules at the top say.
Asks for a chapter, Initiative, Activity or Action to be proposed for named people and a place.
| Name | Type | Required | What |
|---|---|---|---|
kind | string | Yes | |
title | string | Yes | |
purpose | string | Yes | |
people | string | Yes | |
county | string | No | |
state | string | No | |
city | string | No | |
duna | string | No | |
vision_id | string | No | |
initiative_id | string | No | |
activity_id | string | No | |
done_when | string | No | |
chapter_area | string | No | |
template_id | string | No | |
chapter_id | string | No | |
customer | string | No | |
order | string | No |
Text, as the rules at the top say.
The next steps of an Activity the person took. Ki does its own steps and adds their proof.
| Name | Type | Required | What |
|---|---|---|---|
activity | string | No | |
step | integer | No |
Text, as the rules at the top say.
Adds what the person gave for one step to their record.
| Name | Type | Required | What |
|---|---|---|---|
step | integer | Yes | |
what | string | Yes | |
kind | string | No | |
links | string | No | |
files | string | No | |
activity | string | No | |
from_page | string | No |
Text, as the rules at the top say.
The person’s record for an Activity: each step’s proof and each check line.
| Name | Type | Required | What |
|---|---|---|---|
activity | string | No |
Text, as the rules at the top say.
Sends an Activity’s proof for its check.
| Name | Type | Required | What |
|---|---|---|---|
activity | string | No | |
confirmed | string | No |
Text, as the rules at the top say.
Your Actions across your DUNAs and Activities.
| Name | Type | Required | What |
|---|---|---|---|
search | string | No |
Text, as the rules at the top say.
One of your Actions and what to do for it now, as its card’s button asks.
| Name | Type | Required | What |
|---|---|---|---|
title | string | No |
Text, as the rules at the top say.
Puts Ki’s work for an Action on that Action’s card.
| Name | Type | Required | What |
|---|---|---|---|
action_id | string | Yes | |
text | string | Yes |
Text, as the rules at the top say.
Marks one of your Actions done, with what happened.
| Name | Type | Required | What |
|---|---|---|---|
action_id | string | Yes | |
what_happened | string | Yes |
Text, as the rules at the top say.
Asks the people an organizer chose to help with one piece of work.
| Name | Type | Required | What |
|---|---|---|---|
member_ids | list of strings | Yes | |
role | string | Yes |
Text, as the rules at the top say.
Asks to correct whether you were at a meeting.
| Name | Type | Required | What |
|---|---|---|---|
attended | string | Yes | |
meeting | string | No |
Text, as the rules at the top say.
An organizer’s answer to a member’s attendance correction.
None.
Text, as the rules at the top say.
Invitations to a DUNA. Only an active member of a DUNA, not a Guest, makes and sees its invitations.
| Tool | What it does | Changes anything |
|---|---|---|
create_duna_invitation | Makes an invitation to a DUNA you are a member of. | Yes |
list_duna_invitations | Your invitations in a DUNA and where each stands. | No |
get_duna_invitation | Shows a DUNA invitation before it is accepted. | No |
accept_duna_invitation | Accepts a DUNA invitation. | Yes |
revoke_duna_invitation | Takes back one of your DUNA invitations. | Yes |
Makes an invitation to a DUNA you are a member of.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes | |
payload_json | string | Yes |
Text, as the rules at the top say.
Your invitations in a DUNA and where each stands.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes |
Text, as the rules at the top say.
Shows a DUNA invitation before it is accepted.
| Name | Type | Required | What |
|---|---|---|---|
code | string | Yes |
Text, as the rules at the top say.
Accepts a DUNA invitation.
| Name | Type | Required | What |
|---|---|---|---|
code | string | Yes |
Text, as the rules at the top say.
Takes back one of your DUNA invitations.
| Name | Type | Required | What |
|---|---|---|---|
code | string | Yes |
Text, as the rules at the top say.
A member asks a DUNA’s Mages for an Action the DUNA does not have yet, or reports a problem. The Mages and the Catalyst see what waits and decide; who asked is never shown to them.
| Tool | What it does | Changes anything |
|---|---|---|
create_action_request | Asks a DUNA’s Mages for an Action the DUNA does not have yet. | Yes, after a yes |
create_support_case | Reports a problem to a DUNA’s Mages. | Yes |
get_my_requests | Your requests and reports, and what the Mages said. | No |
list_duna_requests | For a DUNA’s Mages and Catalyst: the requests and reports that wait. | No |
update_duna_request | For a DUNA’s Mages and Catalyst: decides one request or report. | Yes |
Asks a DUNA’s Mages for an Action the DUNA does not have yet.
| Name | Type | Required | What |
|---|---|---|---|
goal | string | Yes | |
missing | string | Yes | |
duna_id | string | No | |
confirmed | string | No |
Text, as the rules at the top say.
Reports a problem to a DUNA’s Mages.
| Name | Type | Required | What |
|---|---|---|---|
summary | string | Yes | |
details | string | No | |
duna_id | string | No | |
share_with_mages | string | No |
Text, as the rules at the top say.
Your requests and reports, and what the Mages said.
None.
Text, as the rules at the top say.
For a DUNA’s Mages and Catalyst: the requests and reports that wait.
| Name | Type | Required | What |
|---|---|---|---|
duna_id | string | Yes |
Text, as the rules at the top say.
For a DUNA’s Mages and Catalyst: decides one request or report.
| Name | Type | Required | What |
|---|---|---|---|
request_id | string | Yes | |
state | string | Yes | |
note | string | No |
Text, as the rules at the top say.
Your Envoy is your own agent: it knows what you tell it and speaks for you. These tools change it, set how Ki may reach you, and reach other people.
| Tool | What it does | Changes anything |
|---|---|---|
update_my_envoy | Changes your own Envoy as you ask: what it knows, how it sounds, its interests. | Yes, after a yes |
update_what_i_bring | Keeps what you can bring, such as time, a skill or a venue, on your Envoy. | Yes, after a yes |
record_customer_organisation | Records your employer or customer in a DUNA, once you agree. | Yes, after a yes |
get_my_onboarding_choices | What you chose when you joined: your decks and the change you want. | No |
get_my_attention | How Ki and the Guides may reach you without being asked. | No |
set_my_attention | Changes how Ki and the Guides may reach you: quiet, a check-in time or a digest. | Yes |
set_my_findability | Whether Ki may suggest you to other members for introductions. | Yes |
allow_envoy_to_read_gmail_label | Lets your Envoy read one Gmail label of yours, once a day for 30 days, to learn about you. | Yes, after a yes |
stop_envoy_reading | Stops your Envoy reading your messages, at once. | Yes |
request_envoy_availability | Asks another person’s Envoy when they are free. | Yes |
get_envoy_availability_request | Where your availability request stands, with the free times approved. | No |
message_member | Sends one Kiduna member a message from you. | Yes, after a yes |
list_connections | The people you are connected with, and the accounts you connected. | No |
save_connection | Starts connecting an account. You finish it in the app. | Yes |
delete_connection | Removes a connected account. | Yes, after a yes |
Changes your own Envoy as you ask: what it knows, how it sounds, its interests.
| Name | Type | Required | What |
|---|---|---|---|
part | string | Yes | |
words | string | Yes | |
facet_list | string | No | |
confirmed | string | No |
Text, as the rules at the top say.
Keeps what you can bring, such as time, a skill or a venue, on your Envoy.
| Name | Type | Required | What |
|---|---|---|---|
what | string | Yes | |
words | string | No | |
amount | string | No | |
unit | string | No | |
where | string | No | |
when | string | No | |
conditions | string | No | |
as_mask | string | No | |
for_organisation | string | No | |
duna | string | No | |
matchable | string | No | |
money | string | No | |
confirmed | string | No |
Text, as the rules at the top say.
Records your employer or customer in a DUNA, once you agree.
| Name | Type | Required | What |
|---|---|---|---|
name | string | Yes | |
duna | string | No | |
kind | string | No | Default employer. |
relationship | string | No | Default prospective customer. |
confirmed | string | No |
Text, as the rules at the top say.
What you chose when you joined: your decks and the change you want.
None.
Text, as the rules at the top say.
How Ki and the Guides may reach you without being asked.
None.
Text, as the rules at the top say.
Changes how Ki and the Guides may reach you: quiet, a check-in time or a digest.
| Name | Type | Required | What |
|---|---|---|---|
mode | string | Yes | |
days | integer | No | |
hour | integer | No | Default -1. |
weekday | integer | No | Default -1. |
Text, as the rules at the top say.
Whether Ki may suggest you to other members for introductions.
| Name | Type | Required | What |
|---|---|---|---|
findable | boolean | Yes |
Text, as the rules at the top say.
Lets your Envoy read one Gmail label of yours, once a day for 30 days, to learn about you.
| Name | Type | Required | What |
|---|---|---|---|
label | string | Yes | |
confirmed | string | No |
Text, as the rules at the top say.
Stops your Envoy reading your messages, at once.
None.
Text, as the rules at the top say.
Asks another person’s Envoy when they are free.
| Name | Type | Required | What |
|---|---|---|---|
recipient | string | Yes | |
start | string | Yes | |
end | string | Yes | |
timezone | string | Yes | |
duration_minutes | integer | No | Default 30. |
Text, as the rules at the top say.
Where your availability request stands, with the free times approved.
| Name | Type | Required | What |
|---|---|---|---|
request_id | string | Yes |
Text, as the rules at the top say.
Sends one Kiduna member a message from you.
| Name | Type | Required | What |
|---|---|---|---|
person | string | Yes | |
words | string | Yes | |
channel | string | No | Default kiduna. |
subject | string | No | |
confirmed | boolean | No | |
alliance | string | No |
Text, as the rules at the top say.
The people you are connected with, and the accounts you connected.
None.
Text, as the rules at the top say.
Starts connecting an account. You finish it in the app.
| Name | Type | Required | What |
|---|---|---|---|
tool_name | string | Yes |
Text, as the rules at the top say.
Removes a connected account.
| Name | Type | Required | What |
|---|---|---|---|
connection_id | string | Yes | |
confirmed | string | No |
Text, as the rules at the top say.
What Ki learned about you, and how to put it right: undo it, correct a fact, or forget one. Only your own. A key limited to some DUNAs reads none of it: none of it is a DUNA’s. The same list is on the HTTP API: see GET /v1/learned.
| Tool | What it does | Changes anything |
|---|---|---|
list_learned_about_me | What Ki learned about you: facts, Scouts’ notes, manner and interests. | No |
undo_learned_about_me | Undoes one thing Ki learned about you. | Yes, after a yes |
list_my_remembered_facts | The facts your Envoy keeps about you, each with its id. | No |
update_my_remembered_fact | Corrects one of those facts in your own words, everywhere it was used. | Yes |
delete_my_remembered_fact | Forgets one of those facts, everywhere it was used. | Yes, after a yes |
keep_facts_from_my_messages | Keeps the facts your Envoy proposed from your own messages. | Yes, after a yes |
confirm_interest | Confirms an interest Ki worked out about you, or removes it. | Yes |
What Ki learned about you, newest first: facts about you, what Scouts noted about you in your Alliances, changes to how your Envoy’s replies read, and interests Ki found. Each item says where it came from, whether it is in use or only noticed, and whether it can be undone.
| Name | Type | Required | What |
|---|---|---|---|
kind | string | No | fact, scout_note, manner or interest. |
status | string | No | in_use, noticed_only or undone. Without it: in use and noticed only. |
since | string | No | A time like 2026-12-06T09:30:00Z: items learned or noticed again since then. |
until | string | No | A time: items learned or noticed again until then. |
words | string | No | Only items whose words, source or reason hold these words. |
limit | integer | No | 1 to 50 items. Default 20. |
cursor | string | No | The next a page gave, for the page after it. |
The same JSON as GET /v1/learned: learned (the items), next, counts, learning and note.
Every field: GET /v1/learned.
Undoes one item of your list: a fact is taken out everywhere, a Scout’s note is taken out of its notes, a manner change comes off your Envoy, and something only noticed is closed so it is not suggested again for 30 days. Interests have no Undo here.
| Name | Type | Required | What |
|---|---|---|---|
item_id | string | Yes | The id of one item from list_learned_about_me. |
confirmed | boolean | No | true only after the person said yes to this exact action. |
confirm_code | string | No | Over MCP: the code the first call answered with. See “A tool that changes something” above. |
The same JSON as POST /v1/learned/{item}/undo: undone (the item now), already and message. An item undone before answers already: true and needs no code.
Every field: POST /v1/learned/{item}/undo.
The facts your Envoy keeps about you, each with its id.
None.
Text, as the rules at the top say.
Corrects one of those facts in your own words, everywhere it was used.
| Name | Type | Required | What |
|---|---|---|---|
fact_id | string | Yes | |
new_words | string | Yes |
Text, as the rules at the top say.
Forgets one of those facts, everywhere it was used.
| Name | Type | Required | What |
|---|---|---|---|
fact_id | string | Yes | |
confirmed | string | No |
Text, as the rules at the top say.
Keeps the facts your Envoy proposed from your own messages.
| Name | Type | Required | What |
|---|---|---|---|
confirmed | string | No |
Text, as the rules at the top say.
Confirms an interest Ki worked out about you, or removes it.
| Name | Type | Required | What |
|---|---|---|---|
node_slug | string | Yes | The interest's id, as shown by my_map_placement. |
correct | boolean | No | True to confirm it, False to say it is wrong and delete it. Default true. |
Text, as the rules at the top say.
Your own logs: each piece of work Ki and your agents did for you. Only your own. The same list is on the HTTP API: see GET /v1/logs.
| Tool | What it does | Changes anything |
|---|---|---|
list_my_logs | Your own logs, newest first, with filters. | No |
Your own logs, newest first: what started each piece of work, which agent did it, the tools and skills it used, each Decision API question with the answer it chose, how long it took and how it ended. A log never shows what a model was sent or what a tool brought back. Ki keeps logs 30 days; without times you get the last 7 days. A key limited to some DUNAs reads only the work done in them.
| Name | Type | Required | What |
|---|---|---|---|
since | string | No | A time like 2026-12-06T09:30:00Z. |
until | string | No | A time like 2026-12-06T18:00:00Z. |
kind | string | No | chat (a message you sent), tap (your tap on a card), event (work on something that happened about you) or wake (work Ki did for you on its own). |
agent | string | No | ki, guide, scout, envoy or actor, or words of an agent’s name. |
duna_id | string | No | Only work done in this DUNA. |
result | string | No | answered, done, failed or running. |
tool | string | No | Only work that used this tool, for example search_knowledge. |
words | string | No | Only logs whose message, answer, agent, tools, skills or questions hold these words. |
limit | integer | No | 1 to 50 logs. Default 20. |
cursor | string | No | The next a page gave, for the page after it. |
The same JSON as GET /v1/logs: logs, next, since, until, kept_days and note.
Every field: GET /v1/logs.
A Kinship Code links a new member to the member who shared it: their referral line. These tools ask for a code, share yours, use one, and read your line and rewards.
| Tool | What it does | Changes anything |
|---|---|---|
get_my_kinship_code_status | Your Kinship Code picture: your code, your requests, and who waits for your answer. | No |
get_my_kinship_code_share | Your own Kinship Code and its share link. It sends nothing. | No |
update_my_kinship_code_sharing | How your Envoy shares your code when asked: ask you first, share at once, or never. | Yes |
find_kinship_code_sharers | Picks one member who can share a code with you. It sends nothing. | No |
request_kinship_code | Asks one member’s Envoy for their Kinship Code. | Yes |
get_kinship_code_request | Where one of your code requests stands. | No |
cancel_kinship_code_request | Cancels a code request that still waits. | Yes |
respond_to_kinship_code_request | Your answer to someone asking for your code: share or decline. | Yes |
activate_kinship_code | Uses a Kinship Code on your account, once and for good. | Yes |
my_lineage | Your referral line, with its tiers. | No |
my_referrals | The people who joined with your Kinship Code. | No |
my_rewards | Your lineage rewards and whether they are claimed. | No |
my_membership | Your membership: its tier and whether it is active. | No |
Your Kinship Code picture: your code, your requests, and who waits for your answer.
None.
Text, as the rules at the top say.
Your own Kinship Code and its share link. It sends nothing.
None.
Text, as the rules at the top say.
How your Envoy shares your code when asked: ask you first, share at once, or never.
| Name | Type | Required | What |
|---|---|---|---|
mode | string | Yes |
Text, as the rules at the top say.
Picks one member who can share a code with you. It sends nothing.
| Name | Type | Required | What |
|---|---|---|---|
person | string | No |
Text, as the rules at the top say.
Asks one member’s Envoy for their Kinship Code.
| Name | Type | Required | What |
|---|---|---|---|
recipient_id | string | Yes | |
source | string | No | Default named. |
Text, as the rules at the top say.
Where one of your code requests stands.
| Name | Type | Required | What |
|---|---|---|---|
request_id | string | Yes |
Text, as the rules at the top say.
Cancels a code request that still waits.
| Name | Type | Required | What |
|---|---|---|---|
request_id | string | Yes |
Text, as the rules at the top say.
Your answer to someone asking for your code: share or decline.
| Name | Type | Required | What |
|---|---|---|---|
request_id | string | Yes | |
decision | string | Yes |
Text, as the rules at the top say.
Uses a Kinship Code on your account, once and for good.
| Name | Type | Required | What |
|---|---|---|---|
request_id | string | No | |
code | string | No |
Text, as the rules at the top say.
Your referral line, with its tiers.
None.
Text, as the rules at the top say.
The people who joined with your Kinship Code.
None.
Text, as the rules at the top say.
Your lineage rewards and whether they are claimed.
None.
Text, as the rules at the top say.
Your membership: its tier and whether it is active.
None.
Text, as the rules at the top say.
The agents you own, and Kiduna’s System Actors, which take on one job each. A DUNA’s Guide and Scout are changed with Guides & Scouts, never here.
| Tool | What it does | Changes anything |
|---|---|---|
list_agents | The agents you own. | No |
update_agent | Changes one of your agents: its name, tone, prompt, description or tagline. | Yes |
delete_agent | Deletes one of your agents. | Yes, after a yes |
create_worker | Makes a worker agent under one of your agents. | Yes |
list_agent_templates | The specialist agents that can be made on demand. | No |
spawn_specialist | Makes a specialist agent from a template, for one purpose. | Yes |
list_system_actors | Kiduna’s System Actors and what each one is for. | No |
start_actor_job | Hands one job to a System Actor and gives back its result. | Yes |
The agents you own.
None.
Text, as the rules at the top say.
Changes one of your agents: its name, tone, prompt, description or tagline.
| Name | Type | Required | What |
|---|---|---|---|
agent_id | string | Yes | |
name | string | No | |
tone | string | No | |
system_prompt | string | No | |
description | string | No | |
tagline | string | No |
Text, as the rules at the top say.
Deletes one of your agents.
| Name | Type | Required | What |
|---|---|---|---|
agent_id | string | Yes | |
confirmed | string | No |
Text, as the rules at the top say.
Makes a worker agent under one of your agents.
| Name | Type | Required | What |
|---|---|---|---|
name | string | Yes | |
parent_id | string | Yes | |
description | string | No | |
tools | string | No |
Text, as the rules at the top say.
The specialist agents that can be made on demand.
None.
Text, as the rules at the top say.
Makes a specialist agent from a template, for one purpose.
| Name | Type | Required | What |
|---|---|---|---|
template | string | Yes | Template key, e.g. "research_analysis" |
purpose | string | No | What this instance is for, in one or two sentences. |
name | string | No | Optional custom name. |
parent_id | string | No | Presence the specialist reports to (defaults to the current one) |
Text, as the rules at the top say.
Kiduna’s System Actors and what each one is for.
None.
Text, as the rules at the top say.
Hands one job to a System Actor and gives back its result.
| Name | Type | Required | What |
|---|---|---|---|
actor | string | No | A published System Actor's ID or display name (use list_system_actors to discover current choices), a published Cloud Actor kind, or a DUNA profile's name such as "Health Nut" |
task | string | No | One concise sentence, at most 500 characters, with the place and period when they matter. |
place | string | No | The town and state the job is about, e.g. "Shepherdstown, WV" |
send_to | string | No | Only for the writer, and only when the person asked to send it: the email address the draft goes to. Sending always asks the person first. |
action | string | No | The person's Action button message, or the Action's title, on the Activity open in this chat. |
add_to_calendar | boolean | No | Only for the coordinator, and only when the person asked to add it: its first proposed time is added to their calendar after their yes (it always asks first). |
details | string | No | Only for Kimega: the facts from this conversation Omega should work from (the options, results, notes, decisions and disagreements the person shared), at most 2,000 characters. |
Text, as the rules at the top say.
Your automations: “when this happens, do that”. The Kiduna app and these tools call them skills. They are yours alone; the skills Kiduna’s agents follow are in the Skills directory.
| Tool | What it does | Changes anything |
|---|---|---|
list_skills | Your automations. | No |
create_skill | Makes an automation: when this happens, do that. | Yes |
update_skill | Changes one of your automations, or pauses it. | Yes |
delete_skill | Deletes one of your automations. | Yes, after a yes |
run_skill | Runs one of your automations now. | Yes |
Your automations.
None.
Text, as the rules at the top say.
Makes an automation: when this happens, do that.
| Name | Type | Required | What |
|---|---|---|---|
name | string | Yes | |
when_text | string | Yes | |
then_text | string | Yes | |
trigger_type | string | No | |
tools | string | No |
Text, as the rules at the top say.
Changes one of your automations, or pauses it.
| Name | Type | Required | What |
|---|---|---|---|
skill_id | string | Yes | |
name | string | No | |
when_text | string | No | |
then_text | string | No | |
status | string | No |
Text, as the rules at the top say.
Deletes one of your automations.
| Name | Type | Required | What |
|---|---|---|---|
skill_id | string | Yes | |
confirmed | string | No |
Text, as the rules at the top say.
Runs one of your automations now.
| Name | Type | Required | What |
|---|---|---|---|
skill_id | string | Yes |
Text, as the rules at the top say.
Your knowledge bases: text Ki and your agents search when they answer you.
| Tool | What it does | Changes anything |
|---|---|---|
list_knowledge_bases | Your knowledge bases. | No |
create_knowledge_base | Makes a knowledge base. | Yes |
update_knowledge_base | Renames one of your knowledge bases, or changes its privacy. | Yes |
delete_knowledge_base | Deletes one of your knowledge bases. | Yes, after a yes |
add_text_to_knowledge | Adds text to one of your knowledge bases. | Yes |
get_kb_content | The text kept in one knowledge base. | No |
get_all_knowledge | The text of all your knowledge bases. | No |
search_knowledge | Finds the passages of your knowledge that match. | No |
search_knowledge_graph | Finds passages of your knowledge, with how each connects to agents and owners. | No |
Your knowledge bases.
None.
Text, as the rules at the top say.
Makes a knowledge base.
| Name | Type | Required | What |
|---|---|---|---|
name | string | Yes | |
privacy | string | No |
Text, as the rules at the top say.
Renames one of your knowledge bases, or changes its privacy.
| Name | Type | Required | What |
|---|---|---|---|
kb_id | string | Yes | |
name | string | No | |
privacy | string | No |
Text, as the rules at the top say.
Deletes one of your knowledge bases.
| Name | Type | Required | What |
|---|---|---|---|
kb_id | string | Yes | |
confirmed | string | No |
Text, as the rules at the top say.
Adds text to one of your knowledge bases.
| Name | Type | Required | What |
|---|---|---|---|
kb_id | string | Yes | |
content | string | Yes | |
name | string | No |
Text, as the rules at the top say.
The text kept in one knowledge base.
| Name | Type | Required | What |
|---|---|---|---|
kb_name | string | Yes |
Text, as the rules at the top say.
The text of all your knowledge bases.
None.
Text, as the rules at the top say.
Finds the passages of your knowledge that match.
| Name | Type | Required | What |
|---|---|---|---|
query | string | Yes | Focused search terms (2-6 words work best) |
Text, as the rules at the top say.
Finds passages of your knowledge, with how each connects to agents and owners.
| Name | Type | Required | What |
|---|---|---|---|
query | string | Yes |
Text, as the rules at the top say.
Projects with stage lists (Ready, Build, Test, Release, Live) and their cards: one task each.
| Tool | What it does | Changes anything |
|---|---|---|
list_projects | Your projects. | No |
get_project | One project with its stage lists and cards. | No |
create_project | Makes a project with its five stage lists. | Yes |
update_project | Renames a project or changes its description. | Yes |
delete_project | Deletes a project with all its lists and cards. | Yes |
create_card | Makes a card in a stage list. | Yes |
get_card | One card in full. | No |
update_card | Changes a card’s title, description or priority. | Yes |
move_card | Moves a card to another stage. | Yes |
assign_card_member | Gives a card to a person. | Yes |
delete_card | Deletes a card. | Yes |
Your projects.
None.
Text, as the rules at the top say.
One project with its stage lists and cards.
| Name | Type | Required | What |
|---|---|---|---|
project_id | string | Yes | The project ID. |
Text, as the rules at the top say.
Makes a project with its five stage lists.
| Name | Type | Required | What |
|---|---|---|---|
name | string | Yes | The project name (e.g., "Kinship Mobile") |
description | string | Yes | What this project is about. |
realm_id_override | string | No | The realm ID to create the project in (optional — use when user has picked a realm) |
Text, as the rules at the top say.
Renames a project or changes its description.
| Name | Type | Required | What |
|---|---|---|---|
project_id | string | Yes | The project ID to update. |
name | string | No | New name (optional) |
description | string | No | New description (optional) |
Text, as the rules at the top say.
Deletes a project with all its lists and cards.
| Name | Type | Required | What |
|---|---|---|---|
project_id | string | Yes | The project ID to delete. |
Text, as the rules at the top say.
Makes a card in a stage list.
| Name | Type | Required | What |
|---|---|---|---|
list_id | string | Yes | The list/stage ID where the task should be created. |
title | string | Yes | Task title. |
description | string | No | Task description (optional) |
priority | string | No | Priority level — "low", "medium", "high", or "urgent" (optional) |
Text, as the rules at the top say.
One card in full.
| Name | Type | Required | What |
|---|---|---|---|
card_id | string | Yes | The card/task ID. |
Text, as the rules at the top say.
Changes a card’s title, description or priority.
| Name | Type | Required | What |
|---|---|---|---|
card_id | string | Yes | The card/task ID to update. |
title | string | No | New title (optional) |
description | string | No | New description (optional) |
priority | string | No | New priority — "low", "medium", "high", "urgent" (optional) |
Text, as the rules at the top say.
Moves a card to another stage.
| Name | Type | Required | What |
|---|---|---|---|
card_id | string | Yes | The card/task ID to move. |
list_id | string | Yes | The destination list/stage ID. |
Text, as the rules at the top say.
Gives a card to a person.
| Name | Type | Required | What |
|---|---|---|---|
card_id | string | Yes | The card/task ID. |
wallet | string | Yes | The wallet address of the person to assign. |
role | string | No | The role — "assignee" (does the work) or "reviewer" (reviews it). Defaults to "assignee". |
Text, as the rules at the top say.
Deletes a card.
| Name | Type | Required | What |
|---|---|---|---|
card_id | string | Yes | The card/task ID to delete. |
Text, as the rules at the top say.
Kiduna’s older realms: groups with members, roles, invitation codes and gravity (how much of a group you see). They are not the Realms of Realms & Sparks, and not Alliances.
| Tool | What it does | Changes anything |
|---|---|---|
list_realms | The realm groups you belong to or made. | No |
get_realm | One realm group. | No |
get_realm_tree | A realm group and the groups inside it. | No |
get_ecosystem | The top realm group. | No |
get_enrollments | The realm groups you are enrolled in. | No |
search_realms_by_tags | Finds realm groups by tags. | No |
check_handle | Whether a realm group handle is free. | No |
create_realm | Makes a realm group. | Yes |
update_realm | Changes a realm group. | Yes |
join_realm | Joins a realm group with an invitation code. | Yes |
add_realm_member | Adds a member to a realm group. | Yes |
update_realm_member | Changes a member’s role in a realm group. | Yes |
remove_realm_member | Removes a member from a realm group. | Yes, after a yes |
create_invite | Makes an invitation code for a realm group. | Yes |
list_invites | A realm group’s invitation codes. | No |
preview_invite | Shows what an invitation code is for. | No |
revoke_invite | Takes back an invitation code. | Yes |
get_gravity | The gravity of each realm group you are in. | No |
set_gravity | Sets how much of a realm group you see: its gravity, pinned or hidden. | Yes |
remove_gravity | Removes your gravity setting for a realm group. | Yes |
The realm groups you belong to or made.
None.
Text, as the rules at the top say.
One realm group.
| Name | Type | Required | What |
|---|---|---|---|
realm_id_or_name | string | Yes |
Text, as the rules at the top say.
A realm group and the groups inside it.
| Name | Type | Required | What |
|---|---|---|---|
realm_id | string | Yes |
Text, as the rules at the top say.
The top realm group.
None.
Text, as the rules at the top say.
The realm groups you are enrolled in.
None.
Text, as the rules at the top say.
Finds realm groups by tags.
| Name | Type | Required | What |
|---|---|---|---|
tags | string | Yes | |
visibility | string | No |
Text, as the rules at the top say.
Whether a realm group handle is free.
| Name | Type | Required | What |
|---|---|---|---|
handle | string | Yes |
Text, as the rules at the top say.
Makes a realm group.
| Name | Type | Required | What |
|---|---|---|---|
name | string | Yes | Realm name. |
realm_type | string | No | Clan/cell/dyad/council/concept/community/organization/alliance/program/project. |
parent_id | string | No | Parent realm ID for sub-realms. |
handle | string | No | URL handle. |
description | string | No | Description. |
visibility | string | No | Public/private/secret. |
primary_theme | string | No | Required for alliance/community/organization/program/project. One of: People & Care, Society & Justice, Culture & Play, Place & Planet, Work & Wealth, Knowledge & Frontier. |
primary_focus | string | No | Required with theme. Must match the theme. Ask user to pick from the valid focuses for their chosen theme. |
tags | string | No | Comma-separated. |
Text, as the rules at the top say.
Changes a realm group.
| Name | Type | Required | What |
|---|---|---|---|
realm_id | string | Yes | |
name | string | No | |
description | string | No | |
visibility | string | No | |
status | string | No | |
tags | string | No |
Text, as the rules at the top say.
Joins a realm group with an invitation code.
| Name | Type | Required | What |
|---|---|---|---|
code | string | Yes | The invitation code (e.g., "RLM-A3Kx9M") |
Text, as the rules at the top say.
Adds a member to a realm group.
| Name | Type | Required | What |
|---|---|---|---|
realm_id | string | Yes | |
member_wallet | string | Yes | |
role | string | No |
Text, as the rules at the top say.
Changes a member’s role in a realm group.
| Name | Type | Required | What |
|---|---|---|---|
realm_id | string | Yes | |
member_id | string | Yes | |
role | string | Yes |
Text, as the rules at the top say.
Removes a member from a realm group.
| Name | Type | Required | What |
|---|---|---|---|
realm_id | string | Yes | |
member_id | string | Yes | |
confirmed | string | No |
Text, as the rules at the top say.
Makes an invitation code for a realm group.
| Name | Type | Required | What |
|---|---|---|---|
role | string | Yes | MUST be one of: "guest", "member", "sponsor", "organizer", "creator", "builder", "luminary", "mage", "catalyst" (required, no other values allowed) |
max_uses | integer | Yes | How many people can use this code (required, must be > 0) |
expires_in | string | Yes | When the code expires — "1 hour", "24 hours", "7 days", "30 days" (required) |
realm_id | string | No | The realm ID (optional — auto-uses current realm if not provided) |
kiduna_per_person | number | No | KI tokens to sponsor per person. 0 or omit for no sponsorship (optional) |
label | string | No | Purpose or description (optional, e.g., "Team onboarding") |
invited_name | string | No | Name of the person being invited (optional) |
invited_email | string | No | Email of the person being invited (optional) |
Text, as the rules at the top say.
A realm group’s invitation codes.
| Name | Type | Required | What |
|---|---|---|---|
realm_id | string | No | The realm ID (optional — auto-uses current realm if not provided) |
Text, as the rules at the top say.
Shows what an invitation code is for.
| Name | Type | Required | What |
|---|---|---|---|
code | string | Yes | The invitation code (e.g., "RLM-A3Kx9M") |
Text, as the rules at the top say.
Takes back an invitation code.
| Name | Type | Required | What |
|---|---|---|---|
invite_code | string | Yes | The invite code to revoke (e.g., "RLM-A3Kx9M") |
realm_id | string | No | The realm ID (optional — auto-resolved from invite code or context) |
Text, as the rules at the top say.
The gravity of each realm group you are in.
None.
Text, as the rules at the top say.
Sets how much of a realm group you see: its gravity, pinned or hidden.
| Name | Type | Required | What |
|---|---|---|---|
realm_id | string | Yes | |
level | string | Yes | |
action | string | No |
Text, as the rules at the top say.
Removes your gravity setting for a realm group.
| Name | Type | Required | What |
|---|---|---|---|
realm_id | string | Yes |
Text, as the rules at the top say.
Your Field is what reaches you from the Realms and realm groups. Receiver profiles set what it shows; transmissions (boosts) share a Spark with realm groups.
| Tool | What it does | Changes anything |
|---|---|---|
get_receiver_profile | Your Field settings: which Realms and groups feed it, and how much. | No |
create_receiver_profile | Makes a receiver profile. | Yes |
update_receiver_profile | Changes a receiver profile. | Yes |
activate_receiver_profile | Makes a receiver profile the one in use. | Yes |
delete_receiver_profile | Deletes a receiver profile. | Yes |
send_transmission | Sends a transmission (a boost): shares a Spark with realm groups. | Yes |
list_transmissions | The transmissions you sent. | No |
get_transmission | One transmission you sent. | No |
Your Field settings: which Realms and groups feed it, and how much.
None.
Text, as the rules at the top say.
Makes a receiver profile.
| Name | Type | Required | What |
|---|---|---|---|
name | string | Yes | Profile name (e.g., "Default", "Work Focus", "Deep Dive") |
maps_enabled | string | No | Comma-separated map slugs to enable (default: "political,solana") Default political,solana. |
order | string | No | How to sort cards — "recent", "resonance", or "random" (default: "recent") Default recent. |
time_window | string | No | Time filter — "all", "today", "week", "month" (default: "all") Default all. |
intensity | number | No | How much content 0.0-1.0 (default: 0.5) Default 0.5. |
range_val | number | No | How far from interests 0.0-1.0 (default: 0.5) Default 0.5. |
allow_sponsored | boolean | No | Allow sponsored content (default: true) Default true. |
set_active | boolean | No | Set this profile as active immediately (default: true) Default true. |
Text, as the rules at the top say.
Changes a receiver profile.
| Name | Type | Required | What |
|---|---|---|---|
profile_id | string | Yes | The profile ID to update (required — get from get_receiver_profile) |
name | string | No | New profile name (optional) |
maps_enabled | string | No | Comma-separated map slugs to enable, e.g. "political,solana" (optional) |
order | string | No | New sort order — "recent", "resonance", or "random" (optional) |
time_window | string | No | New time filter — "all", "today", "week", "month" (optional) |
intensity | number | No | New intensity 0.0-1.0 (optional) |
range_val | number | No | New range 0.0-1.0 (optional) |
allow_sponsored | boolean | No | Allow sponsored content (optional) |
Text, as the rules at the top say.
Makes a receiver profile the one in use.
| Name | Type | Required | What |
|---|---|---|---|
profile_id | string | Yes | The profile ID to activate. |
Text, as the rules at the top say.
Deletes a receiver profile.
| Name | Type | Required | What |
|---|---|---|---|
profile_id | string | Yes | The profile ID to delete. |
Text, as the rules at the top say.
Sends a transmission (a boost): shares a Spark with realm groups.
| Name | Type | Required | What |
|---|---|---|---|
message | string | Yes | The transmission message (5-500 characters) |
destinations | string | Yes | Comma-separated realm names (e.g., "Kiduna Alliance,Solana Guild") |
node_slug | string | No | Node to attach as payload (optional, e.g., "power", "legitimacy") |
map_slug | string | No | Map the node belongs to — "political" or "solana" (default: "political") Default political. |
privacy | string | No | Privacy level — "public", "private", "secret", "personal" (default: "public") Default public. |
Text, as the rules at the top say.
The transmissions you sent.
None.
Text, as the rules at the top say.
One transmission you sent.
| Name | Type | Required | What |
|---|---|---|---|
transmission_id | string | Yes | The transmission ID to look up. |
Text, as the rules at the top say.
Places in the US: counties, census tracts, how many people live there, and directions.
| Tool | What it does | Changes anything |
|---|---|---|
find_county_and_tract | The US state, county and census tract of a town or a point. | No |
neighbouring_counties | The US counties that border a county. | No |
get_place_population | How many people live in a US county, town or state, with the source and year. | No |
residents_of_places | How many people live in several US places together, with the sources. | No |
get_directions_link | A map link with directions between two places. | No |
The US state, county and census tract of a town or a point.
| Name | Type | Required | What |
|---|---|---|---|
place | string | No | Town, city or county name, e.g. "Ann Arbor" or "Jefferson County" |
state | string | No | Two-letter state, e.g. "MI" |
latitude | number | No | Decimal latitude (only with longitude) |
longitude | number | No | Decimal longitude (only with latitude) |
Text, as the rules at the top say.
The US counties that border a county.
| Name | Type | Required | What |
|---|---|---|---|
county | string | Yes | The county's place id or 5-digit FIPS code ("county:54037", "54037"), or its name with its state ("Jefferson County, WV") |
Text, as the rules at the top say.
How many people live in a US county, town or state, with the source and year.
| Name | Type | Required | What |
|---|---|---|---|
place | string | Yes | The county or town name, e.g. "Jefferson County", "Ann Arbor", "Venice". |
state | string | Yes | The US state, two letters or full name, e.g. "WV", "California". |
kind | string | No | "county", "town" or "state"; leave empty when unsure. |
Text, as the rules at the top say.
How many people live in several US places together, with the sources.
| Name | Type | Required | What |
|---|---|---|---|
places | list of strings | Yes | Place ids from find_county_and_tract or neighbouring_counties (["county:54037", "county:54003"]), or names with their state (["Jefferson County, WV", "Berkeley County, WV"]) |
Text, as the rules at the top say.
A map link with directions between two places.
| Name | Type | Required | What |
|---|---|---|---|
origin | string | Yes | |
destination | string | Yes | |
mode | string | No | Default walking. |
Text, as the rules at the top say.
The public web, when Kiduna’s own data has no answer, and images made from words.
| Tool | What it does | Changes anything |
|---|---|---|
search_web | Searches the web and gives each result with its source link. | No |
generate_image | Makes one image from a description. | Yes |
Searches the web and gives each result with its source link.
| Name | Type | Required | What |
|---|---|---|---|
query | string | Yes | What to search for, in plain words. |
limit | integer | No | How many results (default 6, max 10) Default 6. |
Text, as the rules at the top say.
Makes one image from a description.
| Name | Type | Required | What |
|---|---|---|---|
prompt | string | Yes |
Text, as the rules at the top say.
Search every tool above by its name, what it does, or an input. Choose a module, or only the tools that read or change. Open a tool to see its inputs, and go to it in its module.
Loading MCP tools…
FOR MCP DEVELOPERS
This section is only for developers building their own MCP client. Configure Streamable HTTP at https://<agent-host>/mcp/ and use Authorization: Bearer <your-api-key>. A compliant MCP SDK performs initialization, then uses tools/list to discover the tools allowed for that key. Codex already does this for you.
JSON-RPC reference:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list",
"params": {}
}Send this through an MCP client after it has completed its normal MCP initialization. Most MCP clients, including Codex, do this automatically and present the tools to you; application developers should use their MCP SDK rather than hand-crafting protocol traffic.
Each tool includes its name, a user-facing description, and an inputSchema. The schema is the exact parameter reference for that tool, including required fields, types, allowed values, and nested objects.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"tools": [{
"name": "kiduna__example_tool",
"description": "What this tool does and when to use it.",
"inputSchema": {
"type": "object",
"properties": { "example_parameter": { "type": "string" } },
"required": ["example_parameter"]
}
}]
}
}Names can be namespaced when two connected services expose the same tool name. Do not hard-code tool names or parameter shapes from an old list: request the live list again when starting a session and use the schema returned with it.
Only call a name that appeared in your current tools/list response. Pass an object that validates against that tool’s inputSchema. The result format is tool-specific and is described by the tool’s own schema and response content.
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "kiduna__example_tool",
"arguments": { "example_parameter": "value" }
}
}CODEX PLUGIN
Add Kiduna as a Streamable HTTP MCP server. Codex then discovers only the tools that your Kiduna account may use.
In Kiduna Settings → Global API access, create your key and copy it once. Keep it out of source code and chat messages.
Set KIDUNA_API_KEY in the same local environment that starts Codex.
Open Codex Settings → Plugins / MCP servers, choose Add server, select Streamable HTTP, then use the endpoint and authentication below.
Restart the Codex extension or start a new Codex session so it loads the server and its current tool list.
Add this to ~/.codex/config.toml, or enter the same values in Codex’s MCP server form. Replace <agent-host> with your deployed Kiduna agent host. bearer_token_env_var reads the local secret and sends the exact header Kiduna requires: Authorization: Bearer <KIDUNA_API_KEY>.
[mcp_servers.kiduna] url = "https://<agent-host>/mcp/" bearer_token_env_var = "KIDUNA_API_KEY"
export KIDUNA_API_KEY='kiduna_ik_<your-secret>' # Codex sends this automatically to /mcp/: Authorization: Bearer kiduna_ik_<your-secret>
Start or restart Codex from that same terminal/session. Never commit this value to a repository or paste it into a prompt. A plain Authorization: <key> or an X-API-Key header will not authenticate to this MCP server.
List the tools available to me.
Show the DUNAs I can access.
List my connected services.
PLUGIN
Add the same Kiduna Streamable HTTP MCP server in Claude’s MCP connection settings.
In Kiduna Settings → Global API access, create a key and copy it once.
In Claude’s MCP connection settings, create a Streamable HTTP connection to https://<agent-host>/mcp/.
Use Authorization: Bearer kiduna_ik_<your-secret>. Store the secret with Claude’s secure connection settings; never put it in a prompt.
List the tools available to me.
Show the DUNAs I can access.
What connected services are available to me?
API KEYS
Create the global external-integration credential in Kiduna Settings. It can authenticate LLM chat, Skills reads, and MCP clients; it is not a DUNA-only key.
Sign in to Kiduna, open Settings → Global API access, then copy the new secret. The raw secret is shown once.
Pause all use of the key immediately, then enable the same key when you are ready.
Rotate the secret. Update your secret manager; the old value stops working immediately.
Permanently revoke the credential and create a replacement if you still need an integration.
REFERENCE
Errors are concise by design: they help a client recover without revealing account or credential details.
Retry-After when present, otherwise wait 60 seconds. Retry once only when safe.{ "error": "invalid_request", "fields": [["body", "message"]] }WebSocket failures use an event instead: { "type": "error", "status": 422, "error": "invalid_request" }.
REFERENCE
The safest integration keeps API keys server-side and uses the narrowest interface required for the job.
Use a server environment variable or a secret manager. Never include a key in browser JavaScript.
Recreate the key immediately if it appears in a screenshot, chat, source code, or public repository.
Use HTTPS for HTTP requests and WSS for WebSocket connections.
Do not use answer-only chat to access tools, account data, or connected services.
LLM USAGE
Every answer has input tokens, output tokens, and a request. Together, they describe the LLM work performed for a chat call.
The instructions and message sent to the LLM.
The answer generated by the LLM.
Input tokens plus output tokens.
Completed answer-only chat calls.
HOW COST WORKS
The provider sets separate prices for input and output tokens. Output tokens are often priced differently from input tokens. If a product applies a multiplier, that is applied after the provider cost is calculated.
provider cost = (input tokens × input rate) + (output tokens × output rate)charged cost = provider cost × configured multiplierRates are normally expressed per one million tokens. The model and its current price determine the actual amount.
ILLUSTRATIVE EXAMPLE
This example explains the calculation only. It is not a live Kiduna price quote or an account charge.
A successful HTTP or WebSocket chat response contains the generated answer, its mode, and a request_id. It does not currently include token counts, selected model, unit rates, provider cost, charged cost, balance, invoice, or billing status.
GOOD INTEGRATION PRACTICE
For each request, store the request_id, timestamp, endpoint, your application user or tenant, and any business context you need. Treat 429 as a rate-limit response, not a cost or usage value.
REFERENCE
The public integration service uses a rolling 60-second rate limit. It protects the service; it is not a billing quota and it does not measure token usage.
Each authenticated chat request and Skills read.
Authentication and every chat message sent after connection.
Tool discovery and every attempted tool call.
The authenticated account’s allowance is shared across its integration keys and all public interfaces. Creating a second key does not create a separate quota. A small process-level guard also protects against excessive traffic from one client address.
The next authenticated operation returns 429 with rate_limited. Honor Retry-After when it is present.
HTTP 429
Retry-After: 60
{ "detail": "rate_limited" }Do not retry every request immediately. Queue or shed work in your application.
Wait the response’s Retry-After value. If the header is absent, wait 60 seconds.
Retry only a safe operation. For chat, preserve the original idempotency key when retrying the same logical message.
429 as an error to hammer through.REFERENCE
Use the HTTP status, the stable error value, and the recovery action below. Error responses deliberately avoid exposing account, credential, or service internals.
response, mode: "read_only", and request_id; Skills returns a Skill or paginated Skill list.WWW-Authenticate: Bearer.Retry-After; otherwise wait 60 seconds and retry once only when safe.HTTP validation: { "error": "invalid_request", "fields": [["body", "message"]] }
HTTP failure: { "error": "external_answer_unavailable" }
WebSocket: { "type": "error", "status": 422, "error": "invalid_request" }
MCP: tool-level error in the MCP client protocolFor MCP, authentication failures, permission failures, unavailable tools, and execution problems arrive as MCP tool errors rather than an HTTP API response. Refresh tools/list, then call only a current tool with arguments that match its inputSchema.
GET STARTED
Follow this once, in order. At the end you will have a signed-in account, the access needed to chat, an API key, and a working request.
You need a Kiduna account and a place to keep a secret safely (an environment variable or secret manager). Do not put an API key in browser code, a Git repository, or a chat prompt.
Open Kiduna and choose Create an account. Complete the onboarding prompts until the app opens your Kiduna home.
Choose Sign in and use the same normal account. An integration/API key cannot be used to sign in to the app or to create another key.
Purchase 100 million KC to unlock Kiduna network membership while you hold it and receive 30 calendar days of free compute. An API key is free to create; a purchase does not change API-key scopes.
While signed in, open the Kiduna purchase screen. Enter the amount you want to spend in USDC. The service checks current availability and prepares a quote; do not treat a typed amount as a completed order.
If the app asks for a Kinship Code, enter it before creating the quote. The code is attached to the purchase and shown again in the review screen.
For card funding, the app opens a Stripe USDC-on-Solana funding step. Stripe supplies the available payment methods, identity checks, fees, and payment quote; USDC is sent to the displayed treasury destination. A wallet payment uses the connected wallet instead.
Confirm all of these fields: USDC you pay, KC you receive, Kinship Code, phase allocation, percentage available at DEX opening, cliff, linear vesting duration, and the fully vested month. The review also shows your membership stake after the purchase.
Before the payment button becomes available, acknowledge that KC is allocated and staked, is subject to vesting, and that no DEX opening date or market value is guaranteed. Continue to the payment provider or approve the wallet payment.
After payment, do not start a duplicate purchase. The app verifies payment, allocates and stakes KC, then shows completion. If a quote expires or a payment fails, start again and review the new quote; prices and availability can change.
While signed in, open Settings → Global API access and choose Create key.
Every key has the same access: chat with Kiduna and its agents, your automations, reading, checking and drafting skills, and MCP tools, within what your account may use. Saving and publishing skills is for the Kiduna team. It is not limited to some DUNAs, works for 30 days, and allows 30 requests a minute. An account has one key at a time.
Copy the value beginning kiduna_ik_ immediately. Store it as KIDUNA_API_KEY on your server. Treat it like a password; the app may not show the full secret again.
Set the two values below in your terminal, then send the request.
export KIDUNA_BASE_URL="https://api.agent.kiduna.ai"
export KIDUNA_API_KEY="kiduna_ik_…"
curl -X POST "$KIDUNA_BASE_URL/v1/chat" \
-H "Authorization: Bearer $KIDUNA_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: first-chat-20261203-0001" \
-d '{"message":"Hello — what can you help me with?"}'A successful response contains a response string and a request_id. If you see 403, the error code says why: usually the key lacks chat.send or is limited to some DUNAs. See Errors for every code and what to do.
REFERENCE
Limits stop bursts from overwhelming the API. They are separate from chat-token balance, membership and billing.
A request must fit all three.
| Limit | Per minute | Answer when reached |
|---|---|---|
| Each key | 30 | 429 integration_rate_limited, Retry-After: 60 |
| Each account, all its keys together | 30 by default | 429 rate_limited, with Retry-After in seconds |
| Each network address | 120 | 429 rate_limited, Retry-After: 60 |
Making another key does not give your account more requests.
| Interface | Counts as one request |
|---|---|
| HTTP | Every request with a key, including /v1/me and /v1/capabilities. |
| WebSocket | Signing in, and each chat message. A ping does not count. |
| MCP | Each call that uses the key, such as listing tools or calling one. |
HTTP/1.1 429 Too Many Requests
Retry-After: 60
Cache-Control: no-store
{ "error": "integration_rate_limited" }Queue new messages instead of retrying them all at once.
Wait exactly the number of seconds it gives.
For chat, send it with the same Idempotency-Key, so a request that did get through is answered once, not twice.
REFERENCE
Every error is {"error": "<code>"} with an HTTP status. Look up the code below and do what it says. Never log or share the API key that caused an error.
| Status | Code | What it means | What to do |
|---|---|---|---|
| 401 | authentication_required | No API key was sent. | Send Authorization: Bearer kiduna_ik_…. |
| 401 | integration_key_required | What was sent is not a Kiduna API key. | Use an API key (it starts with kiduna_ik_), not a sign-in token. |
| 401 | invalid_integration_key | The key is unknown, expired, disabled or deleted, or its account signed out everywhere. | Make or enable a key in Kiduna and update your secret store. Retrying will not help. |
| 401 | invalid_integration_permissions | Kiduna could not read the key’s permissions. | Create a new key. |
| 403 | integration_scope_required | The key does not have the scope this endpoint needs. | Delete the key and create a new one in Settings → Global API access: a new key has every scope. Recreate keeps the old scopes. |
| 403 | restricted_integration_chat_unavailable | The key is limited to some DUNAs. Chat needs a key that is not. | Delete the key and create a new one in Settings → Global API access: those keys have no DUNA limit. |
| 403 | authenticated_wallet_required | The key’s account has no wallet yet. | Finish setting up the account in Kiduna. |
| 403 | chat_disabled | Chat is switched off on this server. | Try again later or contact Kiduna. |
| 404 | external_api_disabled | The API is switched off on this server. | Try again later or contact Kiduna. |
| 404 | agent_not_found | There is no such agent, or you may not use it. | Use an id from GET /v1/agents. |
| 404 | automation_not_found | You have no automation with this id. | Use an id from GET /v1/automations. |
| 404 | skill_not_found | Kiduna has no skill with this id. | Use a skill’s name from the Skills directory. |
| 404 | skill_version_not_found | The skill has no such version saved in Kiduna Cloud. | Use a version from GET /v1/skills/{skill_id}. |
| 409 | idempotency_key_reused | This Idempotency-Key was already used with a different message. | Use a new key for a new message. |
| 403 | skill_change_not_allowed | Only the Kiduna team may save and publish skills. | Check and draft the skill, then ask the Kiduna team to save it. |
| 409 | skill_exists | A skill with this name already exists. | Change it with PUT /v1/skills/{skill_id}, or rename yours. |
| 409 | skill_unchanged | That version already holds this text. | Nothing to do, or send the changed text. |
| 409 | skill_version_not_editableskill_version_not_draft | That version was live before. Changes start from the live version or a draft, and only a draft goes live. | Use the live version or a draft. |
| 409 | skill_tests_failed | The draft’s tests did not pass, so it cannot go live. | Read tests, fix the text, save a new draft. |
| 409 | skill_is_duplicate | Another skill in use already does this job, so the draft does not go live. | Read report.same_job. Change that skill instead, or make this one do a different job. |
| 409 | skill_deleted | The skill is deleted in Kiduna Cloud. | Ask the Kiduna team to restore it. |
| 409 | skill_conflict | Kiduna refused the change; message says why. | Read the skill again, then try again. |
| 413 | request_too_large | The body is over 24,000 bytes (200,000 for the skill endpoints, 128,000 for a DUNA’s notes). | Send a shorter message. |
| 413 | skill_too_large | The SKILL.md is over 64 KB. | Make the skill shorter; Kiduna’s agents load at most about 3,000 tokens of it. |
| 422 | invalid_request | A value is missing, wrong or not allowed. fields names each one, such as ["body", "message"]. | Fix those fields, then send again. |
| 422 | invalid_skill_textinvalid_wordsinvalid_whyinvalid_skill_idinvalid_version | The SKILL.md, the words, the why, a skill id or a version cannot be used; message says why. | Fix it as the message says, then send again. |
| 429 | integration_rate_limited | This key used all its requests for this minute. | Wait the seconds in Retry-After. |
| 429 | rate_limited | Your account, or your network address, sent too many requests. | Wait the seconds in Retry-After. |
| 502 | backend_unavailableintegration_transport_missingintegration_identity_contract | Kiduna could not check the key just now. | Wait a little, then try again. |
| 503 | external_api_storage_unavailable | Kiduna could not record the request. | Wait a little, then try again. |
| 503 | backend_not_configured | A setting is missing on this server, so it cannot check keys. | Try again later or contact Kiduna. |
| 502 | skill_builder_failed | The Skill Builder could not finish this time. | Try again. Nothing was saved. |
| 503 | skill_builder_unavailable | The Skill Builder cannot answer just now, or is not set up on this server. | Wait a little, then try again. Nothing changed. |
| 500 | external_api_unavailable | Something failed inside Kiduna. | Wait a little, then try again. If it keeps happening, contact Kiduna. |
A chat request can also end without an answer and without an error code. The body then has request_id, status and a short message.
| Status | Status in body | What it means | What to do |
|---|---|---|---|
| 202 | "pending" | A request with this Idempotency-Key is still running. | Send the same request with the same key again in a few seconds. It returns the answer once it is ready. |
| 202 | "uncertain" | Kiduna could not confirm an answer. Chat changes nothing, so asking again is safe. | Send the message again with a new Idempotency-Key. |
| 409 | "held" | The first request with this key was refused, for example because the agent was not found. | Fix the cause, then send with a new key. |
HTTP error: { "error": "integration_scope_required" }
HTTP 422: { "error": "invalid_request", "fields": [["body", "message"]] }
Skill endpoints: { "error": "skill_change_not_allowed", "message": "Only David and the Catalysts and Mages …" }
Chat status: { "request_id": "req_…", "status": "pending", "message": "No replay was performed. Check the request or Kiduna." }
WebSocket error: { "type": "error", "status": 422, "error": "invalid_request" }
MCP: an MCP tool error in the MCP client’s own formatFor MCP errors, ask for tools/list again, then call a tool from the new list with arguments that match its inputSchema.
API KEYS
Use this page after your key already exists: test it, recreate it safely, or stop it. For account and first-key setup, start with Quickstart.
New to Kiduna or creating a key for the first time? Quickstart covers account creation, sign-in, the full purchase flow, first-key setup, scopes, and your first chat request.
Set the key in a terminal on your server. This read-only request confirms that the Bearer key is accepted before you connect your application.
export KIDUNA_BASE_URL="https://api.agent.kiduna.ai" export KIDUNA_API_KEY="kiduna_ik_…" curl "$KIDUNA_BASE_URL/v1/me" \ -H "Authorization: Bearer $KIDUNA_API_KEY"
A 200 response means the key is valid. A 401 means the key is missing, malformed, expired, disabled, recreated, or deleted. A 403 means the account or requested operation is not allowed.
Open Kiduna Settings → Global API access. The page shows the current key’s status, expiry, and most recent use; it never shows the existing secret again. A standard account has one current integration key.
Use Disable when you are investigating exposure, pausing an integration, or taking a service offline. It immediately rejects new HTTP requests, MCP calls, and messages on an already-open WebSocket. The secret is unchanged, but it cannot be used until you enable it again.
Use Enable only after confirming the existing secret was not exposed. Your deployed service can continue using the same stored secret. An expired or deleted key cannot be enabled; create a replacement instead.
Use Recreate whenever the key may have been copied into a repository, browser, log, ticket, or an untrusted system. The old secret stops working immediately. Copy the replacement shown once, update every secret manager and deployment that uses it, redeploy, then test GET /v1/me before removing your recovery plan.
Use Delete when the integration is retired. It permanently revokes the current secret and it cannot be restored. Remove the old value from CI/CD variables, local environment files, server secret stores, and team password managers. You can create a new key later if you need a new integration.
Keep the replacement only in server-side secrets. Do not place it in browser code, mobile builds, source files, or a chat message.
Make sure every worker, server, CI job, MCP client, and scheduled process has loaded the intended value.
Use GET /v1/me from the deployed service. A 200 confirms the replacement is accepted; 401 means it is missing, invalid, disabled, expired, recreated, or deleted.
Return to Global API access and check the last-used time. If activity is unexpected, disable the key first and recreate it before investigating.



REFERENCE
Keep the account, payment flow, and integration key separate. A secure setup never exposes a reusable key to a browser, repository, log, or person who does not need it.
Store KIDUNA_API_KEY in a secret manager or server environment variable. Never place it in browser JavaScript, a mobile app bundle, client-side configuration, screenshots, tickets, or prompts.
Use Authorization: Bearer kiduna_ik_… over HTTPS, or authenticate a WebSocket without putting the key in its URL. URLs are commonly retained in browser history, proxy logs, and analytics.
Every key has the same access: chat with Kiduna and its agents, your automations, reading, checking and drafting skills, your own logs, what Ki learned about you (and undoing it), your DUNA’s Guide and Scout when you are its Catalyst, and MCP tools, within what your account may use. Whoever holds the key can use all of it, so give it only to your own server or assistant.
A key works for 30 days. Before then, Recreate it in Settings → Global API access, update your secret store, and test it with GET /v1/me.
Use the read-only key test on Create and manage keys from a controlled server environment. Do not paste the full secret into a support request to diagnose an error.
If a secret appears anywhere unsafe, recreate it immediately, update the server’s secret store, deploy the new value, and verify it. The old secret stops working, so coordinate the change with every service that uses it.
Disable the key while investigating suspicious use or pausing an integration. Enable it only after the incident is resolved.
Delete unused keys permanently. Also remove them from deployments, CI/CD variables, local .env files, and team password managers.
Redact the Authorization header, API key, payment-provider client secret, and any wallet/session tokens before saving request logs or error reports.
Generate one idempotency key per logical chat action. Reuse it only to safely retry the same request; do not reuse it for a different message.
Send only information needed for the task. Treat chat text, tool arguments, and external-service results as potentially sensitive operational data.
For MCP, read the current inputSchema from tools/list and validate data in your service before calling a tool. Do not trust tool names or arguments supplied by untrusted users.
Only make a purchase from the signed-in Kiduna flow. Before confirming payment, check the displayed USDC amount, KC allocation, Kinship Code, unlock and vesting terms, and the payment destination shown by the app. Stripe controls its own identity checks, payment methods, fee quote, and payment screen; do not share your API key with Stripe or use it as a payment credential.