Direct API access to GoHighLevel resources. Create and manage contacts, opportunities, custom objects, and associations with full GHL functionality.
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:
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
firstName
string (required) - First name of the contact
lastName
string (optional) - Last name of the contact
string (optional) - Email address
phone
string (optional) - Phone number
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