Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计未展示

ghl-api-v2-%26-integrationsGHL API V2 26 integrations 搜索

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

14,454

周安装

595

GitHub Stars

5

下载量

6,570
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ghl-api-v2-%26-integrations(GHL API V2 26 integrations 搜索)
来源仓库:https://github.com/justin322322/ghl-skills
仓库路径:skills/ghl-api-v2-%26-integrations
安装命令:
npx skills add https://github.com/justin322322/ghl-skills --skill 'GHL API v2 & Integrations'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/justin322322/ghl-skills --skill 'GHL API v2 & Integrations'

简介

用于辅助 API 设计、接口文档和集成说明。

  • 适合梳理 endpoint、生成 OpenAPI 草稿或检查字段命名。
  • 使用时需确认真实业务语义和鉴权方式,避免凭空补字段。
  • 安装命令:npx skills add https://github.com/justin322322/ghl-skills --skill 'GHL API v2 & Integrations
  • 建议核对来源仓库 README 并确认操作边界。

SKILL.md

GHL API v2 & Integrations

Overview

GoHighLevel's API v2 is a RESTful API providing programmatic access to the platform's features. It enables custom integrations, workflow automation, data syncing, and building marketplace applications.

Important: API v1 is deprecated. All new development should use API v2.

Authentication

OAuth 2.0 (Authorization Code Grant)

Used for Marketplace Apps and multi-location integrations.

Flow:

1. User clicks "Install" on your marketplace app
2. Redirect to GHL authorization URL
3. User grants permission
4. Receive authorization code
5. Exchange code for access_token + refresh_token
6. Use access_token in API calls
7. Refresh token before expiry

Authorization URL:

https://marketplace.gohighlevel.com/oauth/chooselocation
  ?response_type=code
  &redirect_uri={YOUR_REDIRECT_URI}
  &client_id={YOUR_CLIENT_ID}
  &scope={SCOPES}

Token Exchange:

POST https://services.leadconnectorhq.com/oauth/token
Content-Type: application/x-www-form-urlencoded

client_id={CLIENT_ID}
&client_secret={CLIENT_SECRET}
&grant_type=authorization_code
&code={AUTH_CODE}
&redirect_uri={REDIRECT_URI}

Token Refresh:

POST https://services.leadconnectorhq.com/oauth/token
Content-Type: application/x-www-form-urlencoded

client_id={CLIENT_ID}
&client_secret={CLIENT_SECRET}
&grant_type=refresh_token
&refresh_token={REFRESH_TOKEN}

Private Integration Token

Used for single-location or internal integrations (no OAuth flow needed).

  1. Go to Settings → Integrations → Private Integrations in your sub-account
  2. Create a new integration
  3. Select required scopes
  4. Copy the generated API key

Usage:

GET https://services.leadconnectorhq.com/contacts/
Authorization: Bearer {PRIVATE_TOKEN}
Version: 2021-07-28

Rate Limits

Limit TypeValue
Burst100 requests per 10 seconds
Daily200,000 requests per day
ScopePer marketplace app, per resource (Location or Company)

Rate limit headers are returned in API responses:

X-RateLimit-Limit: 100
X-RateLimit-Remaining: 87
X-RateLimit-Reset: 1639159200
Best Practice: Implement exponential backoff when receiving 429 Too Many Requests.

API Endpoint Reference

Contacts

MethodEndpointDescription
GET/contacts/{contactId}Get a contact by ID
GET/contacts/Search/list contacts
POST/contacts/Create a new contact
PUT/contacts/{contactId}Update a contact
DELETE/contacts/{contactId}Delete a contact
POST/contacts/{contactId}/tagsAdd tags
DELETE/contacts/{contactId}/tagsRemove tags
GET/contacts/{contactId}/tasksGet contact tasks
GET/contacts/{contactId}/notesGet contact notes

Conversations

MethodEndpointDescription
GET/conversations/{conversationId}Get conversation
GET/conversations/searchSearch conversations
POST/conversations/messagesSend a message
GET/conversations/{id}/messagesGet messages in conversation
PUT/conversations/{id}/messages/{messageId}/statusUpdate message status

Calendars & Appointments

MethodEndpointDescription
GET/calendars/List calendars
GET/calendars/{calendarId}Get calendar
POST/calendars/Create calendar
PUT/calendars/{calendarId}Update calendar
GET/calendars/{calendarId}/free-slotsGet available slots
GET/calendars/eventsList appointments
POST/calendars/eventsBook appointment
PUT/calendars/events/{eventId}Update appointment

Opportunities

MethodEndpointDescription
GET/opportunities/searchSearch opportunities
GET/opportunities/{id}Get opportunity
POST/opportunities/Create opportunity
PUT/opportunities/{id}Update opportunity
DELETE/opportunities/{id}Delete opportunity
PUT/opportunities/{id}/statusUpdate status (won/lost/open)
GET/opportunities/pipelinesList pipelines

Payments

MethodEndpointDescription
GET/payments/ordersList orders
GET/payments/orders/{orderId}Get order details
GET/payments/subscriptionsList subscriptions
GET/payments/transactionsList transactions
POST/payments/custom-provider/Create custom payment provider

Workflows

MethodEndpointDescription
GET/workflows/List workflows
POST/contacts/{contactId}/workflow/{workflowId}Add contact to workflow
DELETE/contacts/{contactId}/workflow/{workflowId}Remove contact from workflow

Other Endpoints

  • Users: CRUD for agency/location users
  • Locations: Manage sub-accounts
  • Forms: List and retrieve form submissions
  • Surveys: List and retrieve survey submissions
  • Businesses: Manage business profiles
  • Social Planner: Schedule and manage social posts
  • Media: Upload and manage files
  • Custom Fields / Custom Values: CRUD operations

Webhooks

Webhooks push real-time event data to your application.

Setup

  1. Go to Settings → Integrations → Webhooks in your sub-account
  2. Add a webhook URL
  3. Select events to subscribe to

Key Webhook Events

EventDescription
ContactCreateNew contact created
ContactUpdateContact record updated
ContactDeleteContact deleted
ContactTagUpdateTag added or removed
ConversationUnreadUpdateNew unread message
InboundMessageIncoming SMS, email, or chat
OutboundMessageOutgoing message sent
AppointmentCreateNew appointment booked
AppointmentUpdateAppointment rescheduled/cancelled
OpportunityCreateNew opportunity created
OpportunityStageUpdateOpportunity moved to new stage
OpportunityStatusUpdateOpportunity won/lost/abandoned
TaskCreateNew task assigned
NoteCreateNew note added
FormSubmissionForm submitted
SurveySubmissionSurvey completed

Webhook Payload Example

{
  "type": "ContactCreate",
  "locationId": "loc_abc123",
  "id": "contact_xyz789",
  "firstName": "John",
  "lastName": "Doe",
  "email": "john@example.com",
  "phone": "+15551234567",
  "tags": ["new-lead", "source:facebook"],
  "dateAdded": "2025-01-15T10:30:00Z"
}

Best Practices

  1. Respond with 200 quickly — Process webhook data asynchronously
  2. Validate payloads — Check for required fields before processing
  3. Handle duplicates — Implement idempotency for webhook handlers
  4. Log everything — Store raw payloads for debugging
  5. Set up retry logic — GHL retries failed webhook deliveries

Building Marketplace Apps

Steps

  1. Create a developer account at marketplace.gohighlevel.com
  2. Register your app — Set redirect URIs, scopes, and app details
  3. Implement OAuth 2.0 — Handle auth flow, token storage, and refresh
  4. Build your integration — Use API endpoints to interact with GHL data
  5. Submit for review — GHL reviews before publishing to the marketplace
  6. Maintain and update — Monitor for API changes and update accordingly

Required Scopes

Select only the scopes your app needs:

  • contacts.readonly / contacts.write
  • conversations.readonly / conversations.write / conversations/message.readonly / conversations/message.write
  • calendars.readonly / calendars.write / calendars/events.readonly / calendars/events.write
  • opportunities.readonly / opportunities.write
  • locations.readonly / locations.write
  • workflows.readonly
  • users.readonly / users.write
  • payments.readonly / payments.write
  • forms.readonly / surveys.readonly

Integration Patterns

Common Integrations

ToolPattern
ZapierUse GHL's Zapier app or custom webhooks
Make (Integromat)HTTP module with API endpoints
Google SheetsNative workflow action or API-based sync
SlackWebhook notifications from workflows
StripeNative integration for payments
WordPressEmbed forms, calendars; use tracking code
ShopifyWebhook-based order sync
Custom AppsDirect API v2 integration

Data Sync Pattern

External System ←→ Middleware (Node.js/Python) ←→ GHL API v2
                                                    ↕
                                              GHL Webhooks

Error Handling

// Example: Node.js API call with error handling
async function getContact(contactId, token) {
  try {
    const response = await fetch(
      `https://services.leadconnectorhq.com/contacts/${contactId}`,
      {
        headers: {
          Authorization: `Bearer ${token}`,
          Version: "2021-07-28",
        },
      },
    );

    if (response.status === 429) {
      // Rate limited — wait and retry
      const retryAfter = response.headers.get("Retry-After") || 10;
      await sleep(retryAfter * 1000);
      return getContact(contactId, token); // Retry
    }

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

    return await response.json();
  } catch (error) {
    console.error("GHL API Error:", error);
    throw error;
  }
}

Key Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.75%
按下载量换算2,414

Claude

31.46%
按下载量换算2,067

Cursor

19%
按下载量换算1,248

Gemini CLI

8.11%
按下载量换算533

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills