To create a Disconnect Page in n8n, follow these steps:
Step 1: Create a new node
In the n8n editor, click on the “+” button and search for “Disconnect”. Select the “Disconnect” node from the search results.
Step 2: Configure the Disconnect node
Configure the Disconnect node by filling in the following fields:
- Node name: Enter a name for your Disconnect node.
- Description: Enter a brief description of what this node does.
- Enabled: Toggle the switch to enable or disable the node.
Step 3: Add an Input node (optional)
If you want to pass data from another node to this Disconnect node, add an input node. For example:
- Input Node: “Get Node Output”
- Node Configuration: Configure the input node to connect to the output of another node.
Step 4: Set up the Disconnect action
Configure the Disconnect action by filling in the following fields:
- Disconnect URL: Enter the URL that will be used for disconnecting.
- Disconnect Method: Select the HTTP method (e.g., POST, GET) for the disconnect request.
- Parameters: Add any parameters you want to pass to the disconnect request.
Step 5: Add a Post node (optional)
If you want to send the data from the Disconnect node to another service, add a Post node. For example:
- Post Node: “Send API Request”
- Node Configuration: Configure the post node to connect to your chosen API endpoint.
Step 6: Save and Deploy
Save and deploy your n8n workflow with the Disconnect node.
Example of a Disconnect Page in n8n:
[
{
"id": "1",
"type": "Disconnect",
"name": "Disconnect",
"description": "Disconnect from QuickBooks API",
"enabled": true,
"inputs": [
{
"id": "in1",
"type": "Get Node Output"
}
],
"outputs": [],
"actions": [
{
"id": "act1",
"type": "Disconnect URL",
"disconnect_url": "https://api.quickbooks.com/v3/company/{company_id}/users/{user_id}",
"disconnect_method": "POST",
"parameters": ["company_id", "user_id"]
}
]
},
{
"id": "2",
"type": "Post",
"name": "Send API Request",
"description": "Send disconnect request to QuickBooks API",
"enabled": true,
"inputs": [
{
"id": "in1",
"type": "Get Node Output"
}
],
"outputs": [],
"actions": []
}
]
This Disconnect Page in n8n connects to the QuickBooks API and sends a disconnect request using the POST method. The Disconnect URL node specifies the URL that will be used for disconnecting, while the Post node sends the data from the Disconnect node to another service (not shown).