Skip to main content

Docs

Docs are Copera's rich-text pages. The Docs API lets you browse the document tree, create and delete documents, edit their metadata, read and write their content as markdown, and search across everything you can access.

Quick Start

# Browse the document tree (root level)
curl -X GET https://api.copera.ai/public/v1/docs/tree \
-H "Authorization: Bearer YOUR_API_KEY"

# Search documents
curl -X GET "https://api.copera.ai/public/v1/docs/search?q=onboarding" \
-H "Authorization: Bearer YOUR_API_KEY"

# Read a document's markdown content
curl -X GET https://api.copera.ai/public/v1/docs/DOC_ID/md \
-H "Authorization: Bearer YOUR_API_KEY"

# Create a document
curl -X POST https://api.copera.ai/public/v1/docs/ \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "title": "New Doc", "content": "# Hello" }'

Available in

Public APICLIMCPCopera AI
✅ Full✅ Full✅ Full

The Docs API and the CLI cover every operation; the hosted MCP server exposes the same surface to AI clients. Docs are not exposed to the in-app Copera AI assistant.

Next

  • How Docs Work — the title/body/parent document model, the access model, browsing the tree, reading and writing markdown content asynchronously, managing documents, and full-text search.
  • Docs in the API Reference — tree, search, get/create/update/delete, and markdown content endpoints with full schemas.