> ## Documentation Index
> Fetch the complete documentation index at: https://craft-support.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up apps with the Craft API

> Step-by-step setup for building apps and automations on top of your Craft documents with the Craft API.

## Before you start

**Step 1**

In the **Connections** tab, add an API connection and choose what it includes.

**Step 2**

Copy its API URL, or select **Download AI Bundle** to get a Markdown file that describes the API and your content for AI tools.

**Step 3**

If the connection's **Access Mode** is **API Key**, create a key under **API Keys** and copy it. The key is shown only once. Tools send it in the `Authorization` header as `Bearer YOUR_API_KEY`.

To see the available endpoints, select **API Reference** in the connection.

![An API connection in the Connections tab, showing the URL, Access Mode, API Reference, and Download AI Bundle](https://mintcdn.com/craft-support/yEvyC2-RkiE2spXY/images/integrate/api/setup-guides/en/content/api-connection.png?fit=max\&auto=format\&n=yEvyC2-RkiE2spXY\&q=85\&s=205c2e4cc9457e4c0c2461583e551bd9)

## AI app builders

Lovable, Replit, Bolt, v0, and Base44 work the same way.

**Step 1**

Start a new project and attach the AI Bundle file to your first message.

**Step 2**

Describe what you want to build, for example a reading log based on your Craft documents.

If the connection uses an API key, add the key in the builder's secrets or environment variable settings instead of pasting it into the chat.

## Claude Code and Codex CLI

**Step 1**

Put the AI Bundle file in your project folder.

**Step 2**

Start the agent in that folder and ask it to read the file first.

## Shortcuts

Craft has its own [Shortcuts actions](https://craft-support.mintlify.site/en/integrate/apple-shortcuts.md). For anything they don't cover, such as adding items to a collection, use the **Get Contents of URL** action with your API URL and an endpoint listed under **API Reference** in the connection.

## Zapier

Add a **Webhooks by Zapier** action with **Custom Request**.

Webhooks by Zapier requires a paid Zapier plan.

## n8n

Add an **HTTP Request** node. For an API key, use **Bearer Auth** as the authentication.

## Craft Agents

In a [Craft Agents](https://thecraftagents.com) chat, ask the agent to add your Craft API connection as a source and paste its API URL. If the connection uses an API key, Craft Agents asks for it.

## Other tools

Any tool that can send HTTP requests can use the Craft API.

> [card] [Craft API](https://craft-support.mintlify.site/en/integrate/api.md)
>
> How API connections work

> [card] [MCP setup guides](https://craft-support.mintlify.site/en/integrate/mcp/setup-guides.md)
>
> Connect AI tools to Craft through MCP


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.