GoHighLevel REST API: Endpoints, Authentication & Examples

API developer guide · 2026

GoHighLevel REST API: Endpoints, Authentication and Practical Examples

Want to connect GoHighLevel with your own app, website, CRM, or automation system? The HighLevel REST API lets developers send HTTP requests to supported endpoints for working with CRM data and other platform features. This guide explains authentication, request structure, common API tasks, JavaScript examples, rate limits, and troubleshooting.

Explore Official API Docs View GitHub Projects

Quick answer: GoHighLevel provides REST API endpoints for supported resources such as contacts, opportunities, calendars, and other CRM functions. To use them, select the appropriate API version and endpoint, authenticate with a supported token, include the required headers and permissions, and send an HTTP request. For private, single-account integrations, a Private Integration Token may be suitable. Public applications generally use OAuth 2.0.

Important API version note: HighLevel's API documentation contains versioned API surfaces and endpoint-specific requirements. API v1 reached end of support on December 31, 2025. For new development, use the current official documentation and supported endpoints rather than copying old tutorials that rely on legacy API keys or outdated routes.
How the GoHighLevel REST API works A developer application sends an authenticated HTTP request to the HighLevel API, which returns a response that the application processes. Request → API → Response Your app Code + token HTTP request Method + headers HighLevel API Checks access Response JSON / status Authenticate securely · Validate data · Handle errors · Log safely Exact routes, scopes, and headers depend on the selected endpoint.

What Is the GoHighLevel REST API?

A REST API lets one software application communicate with another over HTTP. Instead of manually exporting CRM data or copying information between tools, your code sends a request to a supported endpoint and processes the response.

For example, your application could submit a new lead to HighLevel, retrieve permitted contact information, or update an opportunity. The exact operations available depend on the endpoint, API version, authentication method, scopes, and account context.

HighLevel's API documentation is available through the official developer documentation. It provides endpoint descriptions, request parameters, authentication requirements, and response schemas.

01

Read data

Retrieve permitted records from supported resources, such as contacts or opportunities, for reporting or synchronization.

02

Create records

Send structured data to supported endpoints to create records when the correct permissions and required fields are provided.

03

Update information

Change supported fields or resources without requiring someone to repeat the same action manually in the CRM.

04

Connect applications

Build custom connections between HighLevel and other software using API requests, webhooks, and application logic.

GoHighLevel API v1, v2, and v3: What Should You Use?

One source of confusion is that older articles often use the term API v1, while current HighLevel documentation includes the modern v2 API and newer v3 documentation surfaces. Do not assume that every endpoint has identical versioning or that changing a URL prefix is enough to migrate an integration.

API referenceWhat to knowPractical advice
API v1Legacy API version; end of support was December 31, 2025.Plan migration rather than starting a new integration on v1.
API v2Modern API surface used by many HighLevel integration guides and Private Integration Tokens.Follow the endpoint-specific documentation, including required headers and authentication.
API v3 documentationHighLevel also publishes newer versioned documentation, including endpoints under a v3 route prefix where supported.Use v3 only for endpoints that explicitly document it. Do not assume every v2 endpoint has a v3 equivalent.

For current endpoint details, start with the HighLevel API reference. For legacy integrations, review the official API migration guide before changing authentication or request formats.

Do not mix versions casually. Some documented endpoints use the Version: 2021-07-28 header, while newer documented surfaces may use different version conventions. Copy the headers and route from the specific endpoint you are calling.

How to Authenticate With the GoHighLevel REST API

Before the API can return protected CRM data, it needs to establish that your application is authorized to access the requested resource. HighLevel supports Private Integration Tokens and OAuth 2.0 for different use cases.

Option 1: Private Integration Token

A Private Integration Token, often shortened to PIT, is useful for suitable internal integrations that access an agency account or a specific sub-account. You generate the token in HighLevel and choose the scopes it can use.

This can be a practical option for internal synchronization jobs, custom reporting, or a server-side script that works with one account context. A PIT is static and does not automatically refresh like a short-lived OAuth access token. It must be rotated or replaced when needed.

Typical setup:

  1. Open the appropriate HighLevel account settings and locate Private Integrations. Availability and navigation may depend on your account and enabled features.
  2. Create an integration with a clear name and description.
  3. Select only the scopes required by your application.
  4. Generate and securely store the token.
  5. Use the token as a Bearer token in the request's Authorization header.

Official guide: Private Integrations and token setup.

Option 2: OAuth 2.0

OAuth is generally the appropriate choice when you are developing a public application that other HighLevel accounts can install and authorize. It allows users to grant your app specific permissions without sharing their account passwords with your application.

A typical authorization-code flow involves registering an app, configuring redirect URLs and scopes, sending the user through authorization, exchanging the returned code for tokens, securely storing the tokens, and refreshing access when required.

OAuth has more moving parts than a single private token, but it is designed for delegated access across users and accounts. Use the exact flow documented for your app type.

Official guide: HighLevel OAuth 2.0 documentation.

Authentication choiceBest fitRemember
Private Integration TokenSuitable private, server-to-server integrationsScope permissions carefully and rotate tokens securely.
OAuth 2.0Public apps and integrations installed by multiple users or accountsImplement authorization, token storage, refresh, and revocation handling as documented.

How to Make Your First GoHighLevel REST API Request

The simplest way to understand the API is to send one read request. The example below uses a documented location endpoint. It demonstrates the general request structure, but you must replace the placeholder with your own authorized location ID and token.

Example: Retrieve a location

curl --request GET \
  --url "https://services.leadconnectorhq.com/locations/YOUR_LOCATION_ID" \
  --header "Authorization: Bearer YOUR_PRIVATE_INTEGRATION_TOKEN" \
  --header "Accept: application/json" \
  --header "Version: 2021-07-28"

Here is what each part means:

  • GET requests a resource rather than creating a new one.
  • The URL identifies the endpoint and location you want to access.
  • Authorization supplies the token used to authenticate the request.
  • Accept indicates that the client expects JSON.
  • Version specifies the version required by this documented endpoint.

Use the endpoint's current documentation to confirm that the selected token type, location context, route, and headers are correct. A valid token alone does not guarantee access to every endpoint.

Example: Create a contact with cURL

HighLevel documents a contact-creation request using a POST method. The following illustrates the payload shape. Use a test account or test contact first, and confirm the endpoint's current required fields before sending it.

curl --request POST \
  --url "https://services.leadconnectorhq.com/contacts/" \
  --header "Authorization: Bearer YOUR_PRIVATE_INTEGRATION_TOKEN" \
  --header "Content-Type: application/json" \
  --header "Version: 2021-07-28" \
  --data '{
    "firstName": "Test",
    "lastName": "Contact",
    "email": "test@example.com",
    "locationId": "YOUR_LOCATION_ID"
  }'

This example uses placeholder values. Do not create fake customer records in a live account without a reason. Check the response body and status code, and avoid repeatedly submitting a create request when you are unsure whether the first attempt succeeded.

Using the GoHighLevel REST API With JavaScript

You can call the REST API directly from JavaScript using fetch, or use the official SDK for a more structured interface. Direct requests are useful when you want to understand the HTTP behavior or work with an endpoint that you prefer to call manually.

Security rule: Make authenticated requests from a trusted server environment. Never place a private token or client secret in front-end JavaScript that is delivered to visitors' browsers.

Example: Read a location using Node.js

const token = process.env.HIGHLEVEL_PRIVATE_INTEGRATION_TOKEN;
const locationId = process.env.HIGHLEVEL_LOCATION_ID;

async function getLocation() {
  if (!token || !locationId) {
    throw new Error("Missing HighLevel configuration");
  }

  const response = await fetch(
    `https://services.leadconnectorhq.com/locations/${locationId}`,
    {
      method: "GET",
      headers: {
        Authorization: `Bearer ${token}`,
        Accept: "application/json",
        Version: "2021-07-28"
      }
    }
  );

  const body = await response.text();

  if (!response.ok) {
    throw new Error(
      `HighLevel API request failed: ${response.status}`
    );
  }

  return body ? JSON.parse(body) : null;
}

getLocation()
  .then(data => {
    // Process only the fields your app needs.
    console.log("Location request succeeded");
  })
  .catch(error => {
    // Do not log tokens or sensitive response data.
    console.error(error.message);
  });

This example demonstrates the request pattern and basic error checking. It does not cover every production concern, such as retry policy, response schema validation, structured logging, or token rotation. Add those controls before using the code in a critical application.

If you prefer a maintained library, see our GoHighLevel npm package guide and the official SDK repository.

Common GoHighLevel REST API Endpoint Categories

The available endpoints depend on the current API version and permissions. These categories are useful starting points when planning an integration.

CRM

Contacts

Work with supported contact operations, such as creating records, retrieving details, or updating permitted fields.

Find current contact endpoints

Sales pipeline

Opportunities

Build integrations around supported opportunity and pipeline operations for reporting and sales processes.

Find current opportunity endpoints

Scheduling

Calendars and appointments

Connect supported calendar resources and booking operations to scheduling systems or internal applications.

Find current calendar endpoints

Automation

Workflows and webhooks

Connect API operations with supported workflow actions or event-based notifications where the relevant functionality is available.

Explore webhook documentation

Do not assume every resource supports every HTTP method. An endpoint may allow reads but require different scopes for writes, or it may have specific payload fields and account restrictions. Always review the individual endpoint's documentation before building around it.

How to Handle API Responses and Errors

A successful request returns a response from the API, often containing JSON data. An unsuccessful request returns an HTTP status code and may include an error body that helps explain what went wrong.

Status or problemPossible explanationWhat to check
400 Bad RequestMalformed JSON, invalid fields, or missing required values.Compare the payload with the endpoint schema and inspect the response body.
401 UnauthorizedMissing, expired, invalid, or incorrectly supplied credentials.Verify the Bearer token and authentication method.
403 ForbiddenThe authenticated integration lacks permission or access.Review scopes, account context, and endpoint requirements.
404 Not FoundWrong route, resource ID, or inaccessible resource.Check the URL, IDs, and API version.
429 Too Many RequestsThe request rate has exceeded an applicable limit.Reduce request frequency and implement controlled backoff.
5xx server errorsA temporary service-side problem may have occurred.Retry carefully when appropriate and avoid duplicate write operations.

These are general HTTP troubleshooting patterns, not a guarantee that every HighLevel response will use the same status for every failure. Inspect the actual response and current endpoint documentation.

Build safer error handling

  • Check the HTTP status code before treating a response as successful.
  • Parse the response according to its content type and expected schema.
  • Record a request identifier or safe diagnostic details when available.
  • Never include access tokens, client secrets, or full sensitive customer records in logs.
  • Use bounded retries and backoff for transient failures.
  • For create or send operations, consider idempotency and duplicate prevention before retrying.

GoHighLevel REST API Rate Limits

HighLevel applies request limits to help maintain service stability. Its published guidance for public v2 API requests using OAuth describes a burst limit of 100 requests per 10 seconds and a daily limit of 200,000 requests per day, measured per Marketplace app and resource context as described in the official policy.

Do not treat these figures as universal limits for every API version, token type, endpoint, or account. Confirm the applicable limits for your integration and monitor the rate-limit response headers where provided.

The published headers include:

  • X-RateLimit-Limit-Daily
  • X-RateLimit-Daily-Remaining
  • X-RateLimit-Interval-Milliseconds
  • X-RateLimit-Max
  • X-RateLimit-Remaining

Official reference: HighLevel API documentation and rate-limit guidance.

How to avoid hitting the limit

  • Retrieve only the records and fields your application needs.
  • Use pagination and process results in manageable batches.
  • Avoid repeatedly requesting the same data when a safe cache will work.
  • Use webhooks for supported event notifications rather than constant polling.
  • Respect rate-limit headers and wait before retrying a throttled request.
  • Spread large synchronization jobs over time where possible.

REST API vs. Webhooks vs. SDK: Which Should You Choose?

These tools solve related but different problems. The REST API is the underlying way your application sends requests to supported endpoints. Webhooks deliver event notifications, while an SDK makes API calls easier to organize in a particular programming language.

OptionWhat it doesUse it when
REST APILets your application request or change supported resources.You need direct control over API calls and data processing.
WebhooksNotify your endpoint when supported events occur.Your system should react to changes without constant polling.
Official SDKProvides a programming-language interface and helper functions.You are building a Node.js or TypeScript application.
n8n or ZapierConnect supported services through visual automation.You want less custom code and the required actions are supported.
Native workflowsAutomate supported actions inside HighLevel.Your process can be handled by existing CRM automation features.

Explore our related guides: GoHighLevel integrations, n8n integration, Zapier integration, and HighLevel workflows.

REST API Security Best Practices

API access can expose customer information and allow changes to CRM records. Secure implementation is essential, especially if your integration handles contact details, messages, appointments, or sales data.

Use this security checklist

  • Request only the permissions your integration actually needs.
  • Keep tokens and client secrets on the server, not in public front-end code.
  • Use environment variables locally and a secure secrets manager in production.
  • Exclude local secret files from Git and review changes before committing.
  • Rotate exposed or compromised credentials promptly.
  • Validate webhook authenticity according to the current documentation.
  • Protect personal information in logs, exports, backups, and test fixtures.
  • Test against a sandbox or controlled account before using production records.

For Private Integration Tokens, HighLevel recommends periodic rotation and provides a token-rotation process. Check the current instructions for the overlap period and update every service that uses the token before the old credential expires.

Read the official Private Integrations guide for token handling and permission management.

Common GoHighLevel REST API Problems

My token works for one endpoint but fails for another

Different endpoints may require different scopes, token contexts, or API versions. Check the permissions required by the specific endpoint and whether your token belongs to the relevant agency or sub-account. Do not assume that access to one resource grants access to every resource.

The API returns an error even though my JSON looks valid

Valid JSON does not necessarily match the endpoint schema. Check required fields, accepted values, ID formats, headers, and the documented request body. Read the error response before changing unrelated parts of the request.

My old API key stopped working with a newer endpoint

Legacy API keys are associated with the older API v1 approach, which reached end of support on December 31, 2025. Review the official migration guidance and configure an appropriate Private Integration Token or OAuth flow for your use case.

My integration creates duplicate contacts

Duplicate records can occur when a request is retried after a timeout or when your application does not check whether the record already exists. Design a safe matching strategy, check endpoint capabilities, and avoid blindly retrying create operations.

My API requests keep hitting rate limits

Reduce request volume, avoid unnecessary polling, process results in batches, and respect the applicable rate-limit headers. If supported for your use case, consider webhooks for event-driven updates.

Can I call the API directly from a website?

Public browser code is visible to visitors, so it is not a safe place to store a private integration token or client secret. Send requests through a secure server-side endpoint or another approved architecture that protects credentials and validates incoming requests.

Frequently Asked Questions

Does GoHighLevel have a REST API?

Yes. HighLevel provides REST endpoints for supported CRM resources and other platform functionality. See the official API documentation for current routes and requirements.

Is the GoHighLevel REST API free?

API access depends on your HighLevel account, plan, app type, endpoint, and applicable usage limits. Some API access is plan-dependent, and your integration may also incur hosting or third-party service costs. Check current account-specific access and pricing before planning a project.

What is the base URL for the GoHighLevel API?

The base URL depends on the API surface. Many documented v2 endpoints use https://services.leadconnectorhq.com, while other documented surfaces may use different route structures. Use the exact base URL and path shown in the current endpoint reference.

Should I use a Private Integration Token or OAuth?

A Private Integration Token can suit an internal integration that accesses a specific account context. OAuth is generally more appropriate for public applications that users install and authorize. Confirm the supported authentication method and required scopes for the endpoints you need.

Can I use the API with Python?

Yes. You can make HTTP requests using Python's HTTP libraries, provided you follow the API's authentication, headers, payload, and permission requirements. Check the official documentation for supported endpoints and examples.

Does the REST API support webhooks?

HighLevel provides webhook functionality for supported events and integration use cases. Webhooks complement REST requests: an event can notify your system, which can then make a separate API request when necessary. See the official webhook documentation.

Where can I find GoHighLevel API code examples?

Start with the official GitHub organization, the API SDK repository, and the SDK examples repository. Confirm that any sample uses a currently supported API surface.

Need CRM Automation Without Maintaining Custom API Code?

The REST API is useful when you need a custom connection or precise control over your data. But for many businesses, HighLevel's built-in CRM, funnels, and workflow automation can handle everyday processes without maintaining a separate application.

Explore the platform first, then decide whether native automation, a connector, or a custom API integration is the right fit.

Explore GoHighLevel Explore HighLevel Features

Related GoHighLevel Guides

API routes, versioning, scopes, rate limits, and authentication requirements can change. Confirm the latest official documentation for the endpoint you intend to use before deploying code or making changes to a live CRM.

GoHighLevel
CYBER WEEK Special

Get Free AI Tools For Your Agency

50% OFF
For 3 Months
Available on every plan
CLAIM GOHIGHLEVEL OFFER

See the official offer page for promotion terms.

ClickFunnels
Black Friday Special

Build Your Next Funnel

FREE 4 MONTHS
+ $1,500 GIVEAWAY
FREE 4 MONTHS +$1,500 GIVEAWAY

See the official promotion for eligibility and terms.