From ea99a836786f3a45ee1b05ad5596d95ab3b3b611 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Wed, 4 Mar 2026 21:30:06 -0800 Subject: [PATCH] fix: use correct Twenty CRM GraphQL endpoint (/graphql) Twenty CRM exposes data queries at /graphql, not /api or /api/graphql. Co-Authored-By: Claude Opus 4.6 --- modules/rnetwork/mod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rnetwork/mod.ts b/modules/rnetwork/mod.ts index c3674f3..de83cb8 100644 --- a/modules/rnetwork/mod.ts +++ b/modules/rnetwork/mod.ts @@ -34,7 +34,7 @@ function getTokenForSpace(space: string): string { async function twentyQuery(query: string, variables?: Record, space?: string) { const token = space ? getTokenForSpace(space) : TWENTY_DEFAULT_TOKEN; if (!token) return null; - const res = await fetch(`${TWENTY_API_URL}/api/graphql`, { + const res = await fetch(`${TWENTY_API_URL}/graphql`, { method: "POST", headers: { "Content-Type": "application/json",