Documentation Index
Fetch the complete documentation index at: https://docs.ascendgtm.net/llms.txt
Use this file to discover all available pages before exploring further.
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:| Field | Value |
|---|---|
| Method | POST |
| URL | https://ascend-gateway-v5.ascendgtm.workers.dev/api/v1/kahuna/crm |
| Authentication | Generic Credential → V5 Gateway |
| Body | JSON (see below) |
Workflow patterns
Event-triggered enrichment
Daily report
Human-in-the-loop approval
REST API vs MCP
| REST API (for n8n) | MCP (for Claude/Cursor) | |
|---|---|---|
| Protocol | HTTP POST | Streamable HTTP |
| Auth | Bearer token header | OAuth 2.1 or Bearer |
| Best for | Event-driven, scheduled | Interactive, agentic |
| Tool selection | Caller specifies tool | AI chooses tool |
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.