How-to · Integrations & API
How to Build Your Own HighLevel App
When a Private Integration isn't enough, for example when many sub-accounts must install your tool, build a marketplace app with OAuth. This tutorial walks through the moving parts.
What you'll do
- Apps are created in HighLevel's developer marketplace portal.
- OAuth 2.0 lets agencies and sub-accounts install your app and grant scoped access.
- Choose a distribution type (agency or sub-account) and request only the scopes you need.
- Apps can subscribe to webhook events so your server hears about changes.
To build a HighLevel app, create a developer account on HighLevel's marketplace developer portal, create an app, set its distribution type (agency or sub-account), choose scopes, add your OAuth redirect URL, and implement the OAuth 2.0 flow on your server. When someone installs the app, HighLevel sends an authorization code your server exchanges for access and refresh tokens. From there you call API v2 like any other integration.
Before you start
- A developer comfortable with OAuth 2.0, HTTPS servers and token storage.
- A hosted backend with a public HTTPS URL for the OAuth redirect and webhooks.
- A sandbox or test account to install the app into while developing.
- A clear scope list: exactly which data the app reads and writes.
App building blocks
| Piece | What it is | Decision |
|---|---|---|
| Distribution type | Who installs: agency or sub-account | Agency if one install should serve many sub-accounts |
| Scopes | Permissions requested at install | Minimum needed; extra scopes worry installers |
| Redirect URL | Where HighLevel sends the authorization code | Your server's HTTPS callback |
| Client ID and secret | Your app's credentials | Store the secret server-side only |
| Webhooks | Events HighLevel pushes to your app | Subscribe only to events you process |
| Listing | Private or public | Start private; go public after it's stable |
Step-by-step
- Create the app in the developer portal. Name it and describe what it does in plain language.
- Set the distribution type. Why it matters: it determines whether you receive agency-level or location-level tokens at install.
- Select scopes. Each must map to a feature you can explain to an installer.
- Add the redirect URL and generate client credentials.
- Implement OAuth. Send installers to HighLevel's authorization screen; on callback, exchange the code for tokens; store access and refresh tokens per installation; refresh before expiry.
- Call API v2 with the installation's access token and the
Versionheader, as in our API v2 tutorial. - Add webhooks for events like contact created or app installed/uninstalled, and verify incoming webhook requests as the docs describe.
- Install in your sandbox and test the full lifecycle.
Test it
- Install the app, perform the main action, and confirm results in HighLevel.
- Let an access token expire and confirm your refresh logic works.
- Uninstall and confirm your server stops calling the API for that installation.
- Install in a second account and confirm data never crosses between installations.
Common mistakes
- Storing tokens without the location or company ID they belong to.
- No refresh logic, so the app silently breaks after the first token expires.
- Requesting broad scopes "for later".
- Ignoring uninstall events, which leaves you holding tokens you shouldn't use.
- Client secret in a front-end app.
Should you build at all?
Building and maintaining an app is real software work. For one agency's internal automations, a Private Integration plus webhooks is usually enough. Build an app when installation by many accounts, or a marketplace presence, is the goal. Check the marketplace first in case it already exists.
Illustrative example: a reporting app for an agency
Illustrative only. An agency wants a custom dashboard showing lead counts and booked appointments for each client, pulled nightly.
- Distribution: agency-level, installed once by the agency.
- Scopes: read-only access to contacts, opportunities and calendars; nothing that writes or sends messages.
- Flow: after install, the server stores the agency token, exchanges it for location tokens for each client sub-account, and runs a nightly job that reads counts per location.
- Webhooks: subscribe to install and uninstall events so new clients are picked up and removed ones are dropped.
- Listing: private; only the agency uses it.
Read-only scopes make the app easy to approve and limit damage if credentials ever leak.
Security checklist
- Client secret and tokens stored encrypted, server-side only.
- Tokens stored with the company and location IDs they belong to.
- Refresh tokens rotated as the OAuth flow returns new ones.
- Incoming webhooks verified before processing.
- Logs scrubbed of personal data you don't need.
- A documented way for an installer to request data deletion.
What to build next
- Understand token levels in agency vs. location tokens.
- Learn how users find apps in marketplace apps.
Frequently asked questions
When should I build an app instead of using a Private Integration?
Use a Private Integration for your own scripts in your own account. Build an app when other agencies or many sub-accounts need to install your integration, or when you want a marketplace listing.
Do I need to publish my app publicly?
No. Apps can be kept private for your own agency and clients, or submitted for a public listing. Public listings go through HighLevel's review.
Where is the developer documentation?
HighLevel's API and app documentation is hosted on its marketplace developer site, including authorization, scopes and endpoint references.
Can my app get location tokens from an agency install?
HighLevel's OAuth documentation describes exchanging an agency-level token for location tokens for sub-accounts the app can access. Check the current docs for the exact flow.