GHL Direct API Documentation

Direct API access to GoHighLevel resources. Create and manage contacts, opportunities, custom objects, and associations with full GHL functionality.

GHL Request Form

Request Data

Request Preview

Method: POST

URL: /api/ghl/test-location-123

Headers:

{
  "Content-Type": "application/json",
  "m4-connect-key": "[your-api-key]",
  "x-operation-type": "create-contact"
}

Body:

API Reference

Operation Types

create-contact

Create a new contact in GHL with name, email, and phone

create-opportunity

Create a new opportunity linked to a contact

create-custom-object

Create a custom object record with flexible field mapping

create-association

Create associations between different GHL objects

Common Fields

firstName

string (required) - First name of the contact

lastName

string (optional) - Last name of the contact

email

string (optional) - Email address

phone

string (optional) - Phone number

Error Responses

400 Bad Request

Missing required fields or invalid operation type

401 Unauthorized

Invalid or missing API key header

500 Server Error

Internal server error while processing request