Overview
n8n is a consumer of the V5 Gateway — it calls the REST API (not MCP) to trigger tools from workflow nodes. Use this pattern when you need event-driven or scheduled triggering without a human in the loop.n8n does not connect via MCP. It calls the V5 REST API (
POST /api/v1/{tenant}/{domain}) using an HTTP Request node.Prerequisites
- n8n Cloud or self-hosted n8n
- A V5 bearer token (stored as an n8n credential)
- Tenant ID (e.g.
kahuna)
Setting up the credential
In n8n, create a Generic Credential (or Header Auth credential):Making a tool call
Use an HTTP Request node:
Example body — fetch HubSpot contacts:
Workflow patterns
Event-triggered enrichment
Daily report
Human-in-the-loop approval
REST API vs MCP
Troubleshooting
401 Unauthorized — Check the credential header. It must beAuthorization: Bearer <token>, not x-api-key.
TENANT_NOT_FOUND — Verify the tenant ID in the URL path matches your provisioned tenant.
UPSTREAM_ERROR — The upstream API (HubSpot, Google) rejected the request. Check the error_detail in the response body.