# Connect n8n

> Trigger n8n workflows from your site's events, and read or change your site from n8n with an API key.

## When something happens on your site

1. In n8n, add a **Webhook** node, set **HTTP Method** to **POST**, and copy its **Production URL**. Activate the workflow.
2. In your admin panel, open **Settings › Developers**, press **Add endpoint** and paste the URL. Leave **All events** ticked, or tick only the events you need.
3. Open the endpoint and press **Send test event**. The Webhook node shows what arrived; the details are under **body › data**.

If nothing arrives, check the workflow is active and open the **Logs** tab in **Settings › Developers** to see what n8n answered.

## Read or change your site from n8n

1. In **Settings › Developers › API keys**, create a key named "n8n" with the access it needs. Copy it.
2. Add an **HTTP Request** node. Use the address from **Settings › Developers › Quick start › n8n**.
3. For **Authentication**, choose **Generic Credential Type** › **Header Auth**, with the name **Authorization** and the value **Bearer** followed by your key.
