createSubAccountLocation posts to the agency locations endpoint with the business details, the owner's prospect info, and a snapshot id. The snapshot is the only API-supported way to get the sales pipeline and its stages into a fresh sub-account. Snapshot loads are asynchronous, so getSnapshotPushStatus is polled before reading pipelines. listSnapshots lets the operator pick or verify the template.
Also called: agency API · snapshot · new location · provisioning the CRM
- 1Signup or operator provisioning calls createSubAccountLocation with name, address, timezone and prospect info.
- 2The snapshot id (env default or explicit) is included on the create.
- 3The returned location id is stored on the organizations row.
- 4getSnapshotPushStatus is polled until the snapshot has landed.
- 5The connect step then finds the pipeline and maps stages by name.
Recorded in the module header: 'SNAPSHOT: pass GHL_AGENCY_SNAPSHOT_ID (env) or input.snapshotId to load our template snapshot into the new location at creation — this is the only API-supported way to get the Sales pipeline (+ stages) into a fresh sub-account. Snapshot loads are ASYNC on GHL's side; use getSnapshotPushStatus() to verify before reading pipelines.'
- A fresh sub-account had no pipeline or stages until someone built them by hand.
- Reading pipelines before the async snapshot landed returned nothing.
See it on your own jobs
Twenty minutes, your numbers, no slide deck. We’ll build one of your real buildings in front of you and send you the estimate link at the end — yours to keep either way.
or keep browsing features →