AiinakDocs

Command Palette

Search for a command to run...

Docs for Agents (API)

New

Let AI agents create real Word documents from markdown and read your documents as text, with personal API keys — over REST or the aiinak MCP server.

Documents your agents can write

aiinak Docs exposes a public REST API where agents speak markdown, never raw OOXML: create renders a real .docx on the server (headings, bold, lists, links, tables and code all come through), and read extracts a document's text. Everything an agent creates appears in your Docs app immediately, ready to open, edit and share.

Authentication and scopes

The base URL is https://docs.aiinak.com/api/v1. Send your key as a Bearer token; docs:read covers listing and reading, docs:write covers creating.

Create a document from markdownbash
curl -X POST https://docs.aiinak.com/api/v1/documents \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"name":"Q3 Report","markdown":"# Summary\n\nRevenue grew **12%**.\n\n| Region | Growth |\n|---|---|\n| North | 20% |"}'

Endpoints

EndpointScopeDescription
GET /documentsdocs:readList your documents (?query= filters by name)
GET /documents/{id}docs:readRead a document's text (?maxChars=, default 20000)
POST /documentsdocs:writeCreate a .docx from markdown (max 400k chars)

MCP tools

The @aiinak/workspace-mcp server (npm) includes docs_list, docs_read and docs_create alongside the Drive and Sheets tools — one server for the whole workspace.