Skip to content
App marketplace

API Center of Excellence | Python and PHP SDKs

Ship integrations faster with GHL Customer Care’s PHP & Python SDKs—auto OAuth, typed clients for every v2 endpoint, webhook helpers, and pluggable token storage.

2 min read435 words3 explained imagesUpdated Wed, 10 Dec, 2025 at 7:40 AM
View as markdownOpen in ClaudeOpen in ChatGPT
Each image has a one line explanation. Switch to full detail for the step it belongs to, the fields and buttons involved, examples and the whole procedure.
On this page
  1. What is the GHL Customer Care PHP & Python SDK?
  2. Key Benefits of GHL Customer Care SDKs
  3. Supported OAuth 2.0 Workflows
  4. Database-Agnostic Token Storage
  5. SDK Auto-Generation
  6. Resources
  7. Frequently Asked Questions

Ship integrations faster—no more hand-rolling OAuth flows. The new GHL Customer Care PHP and Python SDKs drop into your stack, handle all token work automatically, and expose every public API with type-safe helpers.


TABLE OF CONTENTS


What is the GHL Customer Care PHP & Python SDK?

GHL Customer Care’s officially supported GHL Customer Care/api-client (PHP) and GHL Customer Care-api-client (Python) libraries wrap the entire v2 Public API. Each SDK automates OAuth 2.0 token exchange, rotation, uninstall cleanup, and even marketplace bulk-installs—letting you focus on features instead of authentication plumbing.

What is the GHL Customer Care PHP & Python SDK? (image 1 of 3) What this shows GHL Customer Care’s officially supported GHL Customer Care/api-client (PHP) and GHL Customer Care-api-client (Python) libraries wrap the entire… What this shows Illustrates the "What is the GHL Customer Care PHP & Python SDK?" section of "API Center of Excellence | Python and PHP SDKs". This screenshot appears in the "What is the GHL Customer Care PHP & Python SDK?" section of "API Center of Excellence | Python and PHP SDKs". The text alongside this image reads: GHL Customer Care’s officially supported GHL Customer Care/api-client (PHP) and GHL Customer Care-api-client (Python) libraries wrap the entire v2 Public API. Each SDK automates OAuth 2.0 token exchange, rotation, uninstall cleanup, and even marketplace bulk-installs—letting you focus on features…. Immediately after, the guide continues: One-line OAuth 2.0: exchange, store, and refresh tokens behind the scenes. Database-agnostic session storage adapters (Memory, MongoDB, Redis, MySQL, etc.). Webhook helpers validate signatures and process INSTALL / UNINSTALL events…. Image 1 of 3 What this coversGHL Customer Care’s officially supported GHL Customer Care/api-client (PHP) and GHL Customer Care-api-client (Python) libraries wrap the entire v2 Public API. Each SDK automates OAuth 2.0 token exchange, rotation, uninstall cleanup, and even marketplace bulk-installs—letting you focus on features instead of authentication plumbing. Next stepOne-line OAuth 2.0: exchange, store, and refresh tokens behind the scenes. Database-agnostic session storage adapters (Memory, MongoDB, Redis, MySQL, etc.). Webhook helpers validate signatures and process INSTALL / UNINSTALL events automatically. Typed service methods for every public endpoint, cutting boilerplate and runtime errors. Auto-generated with each API release—your client stays current without manual updates.

Key Benefits of GHL Customer Care SDKs

  • One-line OAuth 2.0: exchange, store, and refresh tokens behind the scenes.
  • Database-agnostic session storage adapters (Memory, MongoDB, Redis, MySQL, etc.).
  • Webhook helpers validate signatures and process INSTALL / UNINSTALL events automatically.
  • Typed service methods for every public endpoint, cutting boilerplate and runtime errors.
  • Auto-generated with each API release—your client stays current without manual updates.

Supported OAuth 2.0 Workflows

A flexible token engine covers every installation path developers meet.

  • Sub-account installs via the Marketplace “Connect” button
  • Bulk agency installs (all locations at once)
  • Future auto-installs when new sub-accounts are created
  • Daily silent refresh before expiry and graceful uninstall cleanup

Database-Agnostic Token Storage

Pluggable storage adapters keep tokens safe wherever you already persist data. Swap in:

  • In-memory cache for local dev
  • MongoDB, Redis, MySQL, PostgreSQL, or your own class implementing the storage interface 

SDK Auto-Generation

Both clients rebuild automatically from the OpenAPI spec each time GHL Customer Care releases new endpoints or fields, so you can update with a simple composer update or pip install --upgrade. 

The SDK aims to abstract the complexity of implementing OAuth 2.0 away from developers, fully managing tokens for them across all scenarios.


Resources

1. SDK OVERVIEW

2. PYTHON:

  • GHL Customer Care Python SDK
  • Example Python Project
    Step 2 of 2: Example Python Project What this shows Step 2 of 2: Example Python Project What this shows Shows what this covers for step 2 of 2 in the "Resources" section of "API Center of Excellence | Python and PHP SDKs". This screenshot accompanies step 2 of 2 in the "Resources" section of "API Center of Excellence | Python and PHP SDKs". At this point in the walkthrough you example Python Project. For context, this section explains: The SDK aims to abstract the complexity of implementing OAuth 2.0 away from developers, fully managing tokens for them across all scenarios. This part of the guide covers 4 fields, listed below. Step 2 of 2Image 2 of 3 What this coversExample Python Project
    Fields in this part of the guide GHL Customer Care Python SDKExample Python ProjectGHL Customer Care PHP SDKExample PHP Project
    Buttons and menus referenced 1.SDK OVERVIEW
    All 2 steps in this procedure
    1. GHL Customer Care Python SDK
    2. Example Python Project this image

3. PHP:

  • GHL Customer Care PHP SDK
  • Example PHP Project
    Step 2 of 2: Example PHP Project What this shows Step 2 of 2: Example PHP Project What this shows Shows what this covers for step 2 of 2 in the "Resources" section of "API Center of Excellence | Python and PHP SDKs". This screenshot accompanies step 2 of 2 in the "Resources" section of "API Center of Excellence | Python and PHP SDKs". At this point in the walkthrough you example PHP Project. For context, this section explains: The SDK aims to abstract the complexity of implementing OAuth 2.0 away from developers, fully managing tokens for them across all scenarios. This part of the guide covers 4 fields, listed below. Step 2 of 2Image 3 of 3 What this coversExample PHP Project
    Fields in this part of the guide GHL Customer Care Python SDKExample Python ProjectGHL Customer Care PHP SDKExample PHP Project
    Buttons and menus referenced 1.SDK OVERVIEW
    All 2 steps in this procedure
    1. GHL Customer Care PHP SDK
    2. Example PHP Project this image

Frequently Asked Questions

Q: Do I still need to refresh tokens manually?

No. Once session storage is configured, the SDK refreshes tokens silently before they expire.

Q: Can I store tokens in MySQL instead of MongoDB?

Yes. Extend the provided storage base class with your own create/read/update logic.

Q: Does the SDK support Private Integration Tokens (PIT)?

Absolutely—pass privateIntegrationToken when you don’t need OAuth flows.

Q: How do I validate webhook signatures?

Use client.webhooks.subscribe() in Python or getWebhookManager()->verifySignature() in PHP.

Q: Is the SDK compatible with GHL Customer Care’s v1 endpoints?

No. The SDK targets Public API v2 only.

Q: Will updates break my code?

New releases are semver-tagged; breaking changes trigger a major version bump so you can pin and upgrade deliberately.

Frequently asked questions

What is the GHL Customer Care PHP & Python SDK?
GHL Customer Care’s officially supported GHL Customer Care/api-client (PHP) and GHL Customer Care-api-client (Python) libraries wrap the entire v2 Public API. Each SDK automates OAuth 2.0 token exchange, rotation, uninstall cleanup, and even marketplace bulk-installs—letting you focus on features instead of authentication plumbing.

Was this guide helpful?

Related guides