---
title: Create a site from a form with n8n
description: A client fills in your intake form and n8n creates their site with one HTTP Request node.
url: "https://shop.anypress.io/docs/create-a-site-from-a-form-with-n8n/"
updated: "2026-10-24"
category: Automation
---

# Create a site from a form with n8n

A client fills in your intake form, and n8n creates their site. You need an [API key](/docs/api-keys-and-partner-keys/).

## Steps

1. Start the workflow with an **n8n Form Trigger**, or a **Webhook** node that your form posts to.
2. Add an **HTTP Request** node. Method **POST**, URL `https://api.anypress.io/v1/tenants`.
3. Authentication: **Generic Credential Type**, then **Basic Auth**. Your API key is the user and its secret is the password.
4. Turn on **Send Body**, choose **JSON**, and fill it from the form's answers:

```
{
  "name": "{{ $json.business }}",
  "externalId": "form-{{ $execution.id }}",
  "wordPressUserName": "{{ $json.email }}",
  "wordPressUserEmail": "{{ $json.email }}",
  "wordPressUserRole": "administrator",
  "size": "small"
}
```

The answer comes back straight away, before the site is built. It includes the site's address:

```
{ "id": "…", "externalId": "form-…", "baseDomain": "kettle-and-crumb.anypress.site" }
```

To email the client when the site is ready, see [Email the client when their site is ready](/docs/email-the-client-when-their-site-is-ready/).

## Tips

- `externalId` may only contain letters, numbers and dashes.
- Using **Fluent Forms Pro** on your own WordPress site? Its Webhook feed can post each entry straight to the n8n Webhook node.
- All the fields you can send are in [Fields for a new site](/docs/fields-for-a-new-site/).
