Skip to main content

Register N8N Workflow as Agent

Registers an n8n workflow as an A2A-compatible agent. The authenticated user becomes the owner.

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

Request Body

FieldTypeRequiredDescription
workflow_idstringN8N workflow ID to register
agent_namestringCustom agent name (auto-generated if omitted)
agent_descriptionstringAgent description

Examples

curl -X POST https://nasiko.dev/api/v1/agents/n8n/register \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json" \
-d '{
"workflow_id": "wf-abc123",
"agent_name": "invoice-processor",
"agent_description": "Processes and routes invoice documents"
}'