Home/HighLevel/Features/Marketing/TypeScript/JavaScript SDK for OAuth 2.0 automation in HighLevel

Marketing

TypeScript/JavaScript SDK for OAuth 2.0 automation in HighLevel

In short

TypeScript/JavaScript SDK in HighLevel automates OAuth 2.0 app installations, token refreshes and de installations, reducing manual authentication work.

AreaMarketing · Section
Used forAutomated OAuth installation, Continuous token refresh, Database agnostic token storage
Setup steps5 steps in 1 task
Last updatedNovember 3, 2026

01TypeScript/JavaScript SDKs, explained

The TypeScript/JavaScript SDK from HighLevel's API Center of Excellence handles the full OAuth 2.0 flow, including app installations for subaccounts or bulk agencies, daily token refreshes, and cleanup when an app is removed.

The SDK is published on NPM as @gohighlevel/API client, supports all public APIs, and includes embedded sample code. Automated SDK generation keeps the SDK aligned with API updates.

02How businesses use the TypeScript/JavaScript SDK

  • Automated OAuth installation. Developers add the SDK to their project and configure credentials. The library then creates and manages installations for subaccounts, bulk agencies or future automated setups without manual steps.
  • Continuous token refresh. The SDK monitors token expiry and automatically refreshes tokens each day, keeping API calls uninterrupted.
  • Database agnostic token storage. Developers integrate their own database. Such as MongoDB or Redis. Using the SDK’s sample implementations. Tokens are stored and retrieved from the chosen store, allowing seamless use of existing infrastructure.

03How to set up and use the TypeScript/JavaScript SDK in HighLevel

Set up the SDK

  1. Install the SDK via NPM: Npm install @gohighlevel/API client.
  2. Import the SDK: Import { HighLevel } from '@gohighlevel/API client';.
  3. Configure OAuth 2.0 credentials and redirect URIs.
  4. Integrate your preferred database for token storage, using the provided MongoDB or Redis samples if needed.
  5. Run a test API call with the sample code to verify connectivity.

04What it looks like in HighLevel

05Settings that matter

  • OAuth 2.0 credentials. Provide your app's client ID, client secret and redirect URIs so the SDK can handle authentication flows.
  • Preferred database. Specify the database system you want to use for token storage; the SDK works with any database and includes sample code for MongoDB and Redis.

Michael's take

Michael Reimer
Michael ReimerFounder of CRM Pros, HighLevel Commander and Certified Admin

This SDK feels like a modest convenience that can become a real shift for teams that constantly build or maintain HighLevel integrations. Automating the OAuth dance reduces the need to write repetitive token refresh code and helps keep the client library aligned with API changes.

A SaaS agency that spins up dozens of client dashboards each month would benefit. They can drop the SDK into their codebase, point it at their existing MongoDB cluster for token storage, and let it handle installations and daily refreshes across all client subaccounts without extra effort.

Get More InformationOpens on HighLevelPublished November 3, 2026 · Updated November 3, 2026

Common questions

Common questions about the TypeScript/JavaScript SDK.

What processes does the SDK automate?

It automates OAuth 2.0 workflows including all installation scenarios, scheduled token refreshes upon expiry, and uninstallation procedures.

How does the token refresh mechanism function?

The SDK automatically refreshes tokens upon expiry, performing a daily refresh to keep API connectivity uninterrupted.

Can I use my existing database solution with this SDK?

Yes, the SDK’s database agnostic design lets you integrate any database for token management.

Does the SDK support all HighLevel API endpoints?

Yes, it supports every public API endpoint in the HighLevel platform and includes embedded sample code for each.

Where can I find documentation and sample projects?

Comprehensive docs and examples are on GitHub at github.com/HighLevel/ghl sdk examples and the Getting Started guide at marketplace.gohighlevel.com/docs/oauth/GettingStartedSDK.

Next step

Pick the features that matter. Then get the plan that unlocks them.

Explore the features you want, start with the five at the top, and upgrade through my link when you are ready. The bonuses and the team come with it.

The features directory explains every HighLevel feature in plain English. Browse it to see what the platform can do.

Back to the FeaturesSee the full details
⌃

Site preview

Explore the next page

This destination is reserved in the page inventory and is not built yet.