From 65c1754babfc73a221d18269763a38b550e18476 Mon Sep 17 00:00:00 2001 From: Head of Product & Engineering Date: Mon, 6 Apr 2026 11:09:28 +0200 Subject: [PATCH] fix: pass appId to /oauth/installedLocations request The endpoint requires appId (GHL client ID) as a query parameter. Without it the API returns 422 "appId must be a string". Co-Authored-By: Paperclip --- internal/ghl/oauth.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/ghl/oauth.go b/internal/ghl/oauth.go index 3af9d2d..e5b6054 100644 --- a/internal/ghl/oauth.go +++ b/internal/ghl/oauth.go @@ -295,6 +295,7 @@ func (h *OAuthHandler) getCompanyLocations(ctx context.Context, companyAccessTok } q := req.URL.Query() q.Set("companyId", companyID) + q.Set("appId", h.clientID) q.Set("isInstalled", "true") req.URL.RawQuery = q.Encode() req.Header.Set("Authorization", "Bearer "+companyAccessToken)