Connect GoHighLevel
The Poly B Guys · Site Visit CRM Sync

Current status

Live state of the GHL sync running behind the site visit form.

Checking…

Paste your GHL credentials

From GHL: Settings → Private Integrations → create token (Contacts + Opportunities + Notes scopes). Location ID is in Settings → Business Profile.

How to find these in GoHighLevel
  1. Log into app.gohighlevel.com
  2. Switch to The Poly B Guys sub-account
  3. Token: Settings → Private IntegrationsCreate new integration → enable scopes: contacts.write, contacts.readonly, opportunities.write, locations.readonly → copy the pit-… token
  4. Location ID: Settings → Business Profile → "Location ID" near the top, OR copy from the URL after /location/
  5. Paste both above → tap Connect & Test

This page calls ghl-setup which validates the token by hitting /locations/{id}, then stores both credentials in Supabase Vault and disables sandbox mode. Nothing is stored client-side.

Sandbox test

Fire a fake site visit through ghl-sync. When sandbox mode is on this writes to ghl_sandbox_log; when live it pushes to real GHL.

All requests use the public Supabase anon key. Tokens never live in this page — they go straight to the vault via the edge function.