Skip to main content
Use the Craft API to connect Craft to external tools, automate workflows, and build custom integrations.

What is an API?

An API (Application Programming Interface) lets different applications communicate with each other securely. With the Craft API, you can:
  • Send or receive data from other services
  • Trigger actions in Craft based on events in another app
  • Build custom tools, dashboards, or automations
To connect AI assistants like Claude or ChatGPT, use MCP instead.

How Craft’s API Works

Create an API Connection from the Connections tab in the sidebar to share the right parts of your workspace with external tools. When you create a connection, choose what it includes:
  • Connect Daily Notes & Tasks: your daily notes and tasks
  • Connect Selected Documents: one or more documents you pick
  • Connect All Documents: every document in the space
For each connection, set the Permission Level (read only, write only, or read and write) and the Access Mode (Public, or API Key to require a key). Craft generates a unique API URL for the connection. Tools that use it can access only the content included in that connection. You can review and manage all your existing API connections in the Connections tab.
To connect a tool, copy the connection’s API URL (and API key, if it uses one) and add it in the tool. For tool-specific steps, see Setup guides.
A connection with access to all documents in a space supports:
  • Search across all documents with folder, tag, and date filtering
  • Daily notes and tasks are fully accessible via API
  • Create, update, and delete documents programmatically
  • Collection management including schema creation and editing
  • Advanced search with regex support and timezone-aware date filters
To see every endpoint, select API Reference in the connection.

Use Cases

Here are a few examples of what you can build with the API:
  • A personal dashboard that updates automatically
  • A task list that syncs with another productivity app
  • A reading log that fetches data from an external source
  • A custom AI-powered assistant tailored to your Craft document
  • Automated document creation from templates
  • Scheduled backups or exports
  • Integration with team communication tools