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
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
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
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