> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leapter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# HTTP Workflow

> Export a ready-made n8n workflow that calls your Blueprint via HTTP API.

Leapter can generate a complete n8n workflow that calls your deployed Blueprint through its HTTP API. The exported workflow includes form inputs, data transformation, the API call, and result display — ready to import and run.

## What this creates

The HTTP Workflow is a 4-node n8n workflow:

| Node               | Purpose                                                                   |
| :----------------- | :------------------------------------------------------------------------ |
| **Form Trigger**   | Displays a form with input fields matching your Blueprint's data contract |
| **Transform Data** | Transforms the form data into the format expected by the API              |
| **HTTP Request**   | Calls your deployed Blueprint via its REST API endpoint                   |
| **Form**           | Displays the results returned by the Blueprint                            |

## Export the workflow

1. Open your Blueprint in the editor.
2. Click the **Share** button in the toolbar.
3. Select **n8n**.
4. In the Export to n8n dialog, select the **HTTP Workflow** tab.
5. Click **Copy to Clipboard**.

<img src="https://mintcdn.com/leapter/n-gCe0s55i-T1r4S/images/n8n-http-workflow.png?fit=max&auto=format&n=n-gCe0s55i-T1r4S&q=85&s=74adc58a8ca970d102d115035c338ba7" alt="The Export to n8n dialog showing the HTTP Workflow tab with the workflow JSON" width="896" height="974" data-path="images/n8n-http-workflow.png" />

## Import into n8n

1. Open your n8n instance.
2. Create a new workflow.
3. Click the **three-dot menu** (or use **Ctrl+V** / **Cmd+V**) and select **Import from clipboard**.
4. The 4-node workflow appears on the canvas.

## Configure the API key

The HTTP Request node needs your API key to authenticate with Leapter:

1. Open the **HTTP Request** node.
2. In the **Authentication** section, add a **Header Auth** credential.
3. Set the header name to `X-API-Key` and the value to your API key.
4. Save the credential.

See [API Keys](/fundamentals/api-keys) to create a key if you have not already.

## Run the workflow

1. Click **Test Workflow** to run it manually.
2. Fill in the form with your test inputs.
3. The workflow calls your Blueprint and displays the results in the final Form node.

Once you are satisfied with the results, activate the workflow to make it available via its trigger URL.

## What to do next

* **[Code Workflow](/executing-blueprints/n8n-code)** — run your Blueprint logic directly in n8n without API calls
* **[MCP Agent Workflow](/executing-blueprints/n8n-mcp-agent)** — use your Blueprints as tools in an n8n AI agent
* **[Web API (OpenAPI)](/executing-blueprints/connect-rest-api)** — learn more about the REST API the workflow calls
