Skip to main content

Connect Your N8N Instance

Saves your N8N connection credentials after verifying connectivity. All N8N operations use these stored credentials.

POST /api/v1/agents/n8n/connect — 🔒 Requires Auth

Request Body

FieldTypeRequiredDescription
connection_namestringLabel for this connection
n8n_urlstringYour N8N instance URL
api_keystringN8N API key

Examples

curl -X POST https://nasiko.dev/api/v1/agents/n8n/connect \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json" \
-d '{
"connection_name": "My N8N",
"n8n_url": "https://n8n.mycompany.com",
"api_key": "n8n_api_abcdef123456"
}'
note

Nasiko tests the connection before saving. If the URL or API key is invalid, the request returns an error and credentials are not stored.