ghl-mcp-server
v2.0.2A Model Context Protocol (MCP) server for GoHighLevel API v3 — giving any AI agent full access to your GHL location.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ghl_get_contact
Get a single contact by ID with all fields, tags, and custom data.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | The contact ID |
ghl_create_contact
Create a new contact in the GHL location. Returns the created contact object.
| Parameter | Type | Description |
|---|---|---|
address1 | string | |
assignedTo | string | User ID the contact is assigned to |
city | string | |
companyName | string | |
country | string | |
customFields | array | Custom field values [{id, fieldValue}] |
dateOfBirth | string | Birth date, e.g. YYYY-MM-DD |
dnd | boolean | Do Not Disturb flag |
dndSettings | object | Per-channel DND settings |
email | string | |
firstName | string | |
gender | string | Gender of the contact |
inboundDndSettings | object | Inbound DND settings per channel |
lastName | string | |
name | string | Full name of the contact |
phone | string | E.164 format preferred, e.g. +15551234567 |
postalCode | string | |
source | string | Lead source |
state | string | |
tags | array | |
timezone | string | |
website | string |
ghl_update_contact
Update an existing contact. Only provide fields you want to change.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | The contact ID to update |
address1 | string | |
assignedTo | string | User ID the contact is assigned to |
city | string | |
country | string | |
customFields | array | |
dateOfBirth | string | Birth date, e.g. YYYY-MM-DD |
dnd | boolean | |
dndSettings | object | Per-channel DND settings |
email | string | |
firstName | string | |
inboundDndSettings | object | Inbound DND settings per channel |
lastName | string | |
name | string | Full name of the contact |
phone | string | |
postalCode | string | |
source | string | |
state | string | |
tags | array | |
timezone | string | |
website | string |
ghl_upsert_contact
Create or update a contact by email or phone. Useful for ensuring no duplicates.
| Parameter | Type | Description |
|---|---|---|
address1 | string | |
assignedTo | string | User ID the contact is assigned to |
city | string | |
companyName | string | |
country | string | |
createNewIfDuplicateAllowed | boolean | Allow creating a new contact even if a duplicate is found |
customFields | array | |
dateOfBirth | string | Birth date, e.g. YYYY-MM-DD |
dnd | boolean | Do Not Disturb flag |
dndSettings | object | Per-channel DND settings |
email | string | |
firstName | string | |
gender | string | Gender of the contact |
inboundDndSettings | object | Inbound DND settings per channel |
lastName | string | |
name | string | Full name of the contact |
phone | string | |
postalCode | string | |
source | string | |
state | string | |
tags | array | |
timezone | string | |
website | string |
ghl_delete_contact
Permanently delete a contact by ID.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | The contact ID to delete |
ghl_search_contacts
List or search contacts. Call with no arguments to list all contacts (paginated); pass filters for tags, pipeline stage, source, etc. for advanced search.
| Parameter | Type | Description |
|---|---|---|
filters | array | Advanced filter conditions |
page | number | |
pageLimit | number | |
query | string | Full-text search query |
sortBy | string | |
sortOrder | string |
ghl_add_contact_tags
Add one or more tags to a contact.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | |
tags * | array | Tags to add |
ghl_remove_contact_tags
Remove one or more tags from a contact.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | |
tags * | array | Tags to remove |
ghl_get_contact_notes
Get all notes for a contact.
| Parameter | Type | Description |
|---|---|---|
contactId * | string |
ghl_create_contact_note
Add a note to a contact.
| Parameter | Type | Description |
|---|---|---|
body * | string | Note content |
contactId * | string | |
color | string | Hex color code for the note |
pinned | boolean | Whether the note is pinned |
title | string | Title of the note |
userId | string | User ID to attribute note to |
ghl_update_contact_note
Update an existing contact note. Spec has no required fields on update.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | |
noteId * | string | |
body | string | Updated note content |
color | string | Hex color code for the note |
pinned | boolean | Whether the note is pinned |
title | string | Title of the note |
userId | string | User ID to attribute note to |
ghl_delete_contact_note
Delete a note from a contact.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | |
noteId * | string |
ghl_get_contact_tasks
Get all tasks for a contact.
| Parameter | Type | Description |
|---|---|---|
contactId * | string |
ghl_create_contact_task
Create a task for a contact.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | |
dueDate * | string | Due date ISO 8601 (e.g. 2024-12-31T17:00:00Z) |
title * | string | Task title |
assignedTo | string | User ID to assign task to |
body | string | Task description |
completed | boolean | Mark task as completed |
ghl_update_contact_task
Update a task for a contact.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | |
taskId * | string | |
assignedTo | string | |
body | string | |
completed | boolean | Mark task completed or not |
dueDate | string | |
title | string |
ghl_delete_contact_task
Delete a task from a contact.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | |
taskId * | string |
ghl_add_contact_to_workflow
Enroll a contact into a GHL workflow/automation. Use the configured workflow IDs or supply a custom one.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | |
workflowId * | string | The workflow ID to enroll the contact in. Use ghl_get_workflows to discover available workflow IDs. |
eventStartTime | string | Optional ISO 8601 event start time for time-based triggers |
ghl_remove_contact_from_workflow
Remove a contact from a GHL workflow/automation.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | |
workflowId * | string | Workflow ID to remove contact from |
ghl_get_contact_appointments
Get all appointments booked for a contact.
| Parameter | Type | Description |
|---|---|---|
contactId * | string |
ghl_search_conversations
Search conversations in the GHL location. Filter by contact, status, type, or date.
| Parameter | Type | Description |
|---|---|---|
assignedTo | string | Comma-separated user IDs to filter by assignee |
contactId | string | Filter by contact ID |
endDate | number | End timestamp in milliseconds |
followers | string | Comma-separated user IDs to filter by followers |
id | string | Filter by conversation ID |
lastMessageAction | string | |
lastMessageDirection | string | |
lastMessageType | string | Filter by last message channel type |
limit | number | |
mentions | string | Comma-separated user IDs to filter by mentions |
query | string | Search query |
scoreProfile | string | Score profile ID to filter by |
scoreProfileMax | number | Maximum score profile value |
scoreProfileMin | number | Minimum score profile value |
sort | string | Sort direction |
sortBy | string | Field to sort by |
sortScoreProfile | string | Score profile ID used for sorting |
startAfterDate | Cursor for pagination | |
startDate | number | Start timestamp in milliseconds |
status | string |
ghl_get_conversation
Get a conversation by ID with metadata.
| Parameter | Type | Description |
|---|---|---|
conversationId * | string |
ghl_create_conversation
Create a new conversation thread for a contact.
| Parameter | Type | Description |
|---|---|---|
contactId * | string |
ghl_get_messages
Get messages in a conversation.
| Parameter | Type | Description |
|---|---|---|
conversationId * | string | |
lastMessageId | string | Cursor for pagination |
limit | number |
ghl_send_message
Send a message to a contact via SMS, email, WhatsApp, or other channel. This is the primary tool for outbound communication.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | The contact to message |
message * | string | Message body text |
type * | string | Message channel type |
appointmentId | string | ID of the associated appointment |
attachments | array | Array of attachment URLs |
conversationProviderId | string | |
customSubtypeId | string | Custom subtype ID for email unsubscription preferences (email only) |
emailReplyMode | string | |
forward | object | Forwarding configuration for emails |
fromNumber | string | Sender phone number override |
html | string | HTML body for email |
optimizationPeriod | string | Send-time optimization period |
scheduledTimestamp | number | Unix timestamp (seconds) to schedule message |
status | string | Spec marks this required; see code comment above |
subType | Spec marks this required; see code comment above | |
subject | string | Email subject (required for Email type) |
templateId | string | ID of message template |
threadId | string | ID of message thread (for email, the message ID containing the thread) |
toNumber | string | Recipient phone number for outbound messages |
usesNativeSchedulingAi | boolean | Whether the scheduled email uses native AI for email scheduling |
ghl_send_email
Send an email to a contact. Creates or continues the contact's email conversation thread.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | The contact to email |
subject * | string | |
attachments | array | Array of attachment URLs |
emailBcc | array | |
emailCc | array | |
emailFrom | string | Sender email address |
emailTo | string | Recipient email address, if different from the contact's primary email |
html | string | HTML body |
message | string | Plain text body (fallback for non-HTML clients) |
replyMessageId | string | Reply to a specific message |
ghl_update_message_status
Mark a message as read or update its delivery status.
| Parameter | Type | Description |
|---|---|---|
messageId * | string | |
status * | string | New message status |
ghl_cancel_scheduled_message
Cancel a scheduled (future) message before it is sent.
| Parameter | Type | Description |
|---|---|---|
messageId * | string | ID of the scheduled message to cancel |
ghl_add_inbound_message
Inject an inbound message into GHL (simulates receiving a message).
| Parameter | Type | Description |
|---|---|---|
contactId * | string | |
conversationId * | string | |
conversationProviderId * | string | |
message * | string | |
type * | string |
ghl_get_calendars
List all calendars in the GHL location.
| Parameter | Type | Description |
|---|---|---|
groupId | string | Filter by calendar group ID |
showDrafted | boolean | Whether to include drafted (unpublished) calendars. Defaults to true. |
ghl_get_calendar
Get a specific calendar by ID.
| Parameter | Type | Description |
|---|---|---|
calendarId * | string |
ghl_get_free_slots
Get available appointment slots for a calendar within a date range. Use this before booking to find open times.
| Parameter | Type | Description |
|---|---|---|
calendarId * | string | |
endDate * | number | End timestamp in milliseconds (Unix epoch * 1000) |
startDate * | number | Start timestamp in milliseconds (Unix epoch * 1000) |
timezone | string | Timezone for slots, e.g. 'America/New_York' |
userId | string | Filter free slots for a single user |
userIds | array | Filter free slots for multiple users |
ghl_get_calendar_events
Get calendar events (appointments and blocked slots) for a date range.
| Parameter | Type | Description |
|---|---|---|
endTime * | number | End timestamp in milliseconds |
startTime * | number | Start timestamp in milliseconds |
calendarId | string | Filter by specific calendar |
groupId | string | |
userId | string | Filter by assigned user |
ghl_create_appointment
Book an appointment on a GHL calendar for a contact. Always check free slots first.
| Parameter | Type | Description |
|---|---|---|
calendarId * | string | |
contactId * | string | Contact to book the appointment for |
startTime * | string | ISO 8601 start time, e.g. '2024-12-15T14:00:00-05:00' |
address | string | Location address if in-person |
appointmentStatus | string | |
assignedUserId | string | User ID assigned to the appointment |
description | string | Appointment description/notes |
endTime | string | ISO 8601 end time (spec: optional — calendar duration used if omitted) |
ignoreDateRange | boolean | |
ignoreFreeSlotValidation | boolean | Skip time slot validation for appointment creation |
meetingLocationId | string | Meeting location ID from calendar.locationConfigurations |
meetingLocationType | string | |
overrideLocationConfig | boolean | Override location config: true with meetingLocationType, false with meetingLocationId |
rrule | string | RRULE (RFC 5545) for recurring events; only applied if ignoreFreeSlotValidation is true |
title | string | Appointment title/name |
toNotify | boolean |
ghl_get_appointment
Get a specific appointment by event ID.
| Parameter | Type | Description |
|---|---|---|
eventId * | string |
ghl_update_appointment
Update an existing appointment (reschedule, change status, update notes).
| Parameter | Type | Description |
|---|---|---|
eventId * | string | |
address | string | Location address if in-person |
appointmentStatus | string | |
assignedUserId | string | User ID assigned to the appointment |
calendarId | string | |
description | string | Appointment description/notes |
endTime | string | New ISO 8601 end time |
ignoreDateRange | boolean | |
ignoreFreeSlotValidation | boolean | Skip time slot validation for appointment updates |
meetingLocationId | string | Meeting location ID from calendar.locationConfigurations |
meetingLocationType | string | |
overrideLocationConfig | boolean | Override location config: true with meetingLocationType, false with meetingLocationId |
rrule | string | RRULE (RFC 5545) for recurring events; only applied if ignoreFreeSlotValidation is true |
startTime | string | New ISO 8601 start time |
title | string | |
toNotify | boolean |
ghl_delete_calendar_event
Delete a calendar event or appointment.
| Parameter | Type | Description |
|---|---|---|
eventId * | string |
ghl_create_block_slot
Block a time slot on a calendar (prevents bookings during that period).
| Parameter | Type | Description |
|---|---|---|
calendarId * | string | |
endTime * | string | ISO 8601 end time |
startTime * | string | ISO 8601 start time |
assignedUserId | string | |
title | string |
ghl_get_calendar_groups
Get all calendar groups in the location.
ghl_get_pipelines
Get all pipelines and their stages in the GHL location.
ghl_search_opportunities
Search opportunities in the pipeline. Filter by contact, stage, pipeline, status, or assigned user.
| Parameter | Type | Description |
|---|---|---|
assignedTo | string | Filter by assigned user ID |
contactId | string | Filter by contact ID |
limit | number | |
page | number | |
pipelineId | string | Filter by pipeline ID |
pipelineStageId | string | Filter by stage ID |
query | string | Search query |
status | string |
ghl_get_opportunity
Get a specific opportunity by ID.
| Parameter | Type | Description |
|---|---|---|
opportunityId * | string |
ghl_create_opportunity
Create a new opportunity/deal in a pipeline.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | Contact this opportunity belongs to |
name * | string | Opportunity name/title |
pipelineId * | string | Pipeline to place the opportunity in |
pipelineStageId * | string | Initial stage ID |
assignedTo | string | User ID to assign to |
customFields | array | Custom field values [{id, fieldValue}] |
monetaryValue | number | Deal value in dollars |
source | string | |
status | string |
ghl_update_opportunity
Update an opportunity — move to a new stage, update value, reassign, etc.
| Parameter | Type | Description |
|---|---|---|
opportunityId * | string | |
assignedTo | string | |
customFields | array | Custom field values [{id, fieldValue}] |
monetaryValue | number | |
name | string | |
pipelineId | string | |
pipelineStageId | string | Move to this stage |
source | string | |
status | string |
ghl_update_opportunity_status
Quickly update only the status of an opportunity (open/won/lost/abandoned).
| Parameter | Type | Description |
|---|---|---|
opportunityId * | string | |
status * | string | |
lostReasonId | string | Lost reason ID (relevant when status is 'lost') |
ghl_upsert_opportunity
Create or update an opportunity. Pass the opportunity `id` to target an existing opportunity for update; if omitted, a new opportunity is created. Note: the real UpsertOpportunityDto has no `contactId` field — despite GHL's public docs describing contactId-based upsert matching, the spec's actual matching key is the opportunity `id`. `followers` (array of user IDs) is required; its spec description confusingly says "contactId" but its type/name make clear it is the followers list, not the linked contact.
| Parameter | Type | Description |
|---|---|---|
followers * | array | Array of user IDs following this opportunity (required by spec; despite its spec description saying "contactId", this is not the linked contact) |
followersActionType * | string | Whether to add or remove the given followers |
isRemoveAllFollowers * | boolean | Whether to remove all existing followers |
name * | string | |
pipelineId * | string | |
assignedTo | string | |
forecastExpectedCloseDate | string | Expected close date |
forecastProbability | number | |
id | string | Opportunity ID — pass to update an existing opportunity |
lostReasonId | string | |
monetaryValue | number | |
pipelineStageId | string | |
status | string |
ghl_delete_opportunity
Delete an opportunity permanently.
| Parameter | Type | Description |
|---|---|---|
opportunityId * | string |
ghl_get_workflows
List all workflows/automations in the GHL location. Use this to discover workflow IDs before enrolling contacts.
ghl_get_campaigns
List all campaigns in the GHL location.
| Parameter | Type | Description |
|---|---|---|
status | string | Filter by status (active, paused, etc.) |
ghl_create_workflow
Create a new workflow in the GHL location from a full workflow definition. The request body is passed to the API as-is. A new workflow always starts as a draft; publish it with ghl_update_workflow_status.
| Parameter | Type | Description |
|---|---|---|
name | string | Workflow name |
ghl_get_workflow_definition
Get the full definition (steps and configuration) of a workflow, including its current version number.
| Parameter | Type | Description |
|---|---|---|
workflowId * | string | Workflow ID |
ghl_update_workflow_definition
Replace a workflow's definition (steps and configuration). This replaces the entire workflow definition — any step not included in this request will be deleted. Fetch the current definition with ghl_get_workflow_definition first and send the complete updated version.
| Parameter | Type | Description |
|---|---|---|
version * | number | Current definition version, from ghl_get_workflow_definition |
workflowId * | string | Workflow ID |
ghl_update_workflow_status
Publish or unpublish a workflow by setting its status to published or draft.
| Parameter | Type | Description |
|---|---|---|
status * | string | New workflow status |
workflowId * | string | Workflow ID |
ghl_delete_workflow
Permanently delete a workflow in the GHL location.
| Parameter | Type | Description |
|---|---|---|
workflowId * | string | Workflow ID |
ghl_search_workflows
Search workflows in the GHL location with filters, sorting and pagination. The filters, sort, offset and searchAfter fields are passed to the API as-is.
| Parameter | Type | Description |
|---|---|---|
filters | array | Search filter objects |
offset | number | Number of results to skip |
searchAfter | array | Sort values from the last result of the previous page |
sort | array | Sort criteria objects |
ghl_get_workflow_step_types
List the workflow step types (actions, triggers, conditions) available to build workflow definitions. Use the filters to narrow the list.
| Parameter | Type | Description |
|---|---|---|
kind | string | Filter by step kind |
limit | number | Maximum number of results to return |
query | string | Free-text search across step types |
skip | number | Number of results to skip |
types | string | Filter by step type |
ghl_validate_workflow_definition
Validate a workflow definition without saving it. Returns any errors found in the steps. The request body is passed to the API as-is; include workflowId to validate against an existing workflow.
| Parameter | Type | Description |
|---|---|---|
workflowId | string | Existing workflow ID, if validating an update |
ghl_get_workflow_logs
Get execution logs for a workflow, paginated.
| Parameter | Type | Description |
|---|---|---|
workflowId * | string | Workflow ID |
limit | number | Maximum number of log entries to return |
skip | number | Number of log entries to skip |
ghl_get_workflow_log_statistics
Get aggregated execution statistics for a workflow, grouped by a time bucket and optionally limited to a date range.
| Parameter | Type | Description |
|---|---|---|
workflowId * | string | Workflow ID |
endDate | string | End of the date range (ISO date) |
groupBy | string | Aggregation grouping (e.g. day, week) |
startDate | string | Start of the date range (ISO date) |
ghl_get_location
Get details about the current GHL location/sub-account.
ghl_get_location_tags
List all tags defined in the location.
ghl_create_location_tag
Create a new tag in the location.
| Parameter | Type | Description |
|---|---|---|
name * | string | Tag name |
ghl_delete_location_tag
Delete a tag from the location.
| Parameter | Type | Description |
|---|---|---|
tagId * | string | Tag ID to delete |
ghl_get_custom_fields
List custom fields for the location.
| Parameter | Type | Description |
|---|---|---|
model | string | Filter custom fields by model |
ghl_create_custom_field
Create a new custom field in the location.
| Parameter | Type | Description |
|---|---|---|
dataType * | string | Field data type |
name * | string | |
acceptedFormat | array | Accepted file extensions for FILE_UPLOAD fields, e.g. ['.pdf', '.docx'] |
isMultipleFile | boolean | Allow multiple file uploads (FILE_UPLOAD fields) |
maxNumberOfFiles | number | Max number of files allowed (FILE_UPLOAD fields) |
model | string | Model the field belongs to |
options | array | Options for SINGLE_OPTIONS/MULTIPLE_OPTIONS/CHECKBOX/RADIO fields |
placeholder | string | |
position | number | |
textBoxListOptions | array | Options for TEXTBOX_LIST fields |
ghl_update_custom_field
Update an existing custom field. Spec requires `name` even on update.
| Parameter | Type | Description |
|---|---|---|
fieldId * | string | Custom field ID to update |
name * | string | Field name (required by spec, even on update) |
acceptedFormat | array | Accepted file extensions for FILE_UPLOAD fields, e.g. ['.pdf', '.docx'] |
isMultipleFile | boolean | Allow multiple file uploads (FILE_UPLOAD fields) |
maxNumberOfFiles | number | Max number of files allowed (FILE_UPLOAD fields) |
model | string | Model the field belongs to |
options | array | Options for SINGLE_OPTIONS/MULTIPLE_OPTIONS/CHECKBOX/RADIO fields |
placeholder | string | |
position | number | |
textBoxListOptions | array | Options for TEXTBOX_LIST fields |
ghl_delete_custom_field
Delete a custom field from the location.
| Parameter | Type | Description |
|---|---|---|
fieldId * | string | Custom field ID to delete |
ghl_get_custom_values
List all custom values (location-level variables) in the location.
ghl_create_custom_value
Create a new custom value (location-level variable).
| Parameter | Type | Description |
|---|---|---|
name * | string | Variable name |
value * | string | Variable value |
ghl_update_custom_value
Update an existing custom value. Spec uses the same DTO as create — both name and value are required; partial updates are not supported.
| Parameter | Type | Description |
|---|---|---|
name * | string | Variable name (required — spec has no partial update) |
value * | string | Variable value (required — spec has no partial update) |
valueId * | string | Custom value ID to update |
ghl_delete_custom_value
Delete a custom value (location-level variable) by ID.
| Parameter | Type | Description |
|---|---|---|
valueId * | string | Custom value ID to delete |
ghl_get_users
List all team members in the GHL location. Resolves the account's company ID via a location lookup first.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results |
skip | number | Number of results to skip |
ghl_search_users
Search team members by name or email. Resolves the account's company ID via a location lookup first.
| Parameter | Type | Description |
|---|---|---|
query | string | Search query |
ghl_get_user
Get a single team member by their user ID.
| Parameter | Type | Description |
|---|---|---|
userId * | string | User ID |
ghl_create_user
Create a new team member in the location. Resolves the account's company ID via a location lookup first.
| Parameter | Type | Description |
|---|---|---|
email * | string | |
firstName * | string | |
lastName * | string | |
password * | string | Min 12 characters, at least one uppercase, one lowercase, one number, one special character |
locationIds | array | Location IDs to assign the user to. Defaults to the current location if omitted. |
permissions | object | Granular permission flags |
phone | string | E.164 format preferred, e.g. +16135550100 |
platformLanguage | string | Platform language preference for the user |
profilePhoto | string | URL of the user profile photo |
role | string | |
scopes | array | Scopes to enable for the user, e.g. ['contacts.write', 'campaigns.readonly']. Only scopes passed are enabled; passing an empty array disables all scopes. |
scopesAssignedToOnly | array | Assigned-only scopes to enable for the user. Only scopes passed are enabled; passing an empty array disables all assigned scopes. |
twilioPhone | object | Per-location inbound Twilio number in E.164 format, keyed by location id |
type | string | account for sub-account users, agency for agency-level users |
ghl_update_user
Update an existing team member. Only provide fields you want to change.
| Parameter | Type | Description |
|---|---|---|
userId * | string | User ID to update |
companyId | string | Company/Agency ID. Required for agency-level access |
email | string | Note: ignored by the v3 API — GHL deprecated updating email via this endpoint; the call succeeds but email will not change. |
firstName | string | |
lastName | string | |
locationIds | array | Sub-account location IDs the user should have access to |
password | string | New password. Min 12 characters, at least one uppercase, one lowercase, one number, one special character |
permissions | object | Granular permission flags |
phone | string | |
platformLanguage | string | Platform language preference for the user |
profilePhoto | string | URL of the user profile photo |
role | string | |
scopes | array | Scopes to enable for the user, e.g. ['contacts.write', 'campaigns.readonly']. Only scopes passed are enabled; passing an empty array disables all scopes. |
scopesAssignedToOnly | array | Assigned-only scopes to enable for the user. Only scopes passed are enabled; passing an empty array disables all assigned scopes. |
twilioPhone | object | Per-location inbound Twilio number in E.164 format, keyed by location id |
type | string | account for sub-account users, agency for agency-level users |
ghl_delete_user
Remove a team member from the location.
| Parameter | Type | Description |
|---|---|---|
userId * | string | User ID to delete |
ghl_get_templates
List SMS/email/WhatsApp templates in the location. These are the quick-reply-style templates under Settings → Templates.
| Parameter | Type | Description |
|---|---|---|
limit | number | |
originId | string | Origin ID to scope templates to. Defaults to the location itself if omitted. |
skip | number | |
type | string | Filter by template type |
ghl_delete_template
Delete an SMS/email/WhatsApp template by ID.
| Parameter | Type | Description |
|---|---|---|
templateId * | string | Template ID to delete |
ghl_get_forms
List all forms created in the location.
| Parameter | Type | Description |
|---|---|---|
limit | number | |
skip | number | |
type | string | Filter by form type |
ghl_get_form_submissions
Get submissions for a specific form or all forms in the location.
| Parameter | Type | Description |
|---|---|---|
endAt | string | End date ISO 8601 |
formId | string | Filter by form ID — omit to get all submissions |
limit | number | |
page | number | |
q | string | Filter by contactId, name, email, or phone number |
startAt | string | Start date ISO 8601 |
ghl_get_surveys
List all surveys created in the location.
| Parameter | Type | Description |
|---|---|---|
limit | number | |
skip | number | |
type | string | Filter by survey type |
ghl_get_survey_submissions
Get survey submissions — optionally filter by survey, contact, or date range.
| Parameter | Type | Description |
|---|---|---|
endAt | string | End date YYYY-MM-DD |
limit | number | Max 100 |
page | number | |
q | string | Search by contact ID, name, email, or phone |
startAt | string | Start date YYYY-MM-DD |
surveyId | string | Filter by survey ID |
ghl_get_email_builder_templates
List email marketing / builder templates for the location. These are the visual-editor templates used in Marketing → Emails and referenced by workflow Send Email actions. Results are sorted by last-updated date.
| Parameter | Type | Description |
|---|---|---|
archived | boolean | Return archived templates instead of active ones |
folderId | string | Only return items inside this folder ('root' for top level) |
include | string | Restrict results to templates only, folders only, or both (default) |
limit | number | Max results (1-20) |
offset | number | |
search | string | Filter templates by name |
sortOrder | string | Sort direction on last-updated date |
ghl_get_email_builder_template
Get a single email builder template by ID.
| Parameter | Type | Description |
|---|---|---|
templateId * | string | Email builder template ID |
ghl_create_email_builder_template
Create a new HTML email template in GHL Marketing → Emails. Name and HTML content are sent in a single call. Returns the created template (including its `id`) for use in workflows and campaigns.
| Parameter | Type | Description |
|---|---|---|
html * | string | Full HTML content of the email. Use GHL merge tags like {{contact.first_name}}, {{contact.company_name}}. |
name * | string | Template display name (shown in Marketing → Emails) |
parentFolderId | string | Folder to create the template in |
previewText | string | Preview/snippet text shown in the inbox before opening |
subjectLine | string | Default email subject line |
ghl_update_email_builder_template
Update an existing email builder template. Pass `html` to replace the template's content, and/or `name`/`previewText`/`subjectLine` to update metadata only.
| Parameter | Type | Description |
|---|---|---|
templateId * | string | Template ID to update |
archived | boolean | Archive (true) or restore (false) the template |
html | string | Updated HTML content |
name | string | New template display name |
previewText | string | |
subjectLine | string | Default email subject line |
ghl_delete_email_builder_template
Delete an email builder template by ID.
| Parameter | Type | Description |
|---|---|---|
templateId * | string | Template ID to delete |
ghl_get_email_campaigns
List bulk email marketing campaigns in the location.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results (1-20) |
offset | number | |
search | string | Filter campaigns by name |
status | string |
ghl_get_email_campaign
Get a single email marketing campaign by ID.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | Campaign ID to retrieve |
ghl_create_email_campaign
Create a draft email marketing campaign, optionally seeded from an existing email builder template. The campaign is created as a draft — subject line, recipients and send time are set later via the schedule step in the GHL UI, which this tool does not perform.
| Parameter | Type | Description |
|---|---|---|
name * | string | Campaign display name |
userId * | string | GHL user ID performing this action (required by the API) |
html | string | Initial HTML content (alternative to seeding from a template) |
parentFolderId | string | Folder to create the campaign in |
templateId | string | Email builder template ID to seed the campaign from. Omit to create a blank campaign. |
timeZone | string | IANA timezone for the campaign, e.g. America/New_York |
userName | string | Name of the user performing this action |
ghl_schedule_email_campaign
Schedule (or immediately send) a draft email campaign created via ghl_create_email_campaign. Sets the subject, sender, recipients, and send timing, and triggers the send. Pair with ghl_create_email_campaign, which only creates the draft.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | Campaign ID to schedule (from ghl_create_email_campaign) |
fromEmail * | string | Sender email address |
fromName * | string | Sender display name |
subject * | string | Email subject line |
userId * | string | GHL user ID performing this action (required by the API) |
abTestConfig | object | A/B test configuration. Can be combined with any scheduleType except 'rss'. |
attachments | array | Attachment download URLs |
contactIds | array | Contact IDs to send to. Required when recipientType is 'contact'. |
freezeList | boolean | Freeze the contact list at schedule time — new matching contacts won't be added later |
previewText | string | Preview text shown in inbox after subject |
recipientType | string | Recipient selection type |
replyToAddress | string | Reply-to email address |
rssConfig | object | RSS feed configuration. Required when scheduleType is 'rss'. |
scheduleConfig | object | Schedule configuration. Required when scheduleType is not 'rss'. |
scheduleType | string | How to schedule the campaign |
segment | string | Pre-built segment. Required when recipientType is 'segment'. |
sendDays | array | Days of the week to allow sending. Used for 'batch' and 'rss' scheduleTypes. |
tagIds | array | Tag IDs to filter recipients by. Required when recipientType is 'tag'. |
timeZone | string | IANA timezone, e.g. America/New_York |
userName | string | Name of the user performing this action |
ghl_delete_email_campaign
Delete an email marketing campaign by ID.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | Campaign ID to delete |
ghl_get_funnels
List all funnels in the location.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by funnel category |
limit | number | |
name | string | Filter funnels by name |
offset | number | |
parentId | string | Filter by parent folder ID |
type | string | Filter by funnel type |
ghl_get_funnel_pages
List all pages in a specific funnel.
| Parameter | Type | Description |
|---|---|---|
funnelId * | string | Funnel ID (from ghl_get_funnels) |
limit | number | |
name | string | Filter pages by name |
offset | number |
ghl_get_funnel_page_count
Get the total count of pages in a funnel.
| Parameter | Type | Description |
|---|---|---|
funnelId * | string | Funnel ID |
name | string | Filter by page name |
ghl_get_blog_authors
List blog authors for the location.
| Parameter | Type | Description |
|---|---|---|
limit * | number | Max results |
offset * | number | Results to skip |
ghl_get_blog_categories
List blog categories for the location.
| Parameter | Type | Description |
|---|---|---|
limit * | number | Max results |
offset * | number | Results to skip |
ghl_get_blogs
List blog sites for the location.
| Parameter | Type | Description |
|---|---|---|
limit * | number | Max results |
skip * | number | Results to skip |
searchTerm | string | Search term to filter blog sites |
ghl_get_blog_posts
List posts for a blog. Supports search and status filtering.
| Parameter | Type | Description |
|---|---|---|
blogId * | string | The blog site ID |
limit * | number | Max results |
offset * | number | Results to skip |
searchTerm | string | Search term to filter posts |
status | string | Filter by post status |
ghl_check_blog_url_slug
Check whether a URL slug is already in use by another blog post.
| Parameter | Type | Description |
|---|---|---|
urlSlug * | string | The URL slug to check |
postId | string | Post ID to exclude from the check (e.g. when editing an existing post) |
ghl_create_blog_post
Create a new blog post. All of title, blogId, imageUrl, description, rawHTML, status, imageAltText, categories, author, urlSlug, and publishedAt are required by the API.
| Parameter | Type | Description |
|---|---|---|
author * | string | Author ID |
blogId * | string | The blog site ID (from the blog site dashboard link) |
categories * | array | Array of category IDs |
description * | string | A short description |
imageAltText * | string | Alt text for the featured image |
imageUrl * | string | Featured image URL |
publishedAt * | string | ISO timestamp for publish date |
rawHTML * | string | The blog post content as HTML |
status * | string | Post status |
title * | string | Blog post title |
urlSlug * | string | URL slug for the post |
canonicalLink | string | Canonical URL for the post |
tags | array | Array of tag strings |
ghl_update_blog_post
Update an existing blog post. Provide the full replacement set of fields — title, blogId, imageUrl, description, rawHTML, status, imageAltText, categories, author, urlSlug, publishedAt, and wordCount are all required by the API.
| Parameter | Type | Description |
|---|---|---|
author * | string | Author ID |
blogId * | string | The blog site ID (from the blog site dashboard link) |
categories * | array | Array of category IDs |
description * | string | A short description |
imageAltText * | string | Alt text for the featured image |
imageUrl * | string | Featured image URL |
postId * | string | The blog post ID to update |
publishedAt * | string | ISO timestamp for publish date |
rawHTML * | string | The blog post content as HTML |
status * | string | Post status |
title * | string | Blog post title |
urlSlug * | string | URL slug for the post |
wordCount * | number | Word count of the post content |
canonicalLink | string | Canonical URL for the post |
tags | array | Array of tag strings |
ghl_get_businesses
List businesses for a location.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results |
skip | number | Results to skip |
ghl_get_business
Get a specific business by ID.
| Parameter | Type | Description |
|---|---|---|
businessId * | string | The business ID |
ghl_create_business
Create a new business. Required fields: name. Optional fields: phone, email, website, address, city, postalCode, state, country, description.
| Parameter | Type | Description |
|---|---|---|
name * | string | Business name |
address | string | Business street address |
city | string | Business city |
country | string | Business country |
description | string | Business description |
email | string | Business email address |
phone | string | Business phone number |
postalCode | string | Business postal code |
state | string | Business state |
website | string | Business website URL |
ghl_update_business
Update an existing business. All fields (name, phone, email, website, address, city, postalCode, state, country, description) are optional.
| Parameter | Type | Description |
|---|---|---|
businessId * | string | The business ID to update |
address | string | Business street address |
city | string | Business city |
country | string | Business country |
description | string | Business description |
email | string | Business email address |
name | string | Business name |
phone | string | Business phone number |
postalCode | string | Business postal code |
state | string | Business state |
website | string | Business website URL |
ghl_delete_business
Delete a business.
| Parameter | Type | Description |
|---|---|---|
businessId * | string | The business ID to delete |
ghl_create_association_relation
Create a relation between two records for an association. Required fields: associationId, firstRecordId, secondRecordId.
| Parameter | Type | Description |
|---|---|---|
associationId * | string | The association ID |
firstRecordId * | string | The first record ID |
secondRecordId * | string | The second record ID |
ghl_get_association_relations
List relations for a record. Required fields: recordId, skip, limit. Optional: associationIds.
| Parameter | Type | Description |
|---|---|---|
limit * | number | Max results to return |
recordId * | string | The record ID |
skip * | number | Number of results to skip |
associationIds | array | Association IDs to filter by |
ghl_delete_association_relation
Delete a relation between two records.
| Parameter | Type | Description |
|---|---|---|
relationId * | string | The relation ID to delete |
ghl_get_association_by_key
Get an association by its key name.
| Parameter | Type | Description |
|---|---|---|
key_name * | string | The association key name |
ghl_get_association_by_object_key
Get an association by its object key.
| Parameter | Type | Description |
|---|---|---|
objectKey * | string | The object key |
ghl_create_association
Create a new association. Required fields: key, firstObjectLabel, firstObjectKey, secondObjectLabel, secondObjectKey.
| Parameter | Type | Description |
|---|---|---|
firstObjectKey * | string | Key for the first object |
firstObjectLabel * | string | Label for the first object |
key * | string | The association key |
secondObjectKey * | string | Key for the second object |
secondObjectLabel * | string | Label for the second object |
ghl_get_association
Get a specific association by ID.
| Parameter | Type | Description |
|---|---|---|
associationId * | string | The association ID |
ghl_update_association
Update an association's object labels. Required fields: firstObjectLabel, secondObjectLabel.
| Parameter | Type | Description |
|---|---|---|
associationId * | string | The association ID to update |
firstObjectLabel * | string | Label for the first object |
secondObjectLabel * | string | Label for the second object |
ghl_delete_association
Delete an association.
| Parameter | Type | Description |
|---|---|---|
associationId * | string | The association ID to delete |
ghl_list_associations
List associations for a location. Required fields: skip, limit.
| Parameter | Type | Description |
|---|---|---|
limit * | number | Max results to return |
skip * | number | Number of results to skip |
ghl_get_object_schema
Get a custom or standard object schema by key. Required fields: key. Optional: fetchProperties.
| Parameter | Type | Description |
|---|---|---|
key * | string | The object schema key, e.g. custom_objects.pet |
fetchProperties | boolean | Whether to include the object's properties in the response |
ghl_update_object_schema
Update a custom object schema. Required fields: key, searchableProperties. Optional: labels (singular/plural), description.
| Parameter | Type | Description |
|---|---|---|
key * | string | The object schema key to update |
searchableProperties * | array | Field keys to make searchable, using the format custom_objects.<object_name>.<field_key> |
description | string | The object's description |
labels | object | How the custom object is displayed |
ghl_get_objects
List all objects (standard and custom) for the location.
ghl_get_object_record
Get a single custom object record by ID. Required fields: schemaKey, id.
| Parameter | Type | Description |
|---|---|---|
id * | string | The record ID |
schemaKey * | string | The object schema key |
ghl_update_object_record
Update a custom object record. Required fields: schemaKey, id, record.
| Parameter | Type | Description |
|---|---|---|
id * | string | The record ID to update |
record * | object | The record fields to update, keyed by field name |
schemaKey * | string | The object schema key |
ghl_delete_object_record
Delete a custom object record. Required fields: schemaKey, id.
| Parameter | Type | Description |
|---|---|---|
id * | string | The record ID to delete |
schemaKey * | string | The object schema key |
ghl_create_object_record
Create a new custom object record. Required fields: schemaKey, record.
| Parameter | Type | Description |
|---|---|---|
record * | object | The record fields, keyed by field name |
schemaKey * | string | The object schema key |
ghl_search_object_records
Search custom object records. Required fields: schemaKey, page, pageLimit, query, searchAfter.
| Parameter | Type | Description |
|---|---|---|
page * | number | Page number |
pageLimit * | number | Number of results per page |
query * | string | Search query using a searchable property, e.g. 'name:Buddy' where 'name' is a configured searchable property |
schemaKey * | string | The object schema key |
searchAfter * | array | Cursor values for pagination, from a prior response |
ghl_import_courses
Import courses with lessons and modules. Accepts an array of product objects with nested course structure (categories, posts, etc.).
| Parameter | Type | Description |
|---|---|---|
products * | array | Array of product objects, each defining a full course. Shape (nested top to bottom): Product: { title: string (required), description: string (required), imageUrl?: string, categories: Category[] (req… |
userId | string | Optional user ID for the import |
ghl_get_proposal_documents
List proposal/estimate documents for the location. Supports filtering by status, payment status, date range, and search query.
| Parameter | Type | Description |
|---|---|---|
dateFrom | string | Date start from (ISO 8601). Must be provided together with dateTo |
dateTo | string | Date to (ISO 8601). Must be provided together with dateFrom |
limit | number | Max results |
paymentStatus | string | Payment status |
query | string | Search string |
skip | number | Results to skip |
status | string | Document status |
ghl_send_proposal_document
Send a proposal/estimate document to a client.
| Parameter | Type | Description |
|---|---|---|
documentId * | string | Document Id |
sentBy * | string | User Id of the sender |
ccRecipients | array | CC recipients for the document |
documentName | string | Document Name |
medium | string | Medium to be used for sending the document |
notificationSettings | object | Notification settings (sender and receive email config) |
ghl_get_proposal_templates
List proposal/estimate document templates for the location. Supports filtering by type, name, date range, and public document scope.
| Parameter | Type | Description |
|---|---|---|
dateFrom | string | Date start from (ISO 8601) |
dateTo | string | Date to (ISO 8601) |
isPublicDocument | boolean | If the docForm is a DocForm |
limit | string | Limit |
name | string | Template Name |
skip | string | Skip |
type | string | Comma-separated template types: proposal, estimate, contentLibrary |
userId | string | User Id, required when isPublicDocument is true |
ghl_send_proposal_template
Send a proposal/estimate document template to a client contact.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | Contact Id |
templateId * | string | Template Id |
userId * | string | User Id |
opportunityId | string | Opportunity Id |
sendDocument | boolean | Whether to send the document |
ghl_create_brand_board
Create a brand board for a location. A brand board holds logos, colors, and fonts, and can be created blank, from a template, from a snapshot, or extracted from a website URL.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the brand board |
brandBoardId | string | Source brand board ID to copy from (creates a new brand board based on this template) |
colors | array | Array of colors |
default | boolean | Set as the default brand board for this location |
fonts | array | Array of fonts |
logos | array | Array of logos |
parentId | string | Parent folder ID in media library for organizing brand boards |
type | string | Source type indicating how the brand board was created |
url | string | Website URL to extract design kit from (colors, fonts, logos) |
ghl_get_brand_boards
List brand boards for the location. Supports search, pagination, and including deleted boards.
| Parameter | Type | Description |
|---|---|---|
deleted | boolean | Include deleted brand boards in results |
limit | number | Maximum number of brand boards to return |
offset | number | Number of brand boards to skip for pagination |
search | string | Search term to filter brand boards by name |
ghl_get_brand_board
Get a single brand board by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Brand board ID |
ghl_update_brand_board
Update a brand board by ID. Only provided fields are changed.
| Parameter | Type | Description |
|---|---|---|
id * | string | Brand board ID to update |
colors | array | Array of colors |
default | boolean | Set as the default brand board for this location |
fonts | array | Array of fonts |
logos | array | Array of logos |
name | string | Name of the brand board |
parentId | string | Parent folder ID in media library (reserved for future use) |
ghl_delete_brand_board
Delete a brand board by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Brand board ID to delete |
ghl_get_brand_voices
List brand voices for the location. Supports search, pagination, and including deleted voices.
| Parameter | Type | Description |
|---|---|---|
deleted | boolean | Whether to return deleted brand voices. Defaults to false |
limit | number | Number of brand voices to return. Defaults to 10, minimum 1, maximum 20 |
offset | number | Number of brand voices to skip for pagination. Defaults to 0 |
search | string | Search text for brand voice name |
ghl_create_brand_voice
Create a brand voice for a location. type=manual creates it with provided custom answers, type=url generates answers from a website, type=description generates answers from a text description.
| Parameter | Type | Description |
|---|---|---|
type * | string | Creation type. "manual" creates with provided custom answers, "url" generates answers from a website, "description" generates answers from a text description |
answers | object | Brand voice answers (brandName, toneOfVoice, targetAudience, customerPainPoints, businessType, companyWebsite, companyEmail, companyAddress, phone, businessHours, brandPromise, ...). Required when typ… |
description | string | Company description to generate brand voice from. Required when type is "description", optional when type is "url" |
name | string | Name |
url | string | Website URL to generate brand voice from. Required when type is "url" |
ghl_get_brand_voice
Get a brand voice by ID.
| Parameter | Type | Description |
|---|---|---|
brandVoiceId * | string | Brand voice ID |
ghl_update_brand_voice
Update a brand voice by ID. Only provided fields are changed.
| Parameter | Type | Description |
|---|---|---|
brandVoiceId * | string | Brand voice ID to update |
answers | object | Updated brand voice answers |
name | string | Name |
ghl_delete_brand_voice
Delete a brand voice by ID.
| Parameter | Type | Description |
|---|---|---|
brandVoiceId * | string | Brand voice ID to delete |
ghl_set_default_brand_voice
Set a brand voice as the default for the location.
| Parameter | Type | Description |
|---|---|---|
brandVoiceId * | string | Brand voice ID to set as default |
ghl_get_phone_numbers
List all purchased/active phone numbers in the location.
| Parameter | Type | Description |
|---|---|---|
page | number | Page number |
pageSize | number | Number of results per page |
searchFilter | string | Filter by phone number or label |
skipNumberPool | boolean | Skip number pool results |
ghl_search_available_phone_numbers
Search for available phone numbers to purchase. All filters below are required by the spec.
| Parameter | Type | Description |
|---|---|---|
anywhere * | boolean | Match digits anywhere in number |
countryCode * | string | ISO 2-letter country code (e.g. CA, US) |
firstPart * | string | Beginning of the phone number to match |
lastPart * | string | Ending of the phone number to match |
mmsEnabled * | boolean | Requested numbers must have MMS capability |
numberTypes * | string | Comma-separated phone number type(s), e.g. "local" or "tollFree,mobile,local" |
smsEnabled * | boolean | Requested numbers must have SMS capability |
voiceEnabled * | boolean | Requested numbers must have voice capability |
ghl_purchase_phone_number
Purchase a phone number for the location. All fields below are required by the spec (Twilio address/bundle SIDs, Stripe payment details, and locality info).
| Parameter | Type | Description |
|---|---|---|
addressSid * | string | Twilio address SID |
bundleSid * | string | Twilio bundle SID |
countryCode * | string | Country for which the phone number is being requested |
fingerprintId * | string | Unique request ID for this purchase request |
locality * | string | Locality of the user in which the number is being purchased |
numberType * | string | Type of phone number to purchase, e.g. local, tollFree |
paymentIntentId * | string | Stripe payment intent ID |
paymentMethodId * | string | Stripe registered payment method ID |
phoneNumber * | string | Phone number to purchase in E.164 format (e.g. +16135550100) |
region * | string | Region of the user in which the number is being purchased |
skipLocationKYC * | boolean | Skip location-level KYC verification if agency-level compliance is already verified |
stripeAccountId * | string | Stripe account ID |
ghl_release_phone_number
Release (delete) a purchased phone number from the location.
| Parameter | Type | Description |
|---|---|---|
numberId * | string | The phone number ID to release |
ghl_update_phone_number
Update settings for a phone number (friendly name, call forwarding, etc.).
| Parameter | Type | Description |
|---|---|---|
numberId * | string | The phone number ID to update |
callForwardingNumber | string | Number to forward calls to in E.164 format |
friendlyName | string | Display label for the number |
ghl_get_orders
Get payment orders in the location.
| Parameter | Type | Description |
|---|---|---|
contactId | string | Filter by contact |
endAt | string | End date filter ISO 8601 |
limit | number | |
offset | number | |
paymentStatus | string | |
startAt | string | Start date filter ISO 8601 |
ghl_get_order
Get a specific order by ID.
| Parameter | Type | Description |
|---|---|---|
orderId * | string |
ghl_get_transactions
Get payment transactions in the location.
| Parameter | Type | Description |
|---|---|---|
contactId | string | |
endAt | string | |
limit | number | |
offset | number | |
startAt | string |
ghl_get_subscriptions
Get active subscriptions in the location.
| Parameter | Type | Description |
|---|---|---|
contactId | string | |
limit | number | |
offset | number |
ghl_get_coupons
Get discount coupons in the location.
| Parameter | Type | Description |
|---|---|---|
limit | number | |
offset | number | |
search | string | Search by coupon name or code |
status | string | Filter by coupon status |
ghl_create_coupon
Create a discount coupon.
| Parameter | Type | Description |
|---|---|---|
code * | string | Coupon code (e.g. SAVE20) |
discountType * | string | |
discountValue * | number | Discount value (% or $ amount) |
name * | string | |
startDate * | string | Coupon validity start date, YYYY-MM-DDTHH:mm:ssZ (required by spec) |
endDate | string | Coupon expiry date ISO 8601 |
productIds | array | Restrict to specific product IDs |
usageLimit | number | Max number of times coupon can be used |
ghl_get_invoices
Get invoices in the location.
| Parameter | Type | Description |
|---|---|---|
contactId | string | Filter by contact |
endAt | string | |
limit | number | |
offset | number | |
search | string | |
startAt | string | |
status | string |
ghl_get_invoice
Get a specific invoice by ID.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string |
ghl_create_invoice
Create a new invoice. Sends contactDetails (not a bare contactId) per the spec.
| Parameter | Type | Description |
|---|---|---|
businessDetails * | object | Business details shown on the invoice (required by spec) |
contactDetails * | object | Contact to send the invoice to — spec uses a structured contactDetails object, not a bare contactId |
currency * | string | Currency code, e.g. USD |
discount * | object | Discount for the invoice (required by spec) |
issueDate * | string | Issue date, YYYY-MM-DD (required by spec) |
items * | array | Invoice line items |
liveMode * | boolean | Use live payment mode (false = test mode; required by spec) |
name * | string | Invoice name/title |
sentTo * | object | Recipients for the invoice (required by spec) |
dueDate | string | Due date, YYYY-MM-DD |
invoiceNumber | string | |
title | string |
ghl_send_invoice
Send an invoice to the contact.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
invoiceId * | string | |
liveMode * | boolean | Use live payment mode (false = test mode; required by spec) |
userId * | string | User ID of the sender |
ghl_void_invoice
Void (cancel) an invoice.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string |
ghl_record_invoice_payment
Record a manual payment against an invoice.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Payment amount in cents |
invoiceId * | string | |
mode * | string | |
notes * | string | Note recorded with the transaction (required by spec) |
card | object | Card details — relevant when mode is 'card' |
cheque | object | Cheque number — relevant when mode is 'cheque' |
ghl_get_products
List products in the store catalog. Supports search, filtering, and pagination.
| Parameter | Type | Description |
|---|---|---|
availableInStore | boolean | Filter by store availability |
collectionIds | string | Comma-separated collection IDs to filter by |
collectionSlug | string | Filter by collection slug |
expand | array | Related entities to expand, e.g. ['tax','stripe','paypal'] |
includedInStore | boolean | Filter by whether product is included in the store |
limit | number | Max results |
offset | number | Results to skip |
productIds | array | Specific product IDs to fetch |
search | string | Search by product name |
sortOrder | string | Sort order |
storeId | string | Filter by store ID |
ghl_get_product
Get a single product by ID.
| Parameter | Type | Description |
|---|---|---|
productId * | string | The product ID |
sendWishlistStatus | boolean | Include wishlist status in the response |
ghl_create_product
Create a new product in the store catalog.
| Parameter | Type | Description |
|---|---|---|
name * | string | Product name |
productType * | string | Product type |
automaticTaxCategoryId | string | |
availableInStore | boolean | |
collectionIds | array | Category/collection IDs |
description | string | |
image | string | Product image URL |
isLabelEnabled | boolean | |
isTaxesEnabled | boolean | |
label | object | Product label details |
medias | array | Array of media objects |
seo | object | SEO metadata for the product |
slug | string | |
statementDescriptor | string | |
taxInclusive | boolean | |
taxes | array | List of tax IDs attached to the product |
variants | array | Array of variant objects |
ghl_update_product
Update an existing product. Provide the full replacement set of fields (name/productType required by the API).
| Parameter | Type | Description |
|---|---|---|
name * | string | Product name |
productId * | string | The product ID to update |
productType * | string | Product type |
automaticTaxCategoryId | string | |
availableInStore | boolean | |
collectionIds | array | Category/collection IDs |
description | string | |
image | string | Product image URL |
isLabelEnabled | boolean | |
isTaxesEnabled | boolean | |
label | object | Product label details |
medias | array | Array of media objects |
prices | array | List of price IDs for the product |
seo | object | SEO metadata for the product |
slug | string | |
statementDescriptor | string | |
taxInclusive | boolean | |
taxes | array | List of tax IDs attached to the product |
variants | array | Array of variant objects |
ghl_delete_product
Delete a product from the store catalog.
| Parameter | Type | Description |
|---|---|---|
productId * | string | The product ID to delete |
sendWishlistStatus | boolean | Include wishlist status in the response |
ghl_bulk_update_products
Bulk update products: change price, compare-at price, availability, collections, or currency, or bulk-delete, across a set of product IDs (or filtered selection).
| Parameter | Type | Description |
|---|---|---|
productIds * | array | Array of product IDs to update |
type * | string | Type of bulk update operation |
availability | boolean | New availability status |
collectionIds | array | Array of collection IDs |
compareAtPrice | object | Compare-at price update configuration |
currency | string | Currency code, e.g. USD |
filters | object | Filters to apply when selecting all matching products |
price | object | Price update configuration |
ghl_bulk_edit_product_prices
Bulk edit prices across multiple products in a single request.
| Parameter | Type | Description |
|---|---|---|
products * | array | Array of products with their price edits, e.g. [{ productId, prices: [...] }] |
ghl_get_product_prices
List prices for a product.
| Parameter | Type | Description |
|---|---|---|
productId * | string | The product ID |
ids | string | Comma-separated price IDs to filter by |
limit | number | Max results |
offset | number | Results to skip |
ghl_get_product_price
Get a single price for a product by price ID.
| Parameter | Type | Description |
|---|---|---|
priceId * | string | The price ID |
productId * | string | The product ID |
ghl_create_product_price
Create a new price for a product.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Price amount |
currency * | string | Currency code, e.g. USD |
name * | string | Price name |
productId * | string | The product ID to create the price under |
type * | string | Price type |
allowOutOfStockPurchases | boolean | |
availableQuantity | number | Available inventory quantity |
compareAtPrice | number | Compare-at (original/strikethrough) price |
description | string | |
digitalDelivery | array | Digital delivery options |
isDigitalProduct | boolean | |
membershipOffers | array | Array of membership offer objects |
meta | object | Additional metadata associated with the price |
recurring | object | Recurring billing configuration (if type is recurring) |
setupFee | number | One-time setup fee |
shippingOptions | object | Shipping options of the price |
sku | string | |
totalCycles | number | Total number of billing cycles |
trackInventory | boolean | |
trialPeriod | number | Trial period in days |
userId | string | User ID creating the price |
variantOptionIds | array | Variant option IDs this price applies to |
ghl_update_product_price
Update an existing price for a product. Provide the full replacement set of fields (name/type/currency/amount required by the API).
| Parameter | Type | Description |
|---|---|---|
amount * | number | Price amount |
currency * | string | Currency code, e.g. USD |
name * | string | Price name |
priceId * | string | The price ID to update |
productId * | string | The product ID |
type * | string | Price type |
allowOutOfStockPurchases | boolean | |
availableQuantity | number | Available inventory quantity |
compareAtPrice | number | Compare-at (original/strikethrough) price |
description | string | |
digitalDelivery | array | Digital delivery options |
isDigitalProduct | boolean | |
membershipOffers | array | Array of membership offer objects |
meta | object | Additional metadata associated with the price |
recurring | object | Recurring billing configuration (if type is recurring) |
setupFee | number | One-time setup fee |
shippingOptions | object | Shipping options of the price |
sku | string | |
totalCycles | number | Total number of billing cycles |
trackInventory | boolean | |
trialPeriod | number | Trial period in days |
userId | string | User ID updating the price |
variantOptionIds | array | Variant option IDs this price applies to |
ghl_delete_product_price
Delete a price from a product.
| Parameter | Type | Description |
|---|---|---|
priceId * | string | The price ID to delete |
productId * | string | The product ID |
ghl_get_product_inventory
List inventory levels for products/price variants in the location.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results |
offset | number | Results to skip |
search | string | Search by product name |
ghl_update_product_inventory
Bulk update inventory quantities for a set of product price variants.
| Parameter | Type | Description |
|---|---|---|
items * | array | Array of inventory items to update |
ghl_get_product_collections
List product collections in the store catalog. Supports filtering by name and pagination.
| Parameter | Type | Description |
|---|---|---|
collectionIds | string | Comma-separated collection IDs to filter by |
limit | number | Max results |
name | string | Filter by collection name |
offset | number | Results to skip |
ghl_get_product_collection
Get details of a single product collection by ID.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | The product collection ID |
ghl_create_product_collection
Create a new product collection.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the product collection |
slug * | string | Slug of the product collection, used for navigation |
collectionId | string | Custom Mongo ID to assign to the collection |
image | string | URL of the image to display as the collection thumbnail |
seo | object | SEO metadata for the collection |
ghl_update_product_collection
Update an existing product collection.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | The product collection ID to update |
image | string | URL of the image to display as the collection thumbnail |
name | string | Name of the product collection |
seo | object | SEO metadata for the collection |
slug | string | Slug of the product collection, used for navigation |
ghl_delete_product_collection
Delete a product collection.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | The product collection ID to delete |
ghl_get_product_reviews
List product reviews for the store. Supports filtering by rating, date range, product, store, and pagination/sorting.
| Parameter | Type | Description |
|---|---|---|
endDate | string | End date for filtering reviews (ISO 8601) |
limit | number | Max results |
offset | number | Results to skip |
productId | string | Comma-separated list of product IDs |
rating | number | Filter by rating |
sortField | string | Field to sort by |
sortOrder | string | Sort order |
startDate | string | Start date for filtering reviews (ISO 8601) |
storeId | string | Comma-separated list of store IDs |
ghl_get_product_review_count
Fetch a count of product reviews grouped by status, with optional filters.
| Parameter | Type | Description |
|---|---|---|
endDate | string | End date for filtering reviews (ISO 8601) |
productId | string | Comma-separated list of product IDs |
rating | number | Filter by rating |
startDate | string | Start date for filtering reviews (ISO 8601) |
storeId | string | Comma-separated list of store IDs |
ghl_bulk_update_product_reviews
Update one or multiple product reviews at once (e.g. status).
| Parameter | Type | Description |
|---|---|---|
reviews * | array | Array of reviews to update |
status * | string | Status to apply to the reviews (e.g. approved) |
ghl_update_product_review
Update the status, reply, rating, or content of a single product review.
| Parameter | Type | Description |
|---|---|---|
productId * | string | Product ID the review belongs to |
reviewId * | string | The review ID to update |
status * | string | Status of the review (e.g. approved) |
detail | string | Detailed review text |
headline | string | Headline of the review |
rating | number | Rating of the product |
reply | array | Reply/replies to the review |
ghl_delete_product_review
Delete a specific product review.
| Parameter | Type | Description |
|---|---|---|
productId * | string | Product ID the review belongs to |
reviewId * | string | The review ID to delete |
ghl_set_product_store_visibility
Include or exclude products from a store's product listing. Note: storeId identifies the store/funnel that displays products (e.g. a funnel-based storefront) — not the location ID.
| Parameter | Type | Description |
|---|---|---|
action * | string | Whether to include or exclude the products from the store |
productIds * | array | Array of product IDs to include or exclude |
storeId * | string | Store ID (the store/funnel that displays products, not the location ID) |
ghl_update_product_store_priority
Set the display priority (ordering) of products in a store. Note: storeId identifies the store/funnel that displays products, not the location ID.
| Parameter | Type | Description |
|---|---|---|
products * | array | Array of products with their display priorities, e.g. [[productId, priority], ...] |
storeId * | string | Store ID (the store/funnel that displays products, not the location ID) |
ghl_get_product_store_stats
Fetch the total number of products, number included in the store, and number excluded from the store, with optional search and collection filters. Note: storeId identifies the store/funnel that displays products, not the location ID.
| Parameter | Type | Description |
|---|---|---|
storeId * | string | Store ID (the store/funnel that displays products, not the location ID) |
collectionIds | string | Comma-separated list of product collection IDs to filter by |
search | string | Filter by product name |
ghl_get_shipping_carriers
List shipping carriers configured for the store.
ghl_create_shipping_carrier
Create a new shipping carrier for the store.
| Parameter | Type | Description |
|---|---|---|
callbackUrl * | string | The URL endpoint that CRM needs to retrieve shipping rates from |
name * | string | Name of the shipping carrier |
allowsMultipleServiceSelection | boolean | Whether the seller can choose multiple services while creating shipping |
services | array | An array of available shipping carrier services |
ghl_get_shipping_carrier
Get details of a single shipping carrier by ID.
| Parameter | Type | Description |
|---|---|---|
shippingCarrierId * | string | The shipping carrier ID |
ghl_update_shipping_carrier
Update an existing shipping carrier.
| Parameter | Type | Description |
|---|---|---|
shippingCarrierId * | string | The shipping carrier ID |
allowsMultipleServiceSelection | boolean | Whether the seller can choose multiple services while creating shipping |
callbackUrl | string | The URL endpoint that CRM needs to retrieve shipping rates from |
name | string | Name of the shipping carrier |
services | array | An array of available shipping carrier services |
ghl_delete_shipping_carrier
Delete a shipping carrier from the store.
| Parameter | Type | Description |
|---|---|---|
shippingCarrierId * | string | The shipping carrier ID |
ghl_get_shipping_zones
List shipping zones configured for the store. Supports pagination.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results |
offset | number | Results to skip |
withShippingRate | boolean | Whether to include shipping rates for each zone |
ghl_create_shipping_zone
Create a new shipping zone for the store.
| Parameter | Type | Description |
|---|---|---|
countries * | array | List of countries that are available in this shipping zone |
name * | string | Name of the shipping zone |
ghl_get_shipping_zone
Get details of a single shipping zone by ID.
| Parameter | Type | Description |
|---|---|---|
shippingZoneId * | string | The shipping zone ID |
withShippingRate | boolean | Whether to include shipping rates for the zone |
ghl_update_shipping_zone
Update an existing shipping zone.
| Parameter | Type | Description |
|---|---|---|
shippingZoneId * | string | The shipping zone ID |
countries | array | List of countries that are available in this shipping zone |
name | string | Name of the shipping zone |
ghl_delete_shipping_zone
Delete a shipping zone from the store.
| Parameter | Type | Description |
|---|---|---|
shippingZoneId * | string | The shipping zone ID |
ghl_get_available_shipping_rates
Compute the available shipping rates for an order based on destination, weight, amount, and products.
| Parameter | Type | Description |
|---|---|---|
country * | string | Country code of the customer, e.g. US |
products * | array | An array of price IDs and quantities |
source * | object | Source of the order |
totalOrderAmount * | number | The total order amount (min: 0.01) |
totalOrderWeight * | number | Estimated weight of the order in kg(s) |
address | object | Address of the customer (ContactAddress shape) |
amountAvailable | boolean | Set true to skip backend calculation of order amount when totalOrderAmount is already provided |
couponCode | string | Coupon code |
weightAvailable | boolean | Set true when the weight is already calculated and should not be recalculated |
ghl_get_shipping_rates
List shipping rates for a shipping zone. Supports pagination.
| Parameter | Type | Description |
|---|---|---|
shippingZoneId * | string | The shipping zone ID |
limit | number | Max results |
offset | number | Results to skip |
ghl_create_shipping_rate
Create a new shipping rate for a shipping zone.
| Parameter | Type | Description |
|---|---|---|
amount * | number | The amount of the shipping rate if it is a normal rate (0 means free). Fixed handling fee if it is a carrier rate (added to the carrier rate). |
conditionType * | string | Type of condition to provide the conditional pricing |
currency * | string | The currency of the amount of the rate / handling fee |
maxCondition * | number | Maximum condition for applying this price. Set 0 or null if there is no maximum |
minCondition * | number | Minimum condition for applying this price. Set 0 or null if there is no minimum |
name * | string | Name of the shipping rate |
shippingCarrierId * | string | Shipping carrier id |
shippingZoneId * | string | The shipping zone ID |
description | string | Delivery description |
isCarrierRate | boolean | Whether this is a carrier rate |
percentageOfRateFee | number | Percentage of rate fee if it is a carrier rate |
shippingCarrierServices | array | An array of available shipping carrier services |
ghl_get_shipping_rate
Get details of a single shipping rate by ID.
| Parameter | Type | Description |
|---|---|---|
shippingRateId * | string | The shipping rate ID |
shippingZoneId * | string | The shipping zone ID |
ghl_update_shipping_rate
Update an existing shipping rate.
| Parameter | Type | Description |
|---|---|---|
shippingRateId * | string | The shipping rate ID |
shippingZoneId * | string | The shipping zone ID |
amount | number | The amount of the shipping rate if it is a normal rate (0 means free). Fixed handling fee if it is a carrier rate (added to the carrier rate). |
conditionType | string | Type of condition to provide the conditional pricing |
currency | string | The currency of the amount of the rate / handling fee |
description | string | Delivery description |
isCarrierRate | boolean | Whether this is a carrier rate |
maxCondition | number | Maximum condition for applying this price. Set 0 or null if there is no maximum |
minCondition | number | Minimum condition for applying this price. Set 0 or null if there is no minimum |
name | string | Name of the shipping rate |
percentageOfRateFee | number | Percentage of rate fee if it is a carrier rate |
shippingCarrierId | string | Shipping carrier id |
shippingCarrierServices | array | An array of available shipping carrier services |
ghl_delete_shipping_rate
Delete a shipping rate from a shipping zone.
| Parameter | Type | Description |
|---|---|---|
shippingRateId * | string | The shipping rate ID |
shippingZoneId * | string | The shipping zone ID |
ghl_get_store_settings
Get the store settings (shipping origin, order notification emails).
ghl_update_store_settings
Create or update the store settings (shipping origin, order notification emails). Upserts — creates settings if none exist yet, otherwise updates them.
| Parameter | Type | Description |
|---|---|---|
shippingOrigin * | object | Shipping origin address |
storeOrderFulfillmentNotification | object | Store order fulfillment notification email settings |
storeOrderNotification | object | Store order notification email settings |
ghl_get_affiliates
List affiliates for the location. Supports search, filtering, and pagination.
| Parameter | Type | Description |
|---|---|---|
active | boolean | Filter by active status |
campaignId | string | Filter by campaign ID |
fromDate | string | Start date filter, e.g. 2023-10-01 |
limit | number | Maximum number of records to return, max 100 (default 10) |
query | string | Search affiliates by name |
skip | number | Number of records to skip (default 0) |
toDate | string | End date filter, e.g. 2023-10-01 |
ghl_get_affiliate
Get details of a single affiliate by ID.
| Parameter | Type | Description |
|---|---|---|
affiliateId * | string | The affiliate ID |
ghl_get_affiliate_commissions
List affiliate commissions for the location. Supports filtering and pagination.
| Parameter | Type | Description |
|---|---|---|
affiliateId | string | Filter by affiliate ID |
campaignId | string | Filter by campaign ID |
fromDate | string | Start date filter, e.g. 2023-10-01 |
limit | number | Maximum number of records to return, max 100 (default 10) |
query | string | Search query, e.g. affiliate email |
skip | number | Number of records to skip (default 0) |
status | string | Filter by commission status, e.g. pending |
toDate | string | End date filter, e.g. 2023-10-01 |
ghl_get_affiliate_payouts
List affiliate payouts for the location. Supports filtering and pagination.
| Parameter | Type | Description |
|---|---|---|
affiliateId | string | Filter by affiliate ID |
campaignId | string | Filter by campaign ID |
end | string | End date-time filter, e.g. 2022-12-31T23:59:59.999Z |
limit | number | Maximum number of records to return (default 10) |
query | string | Search query |
skip | number | Number of records to skip (default 0) |
start | string | Start date-time filter, e.g. 2022-12-01T00:00:00.000Z |
status | string | Filter by payout status, e.g. pending |
ghl_verify_email
Verify email address or contact for deliverability and risk assessment.
| Parameter | Type | Description |
|---|---|---|
type * | string | Email Verification type: 'email' for email address or 'contact' for contact ID |
verify * | string | Email verification recipient (email address or contactId) |
ghl_get_social_accounts
Get connected social media accounts for the location.
ghl_get_social_posts
Get scheduled or published social media posts.
| Parameter | Type | Description |
|---|---|---|
fromDate * | string | Range start (ISO 8601) |
includeUsers * | boolean | Whether to include user data in the response |
toDate * | string | Range end (ISO 8601) |
accounts | array | Social account IDs to filter by |
limit | number | |
postType | string | Filter by post type (post, story, or reel) |
skip | number | |
type | string |
ghl_create_social_post
Schedule or publish a social media post.
| Parameter | Type | Description |
|---|---|---|
accountIds * | array | Social account IDs to post to |
type * | string | Post type: post, story, or reel |
userId * | string | User ID creating/managing the post |
media | array | Media attachments for the post |
scheduleDate | string | ISO 8601 scheduled publish time (omit to post immediately; required if status is scheduled or in_review) |
status | string | Post status |
summary | string | Post caption/body text |
ghl_delete_social_post
Delete a scheduled social media post.
| Parameter | Type | Description |
|---|---|---|
postId * | string |
ghl_get_media_files
Get files and folders in the GHL media library.
| Parameter | Type | Description |
|---|---|---|
limit | number | |
offset | number | |
parentId | string | Folder ID to list contents of |
query | string | Search query to filter files by name |
sortBy | string | Field to sort by |
sortOrder | string | |
type | string | Filter by file type |
ghl_delete_media_file
Delete a file or folder from the GHL media library.
| Parameter | Type | Description |
|---|---|---|
fileId * | string | File or folder ID to delete |
ghl_get_trigger_links
Get all trigger links in the location.
ghl_create_trigger_link
Create a trigger link that fires an action when clicked.
| Parameter | Type | Description |
|---|---|---|
name * | string | Link name |
redirectTo * | string | URL to redirect to after trigger |
ghl_delete_trigger_link
Delete a trigger link.
| Parameter | Type | Description |
|---|---|---|
linkId * | string |
ghl_list_knowledge_bases
List all knowledge bases for the location with cursor-based pagination. Returns KB name, ID, and creation date.
| Parameter | Type | Description |
|---|---|---|
lastKnowledgeBaseId | string | ID of the last knowledge base from the previous page — use for cursor pagination |
limit | number | Maximum number of results to return (default 20) |
query | string | Search query to filter knowledge bases by name |
ghl_get_knowledge_base
Get a single knowledge base by ID. Returns full details including kbMetadata counts (FAQs, URLs, rich text, files).
| Parameter | Type | Description |
|---|---|---|
knowledgeBaseId * | string | The knowledge base ID to retrieve |
ghl_create_knowledge_base
Create a new knowledge base for the location. Max 15 knowledge bases per location. Returns the created KB object.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name for the new knowledge base |
description | string | Optional description for the knowledge base |
ghl_update_knowledge_base
Update the name or description of an existing knowledge base. Returns { success: true } on success.
| Parameter | Type | Description |
|---|---|---|
knowledgeBaseId * | string | The knowledge base ID to update |
description | string | New description for the knowledge base |
name | string | New name for the knowledge base |
ghl_delete_knowledge_base
Permanently delete a knowledge base and all its content (FAQs, trained URLs, etc.). Returns { success: true } on success.
| Parameter | Type | Description |
|---|---|---|
knowledgeBaseId * | string | The knowledge base ID to delete |
ghl_list_faqs
List all FAQ question/answer pairs for a knowledge base with cursor-based pagination. Returns count, hasMore, lastFaqId for next page.
| Parameter | Type | Description |
|---|---|---|
knowledgeBaseId * | string | Knowledge base ID to fetch FAQs from |
lastFaqId | string | Last FAQ ID from the previous page — pass to get the next page (cursor pagination) |
limit | number | Max FAQs to return per page (default 10) |
ghl_create_faq
Create a new FAQ question and answer inside a knowledge base. Returns the created FAQ object with its ID.
| Parameter | Type | Description |
|---|---|---|
answer * | string | The FAQ answer text |
knowledgeBaseId * | string | Knowledge base ID to add the FAQ to |
question * | string | The FAQ question text |
ghl_update_faq
Update the question and answer of an existing FAQ. Both question and answer are required by the API. Returns { success: true }.
| Parameter | Type | Description |
|---|---|---|
answer * | string | Updated answer text |
faqId * | string | The FAQ ID to update |
question * | string | Updated question text |
ghl_delete_faq
Permanently delete an FAQ from a knowledge base by FAQ ID. Returns { success: true } on success.
| Parameter | Type | Description |
|---|---|---|
faqId * | string | The FAQ ID to delete |
ghl_list_crawler_urls
List all trained page links for a knowledge base. Supports page/pageLength pagination and URL filtering. Use to get urlIds for training or deletion.
| Parameter | Type | Description |
|---|---|---|
knowledgeBaseId * | string | Knowledge base ID |
page | number | Page number (default 1) |
pageLength | number | Records per page (default 20) |
query | string | Filter results by URL substring |
ghl_discover_website
Start crawling a website to discover pages for AI training. Returns an operationId — use ghl_get_crawler_status to track progress, then ghl_train_crawler_urls to ingest.
| Parameter | Type | Description |
|---|---|---|
knowledgeBaseId * | string | Knowledge base ID to add discovered pages to |
option * | string | Crawl scope: Exact = this URL only; Path = this path and sub-paths; Domain = entire domain |
url * | string | Website URL to start crawling from |
ghl_get_crawler_status
Check the status of a website crawling operation. Returns aggregate status counts (Pending, Successful, Failed, etc.) and per-URL details.
| Parameter | Type | Description |
|---|---|---|
knowledgeBaseId * | string | Knowledge base ID |
operationId * | string | Operation ID returned from ghl_discover_website — identifies the crawl job |
ghl_train_crawler_urls
Ingest a set of discovered page URLs into the knowledge base for AI training. Use urlIds from ghl_list_crawler_urls. Returns { success: true } when training starts.
| Parameter | Type | Description |
|---|---|---|
knowledgeBaseId * | string | Knowledge base ID |
operationId * | string | Operation ID from ghl_discover_website |
urlIds * | array | Array of URL IDs to train (retrieve IDs via ghl_list_crawler_urls) |
ghl_delete_crawler_urls
Remove trained page URLs from a knowledge base. Use urlIds from ghl_list_crawler_urls. Returns { success: true } on success.
| Parameter | Type | Description |
|---|---|---|
knowledgeBaseId * | string | Knowledge base ID |
urlIds * | array | Array of trained URL IDs to remove (retrieve IDs via ghl_list_crawler_urls) |
ghl_create_conversation_ai_agent
Create a new Conversation AI agent. Requires name, personality, goal, and instructions. NOTE: unlike most tools in this codebase, no locationId is sent — the upstream API infers it from the auth token.
| Parameter | Type | Description |
|---|---|---|
goal * | string | The goal of the agent |
instructions * | string | Instructions for the agent |
name * | string | Name of the agent |
personality * | string | Personality traits of the agent |
autoPilotMaxMessages | number | Max messages in auto-pilot mode before requiring human intervention (max 100, min 1) |
businessName | string | Name of the business the agent represents |
channels | array | Communication channels the agent can operate on |
isPrimary | boolean | Whether this agent is the primary agent |
knowledgeBaseIds | array | Array of knowledge base IDs associated with this agent |
mode | string | Mode of operation (default: off) |
respondToAudio | boolean | Allow agent to respond to audio |
respondToImages | boolean | Allow agent to respond to images |
sleepEnabled | boolean | Whether sleep functionality is enabled (deprecated by upstream API) |
sleepOnManualMessage | boolean | Enable sleep when a manual outbound message is sent |
sleepOnWorkflowMessage | boolean | Enable sleep when a workflow outbound message is sent |
sleepTime | number | Duration of sleep period, required if sleepEnabled is true |
sleepTimeUnit | string | Unit of sleep time, required if sleepEnabled is true |
waitTime | number | Wait time before agent responds (max 5 for minutes, 300 for seconds) |
waitTimeUnit | string | Unit for wait time |
ghl_search_conversation_ai_agents
Search Conversation AI agents. All parameters are optional.
| Parameter | Type | Description |
|---|---|---|
limit | number | Records per page |
query | string | Search query on agent name; must be provided in lowercase |
startAfter | string | Agent ID to start after (pagination cursor); omit for the first page |
ghl_get_conversation_ai_agent
Get a Conversation AI agent by ID.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | The Conversation AI agent ID |
ghl_update_conversation_ai_agent
Update a Conversation AI agent. Only autoPilotMaxMessages is required by the upstream API (all other fields, including name/personality/goal/instructions, are optional on update).
| Parameter | Type | Description |
|---|---|---|
agentId * | string | The Conversation AI agent ID |
autoPilotMaxMessages * | number | Max messages in auto-pilot mode before requiring human intervention (max 100, min 1) |
businessName | string | Name of the business the agent represents |
channels | array | Channels the agent can use |
goal | string | The goal of the agent |
instructions | string | Instructions for the agent |
isPrimary | boolean | Whether this agent is the primary agent |
knowledgeBaseIds | array | Array of knowledge base IDs associated with this agent |
mode | string | Mode of operation, required if primary is enabled |
name | string | Name of the agent |
personality | string | Personality traits of the agent |
respondToAudio | boolean | Allow agent to respond to audio |
respondToImages | boolean | Allow agent to respond to images |
sleepEnabled | boolean | Whether sleep functionality is enabled (deprecated by upstream API) |
sleepOnManualMessage | boolean | Enable sleep when a manual outbound message is sent |
sleepOnWorkflowMessage | boolean | Enable sleep when a workflow outbound message is sent |
sleepTime | number | Duration of sleep period, required if sleepEnabled is true |
sleepTimeUnit | string | Unit of sleep time, required if sleepEnabled is true |
waitTime | number | Wait time before agent responds (max 5 for minutes, 300 for seconds) |
waitTimeUnit | string | Unit for wait time |
ghl_delete_conversation_ai_agent
Delete a Conversation AI agent by ID.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | The Conversation AI agent ID |
ghl_attach_conversation_ai_action
Attach a new action to a Conversation AI agent. The `details` shape depends on `type` (triggerWorkflow, updateContactField, appointmentBooking, stopBot, humanHandOver, advancedFollowup, transferBot) — pass the fields for the matching action type as an object.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | The Conversation AI agent ID |
details * | object | Action-specific details object; shape depends on type |
name * | string | Name of the action |
type * | string | Type of the action |
ghl_list_conversation_ai_agent_actions
List all actions attached to a Conversation AI agent.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | The Conversation AI agent ID |
ghl_get_conversation_ai_agent_action
Get a single action attached to a Conversation AI agent.
| Parameter | Type | Description |
|---|---|---|
actionId * | string | The action ID |
agentId * | string | The Conversation AI agent ID |
ghl_update_conversation_ai_agent_action
Update an existing action attached to a Conversation AI agent. Requires type, name, and details (the full replacement set) — details shape depends on type, typed permissively here.
| Parameter | Type | Description |
|---|---|---|
actionId * | string | The action ID |
agentId * | string | The Conversation AI agent ID |
details * | object | Action-specific details object; shape depends on type |
name * | string | Name of the action |
type * | string | Type of the action |
ghl_remove_conversation_ai_agent_action
Remove an action from a Conversation AI agent.
| Parameter | Type | Description |
|---|---|---|
actionId * | string | The action ID |
agentId * | string | The Conversation AI agent ID |
ghl_update_conversation_ai_followup_settings
Update the followup settings for a Conversation AI agent.
| Parameter | Type | Description |
|---|---|---|
actionIds * | array | Action IDs this followup settings update applies to |
agentId * | string | The Conversation AI agent ID |
followupSettings * | object | Additional settings for followup behavior |
ghl_get_conversation_ai_generation
Get an AI-generated message for a conversation or workflow message.
| Parameter | Type | Description |
|---|---|---|
messageId * | string | The message ID |
source * | string | Source of the message |
ghl_create_voice_ai_action
Create a new Voice AI action attached to an agent. Requires agentId, actionType, name, and actionParameters (shape depends on actionType, typed permissively here).
| Parameter | Type | Description |
|---|---|---|
actionParameters * | object | Action parameters; shape varies by actionType |
actionType * | string | Type of action |
agentId * | string | Agent ID to attach the action to |
name * | string | Human-readable name for this action |
ghl_update_voice_ai_action
Update a Voice AI action. The upstream API requires the full replacement set: agentId, actionType, name, and actionParameters (shape depends on actionType, typed permissively here).
| Parameter | Type | Description |
|---|---|---|
actionId * | string | The Voice AI action ID |
actionParameters * | object | Action parameters; shape varies by actionType |
actionType * | string | Type of action |
agentId * | string | Agent ID this action is attached to |
name * | string | Human-readable name for this action |
ghl_get_voice_ai_action
Get a single Voice AI action by ID.
| Parameter | Type | Description |
|---|---|---|
actionId * | string | The Voice AI action ID |
ghl_delete_voice_ai_action
Delete a Voice AI action. Requires the agentId it's attached to (in addition to the action ID).
| Parameter | Type | Description |
|---|---|---|
actionId * | string | The Voice AI action ID |
agentId * | string | Agent ID this action is attached to |
ghl_create_voice_ai_agent
Create a new Voice AI agent. Only locationId (injected automatically) is required by the upstream API; all other fields are optional configuration for the agent.
| Parameter | Type | Description |
|---|---|---|
agentName | string | Display name for the agent, 1-40 chars. Default: "My Agent {random 3 digit number}" |
agentPrompt | string | Custom instructions defining the agent's behavior and personality |
agentWorkingHours | array | Time intervals defining when the agent accepts calls, by day of week. Default: [] (24/7) |
businessName | string | Name of the business this agent represents. Default: location name |
callEndWorkflowIds | array | Array of workflow IDs to trigger automatically when calls end (max 10) |
inboundNumber | string | Phone number for receiving inbound calls to this agent |
isAgentAsBackupDisabled | boolean | Prevents this agent from being used as a fallback option. Default: false |
language | string | Language code for the agent's speech and understanding. Default: "en-US" |
maxCallDuration | number | Maximum call duration in seconds, 180-900 (3-15 min). Default: 300 |
numberPoolId | string | Identifier for the number pool managing phone number allocation |
patienceLevel | string | Tolerance level for caller response delays. Default: "high" |
reminderAfterIdleTimeSeconds | number | Seconds to wait before sending idle reminders, 1-20. Default: 8 |
sendPostCallNotificationTo | object | Configuration for post-call email notifications to various recipients |
sendUserIdleReminders | boolean | Enables automatic reminders when callers are silent. Default: true |
timezone | string | IANA timezone identifier affecting working hours and scheduling. Default: location timezone |
translation | object | Translation settings. Rules: enabled can only be true if agent language isn't en-US; when enabled, language must be the agent's language or en-US and is required. |
voiceId | string | Identifier for the speech synthesis voice. Default: auto generated |
welcomeMessage | string | Initial greeting spoken when the agent answers calls. Default: auto generated |
ghl_get_voice_ai_agents
List Voice AI agents for the location. All parameters besides locationId are optional.
| Parameter | Type | Description |
|---|---|---|
page | number | Page number (1-5000, default 1) |
pageSize | number | Records per page (1-50, default 10) |
query | string | Search query on agent name |
ghl_update_voice_ai_agent
Update a Voice AI agent's configuration. All fields besides agentId are optional.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | The Voice AI agent ID |
agentName | string | Display name for the agent, 1-40 chars. Default: "My Agent {random 3 digit number}" |
agentPrompt | string | Custom instructions defining the agent's behavior and personality |
agentWorkingHours | array | Time intervals defining when the agent accepts calls, by day of week. Default: [] (24/7) |
businessName | string | Name of the business this agent represents. Default: location name |
callEndWorkflowIds | array | Array of workflow IDs to trigger automatically when calls end (max 10) |
inboundNumber | string | Phone number for receiving inbound calls to this agent |
isAgentAsBackupDisabled | boolean | Prevents this agent from being used as a fallback option. Default: false |
language | string | Language code for the agent's speech and understanding. Default: "en-US" |
maxCallDuration | number | Maximum call duration in seconds, 180-900 (3-15 min). Default: 300 |
numberPoolId | string | Identifier for the number pool managing phone number allocation |
patienceLevel | string | Tolerance level for caller response delays. Default: "high" |
reminderAfterIdleTimeSeconds | number | Seconds to wait before sending idle reminders, 1-20. Default: 8 |
sendPostCallNotificationTo | object | Configuration for post-call email notifications to various recipients |
sendUserIdleReminders | boolean | Enables automatic reminders when callers are silent. Default: true |
timezone | string | IANA timezone identifier affecting working hours and scheduling. Default: location timezone |
translation | object | Translation settings. Rules: enabled can only be true if agent language isn't en-US; when enabled, language must be the agent's language or en-US and is required. |
voiceId | string | Identifier for the speech synthesis voice. Default: auto generated |
welcomeMessage | string | Initial greeting spoken when the agent answers calls. Default: auto generated |
ghl_get_voice_ai_agent
Get a Voice AI agent by ID.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | The Voice AI agent ID |
ghl_delete_voice_ai_agent
Delete a Voice AI agent by ID.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | The Voice AI agent ID |
ghl_get_voice_ai_call_logs
Get the Voice AI call-log dashboard for the location, with optional filters and pagination. actionType and contactId may be a single value or a comma-separated list of values.
| Parameter | Type | Description |
|---|---|---|
actionType | string | Filter by action type(s): CALL_TRANSFER, DATA_EXTRACTION, IN_CALL_DATA_EXTRACTION, WORKFLOW_TRIGGER, SMS, APPOINTMENT_BOOKING, CUSTOM_ACTION, KNOWLEDGE_BASE (comma-separated list supported) |
agentId | string | Filter by agent ID |
callType | string | Filter by call type |
contactId | string | Filter by contact ID (comma-separated list supported) |
endDate | number | Filter by end date (epoch millis) |
page | number | Page number (default 1) |
pageSize | number | Records per page (default 10) |
sort | string | Sort direction |
sortBy | string | Field to sort by |
startDate | number | Filter by start date (epoch millis) |
ghl_get_voice_ai_call_log
Get a single Voice AI call log entry by call ID.
| Parameter | Type | Description |
|---|---|---|
callId * | string | The call ID |
ghl_create_chat_widget
Create a new chat widget for the sub-account. Requires version, chatType, and name; locationId is taken from the connected sub-account.
| Parameter | Type | Description |
|---|---|---|
chatType * | string | Chat type for the widget |
name * | string | Name of the chat widget |
version * | number | Widget schema version, e.g. 2 |
default | boolean | Whether this is the default widget |
deleted | boolean | Whether the widget is deleted |
settings | object | Widget display/behavior settings (WidgetSettingsDTO) — theme, messages, branding, dimensions, advanced settings, etc. Shape is permissive; see GHL docs for full field list. |
ghl_clone_chat_widget
Create a copy of an existing chat widget in the same sub-account. Requires chatWidgetId; locationId is taken from the connected sub-account.
| Parameter | Type | Description |
|---|---|---|
chatWidgetId * | string | ID of the chat widget to clone |
name | string | Name for the cloned widget |
ghl_get_chat_widget
Get a single chat widget by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | The chat widget ID |
ghl_update_chat_widget
Full update of a chat widget resource (PUT). All fields optional per upstream schema. Note: the upstream spec's UpdateWidgetDTO is byte-identical between PUT and PATCH (same optional properties, no required array on either) — implemented as-is; either this tool or ghl_patch_chat_widget can be used interchangeably.
| Parameter | Type | Description |
|---|---|---|
id * | string | The chat widget ID |
chatType | string | Chat type for the widget |
default | boolean | Whether this is the default widget |
name | string | Name of the chat widget |
settings | object | Widget display/behavior settings (WidgetSettingsDTO) — theme, messages, branding, dimensions, advanced settings, etc. Shape is permissive; see GHL docs for full field list. |
version | number | Widget schema version, e.g. 2 |
ghl_patch_chat_widget
Partial update of a chat widget resource (PATCH). All fields optional. Note: the upstream spec's UpdateWidgetDTO is byte-identical between PUT and PATCH (same optional properties, no required array on either) — implemented as-is; either this tool or ghl_update_chat_widget can be used interchangeably.
| Parameter | Type | Description |
|---|---|---|
id * | string | The chat widget ID |
chatType | string | Chat type for the widget |
default | boolean | Whether this is the default widget |
name | string | Name of the chat widget |
settings | object | Widget display/behavior settings (WidgetSettingsDTO) — theme, messages, branding, dimensions, advanced settings, etc. Shape is permissive; see GHL docs for full field list. |
version | number | Widget schema version, e.g. 2 |
ghl_list_chat_widgets
List chat widgets for the sub-account with pagination and optional filters. locationId is taken from the connected sub-account; offset/limit are required by the API.
| Parameter | Type | Description |
|---|---|---|
limit * | number | Pagination limit |
offset * | number | Pagination offset |
allInOneChatTypes | string | All-in-one chat type to filter by. Only applies when chatType is "allInOneChat". Supports normal types plus the virtual umbrella "webChat". |
chatType | string | Filter by chat type. Supports normal types plus the virtual umbrella "webChat" (maps to facebookChat/emailChat/instagramChat/waChat). |
excludeChatType | string | Exclude widgets of this chat type |
voiceAiAgentId | string | Filter by voice AI agent ID |
ghl_get_chat_widget_config
Get widget display configuration by ID. Despite the "public" path segment (/chat-widget/public/config/{id}), this is wired the same way as every other endpoint here — via the authenticated GHL client.
| Parameter | Type | Description |
|---|---|---|
id * | string | The chat widget ID |
version | string | Config version to fetch, e.g. "3". Default: "2" |
ghl_delete_chat_widget
Soft-delete a chat widget. If it was the default, another widget may be promoted.
| Parameter | Type | Description |
|---|---|---|
id * | string | The chat widget ID |
ghl_create_agent_studio_agent
Create a new Agent Studio agent with an initial staging version. Requires status and version (an object describing the initial workflow — versionName, nodes, edges, variables, etc.); locationId is taken from the connected sub-account.
| Parameter | Type | Description |
|---|---|---|
status * | string | Status of the agent |
version * | object | Version data for the agent's initial workflow, including nodes, edges, and configuration (e.g. { versionName, description, nodes, edges, uiNodes, uiEdges, globalVariables, inputVariables, runtimeVaria… |
agencyId | string | Agency ID |
authorEmail | string | Author email |
authorId | string | Author ID |
authorName | string | Author name |
description | string | Description of the agent |
name | string | Name of the agent |
ghl_list_agent_studio_agents
List Agent Studio agents for the connected sub-account, with pagination. Optionally filter to only agents with a published production version via isPublished.
| Parameter | Type | Description |
|---|---|---|
limit * | number | Pagination limit |
offset * | number | Pagination offset |
isPublished | boolean | If true, return only agents with a published production version |
ghl_get_agent_studio_agent
Get a single Agent Studio agent by ID, including all its non-deleted versions (draft, staging, production). Agent must have active status.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | The agent ID |
ghl_update_agent_studio_agent_metadata
Update an Agent Studio agent's top-level METADATA — name, description, and/or status. Does NOT touch the agent's workflow definition (nodes/edges/variables); to update the workflow itself, use ghl_update_agent_studio_agent_version instead.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | The agent ID |
description | string | Description of the agent |
name | string | Name of the agent |
status | string | Status of the agent |
ghl_delete_agent_studio_agent
Delete an Agent Studio agent and all of its versions.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | The agent ID |
ghl_update_agent_studio_agent_version
Update an Agent Studio agent VERSION's workflow definition — nodes, edges, global/input/runtime variables, and global config. This is the WORKFLOW-GRAPH update, distinct from ghl_update_agent_studio_agent_metadata (which only updates name/description/status and does not touch the workflow). Provide the complete nodes/edges arrays including unchanged items — this is a full replace of those fields, not a merge.
| Parameter | Type | Description |
|---|---|---|
versionId * | string | The agent version ID |
description | string | Description of the version |
edges | array | Complete array of edges connecting the nodes. Provide all edges including unchanged ones. Complex nested structure — modeled permissively. |
globalConfig | object | Global configuration including prompts and settings. |
globalVariables | array | Global variables accessible throughout the agent workflow. |
inputVariables | array | Input variables required from the user at execution time. |
nodes | array | Complete array of workflow nodes (start/LLM/etc.). Provide all nodes including unchanged ones. Complex nested structure — modeled permissively. |
runtimeVariables | array | Runtime variables generated during agent execution. |
userId | string | User ID performing the update |
userName | string | User name performing the update |
versionName | string | Version name |
ghl_publish_agent_studio_agent
Promote an Agent Studio draft version to production, publishing it. A new draft version is created afterward for future edits.
| Parameter | Type | Description |
|---|---|---|
versionId * | string | The draft version ID to promote |
userEmail | string | User email performing the promotion |
userId | string | User ID performing the promotion |
userName | string | User name performing the promotion |
ghl_execute_agent_studio_agent
Execute an Agent Studio agent and get a non-streaming JSON response. For the first message in a new session, omit executionId; the response returns one to use for subsequent messages in the same session, preserving conversation context.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | The agent ID to execute |
message * | string | Message to send to the agent |
attachments | array | Attachments for the message |
contactId | string | Contact ID to associate with this execution; hydrates contact data for the agent. |
executionId | string | Session identifier from a previous response. Omit for the first message in a new session; include it on follow-ups to maintain conversation context. |
inputVariables | object | Input variables to pass to the agent, matching its configured input variables. |
versionId | string | Published version ID to execute. Defaults to the latest published production version. |
ghl_create_social_queue
Create a content queue for a social media category. Required fields: categoryId, timeSlots, userId. Optional: enableFuturePosts, prioritizeNewContent.
| Parameter | Type | Description |
|---|---|---|
categoryId * | string | The category ID this queue belongs to |
timeSlots * | array | Recurring posting time slots for the queue |
userId * | string | The user ID that owns/creates the queue |
enableFuturePosts | boolean | Automatically queue any new posts created in this category |
prioritizeNewContent | boolean | Place new items added via directToQueue at the top of the queue |
ghl_get_social_queue_categories
List social media categories available for creating queues. Optional: skip, limit, q (search query).
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results to return |
q | string | Search query to filter categories |
skip | number | Number of results to skip |
ghl_list_social_queues
List content queues for the location. Optional: skip, limit.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results to return |
skip | number | Number of results to skip |
ghl_get_social_queue_calendar
Fetch a calendar view of queued posts. Required fields: startDate, endDate. Optional: categoryIds, accountIds.
| Parameter | Type | Description |
|---|---|---|
endDate * | string | Calendar range end date |
startDate * | string | Calendar range start date |
accountIds | array | Filter by social account IDs |
categoryIds | array | Filter by category IDs |
ghl_delete_social_queue_active_post
Delete the currently active queue post and schedule the next one. Required fields: postId.
| Parameter | Type | Description |
|---|---|---|
postId * | string | The active post ID to delete |
ghl_get_social_queue
Get a content queue by ID. Required fields: queueId.
| Parameter | Type | Description |
|---|---|---|
queueId * | string | The queue ID |
ghl_update_social_queue
Update a content queue. Required fields: queueId. Optional: skipLegacyWatermark, status, skipDateTime, timeSlots, enableFuturePosts, prioritizeNewContent.
| Parameter | Type | Description |
|---|---|---|
queueId * | string | The queue ID to update |
enableFuturePosts | boolean | Automatically queue any new posts created in this category |
prioritizeNewContent | boolean | Place new items added via directToQueue at the top of the queue |
skipDateTime | string | Skip date/time in ISO format |
skipLegacyWatermark | boolean | Skip legacy watermark cleanup when rescheduling posts |
status | string | Queue status, e.g. "paused" |
timeSlots | array | Recurring posting time slots |
ghl_create_social_queue_item
Create a new item in a content queue. Required fields: queueId. Optional: sessionId, modifiedPostPayload, order, variations, primaryImage, directToQueue.
| Parameter | Type | Description |
|---|---|---|
queueId * | string | The queue ID to add the item to |
directToQueue | boolean | When true, creates the item directly without requiring an edit session; order is ignored |
modifiedPostPayload | object | New/modified post details (QueueModifiedPostDTO — deeply nested, passed through as-is) |
order | Order value: a number, or "top" / "bottom" | |
primaryImage | string | Primary media URL (image). Falls back to modifiedPostPayload.primaryImage if not set. |
sessionId | string | Edit session ID |
variations | array | Post content variations (VariationInputDTO[] — passed through as-is) |
ghl_get_social_queue_edit_calendar
Fetch a calendar view of an active edit session. Required fields: queueId, sessionId, startDate, endDate. Optional: accountIds.
| Parameter | Type | Description |
|---|---|---|
endDate * | string | Calendar range end date |
queueId * | string | The queue ID |
sessionId * | string | Edit session ID |
startDate * | string | Calendar range start date |
accountIds | array | Filter by social account IDs |
ghl_discard_social_queue_edit
Discard an active queue edit session. Required fields: queueId, sessionId. Optional: keepInDraft.
| Parameter | Type | Description |
|---|---|---|
queueId * | string | The queue ID |
sessionId * | string | Edit session ID to discard |
keepInDraft | boolean | Keep discarded changes as a draft |
ghl_save_social_queue_edit
Save an active queue edit session. Required fields: queueId, sessionId. Optional: keepInDraft.
| Parameter | Type | Description |
|---|---|---|
queueId * | string | The queue ID |
sessionId * | string | Edit session ID to save |
keepInDraft | boolean | Keep the saved changes as a draft |
ghl_start_social_queue_edit
Start a new edit session for a content queue. Required fields: queueId.
| Parameter | Type | Description |
|---|---|---|
queueId * | string | The queue ID to start editing |
ghl_get_social_queue_items
List items in a content queue. Required fields: queueId. Optional: sessionId, skip, limit, errorFilter, itemId.
| Parameter | Type | Description |
|---|---|---|
queueId * | string | The queue ID |
errorFilter | boolean | Filter to items with posting errors |
itemId | string | Filter to a specific item ID |
limit | number | Max results to return |
sessionId | string | Edit session ID to scope results to |
skip | number | Number of results to skip |
ghl_delete_social_queue_item
Delete an item from a content queue. Required fields: queueId, itemId. Optional: sessionId.
| Parameter | Type | Description |
|---|---|---|
itemId * | string | The queue item ID to delete |
queueId * | string | The queue ID |
sessionId | string | Edit session ID |
ghl_update_social_queue_item
Update an item in a content queue. Required fields: queueId, itemId. Optional: sessionId, modifiedPostPayload, newOrder, variations, primaryImage.
| Parameter | Type | Description |
|---|---|---|
itemId * | string | The queue item ID to update |
queueId * | string | The queue ID |
modifiedPostPayload | object | New/modified post details (QueueModifiedPostDTO — deeply nested, passed through as-is) |
newOrder | Order value: a number, or "top" / "bottom" | |
primaryImage | string | Primary media URL (image) |
sessionId | string | Edit session ID |
variations | array | Post content variations (VariationInputDTO[] — passed through as-is) |
ghl_clone_social_queue_item
Clone an item in a content queue. Required fields: queueId, itemId, sessionId, order.
| Parameter | Type | Description |
|---|---|---|
itemId * | string | The queue item ID to clone |
order * | number | Order value for the cloned item |
queueId * | string | The queue ID |
sessionId * | string | Edit session ID |
ghl_reset_social_queue_item
Reset an item in a content queue back to its original state. Required fields: queueId, itemId. Optional: sessionId.
| Parameter | Type | Description |
|---|---|---|
itemId * | string | The queue item ID to reset |
queueId * | string | The queue ID |
sessionId | string | Edit session ID |
ghl_get_social_queue_slots
List available posting slots for a content queue. Required fields: queueId. Optional: sessionId, skip, limit.
| Parameter | Type | Description |
|---|---|---|
queueId * | string | The queue ID |
limit | number | Max results to return |
sessionId | string | Edit session ID to scope results to |
skip | number | Number of results to skip |
ghl_create_social_comment
Create a new comment on a social media post. Required fields: platform, parentId, isParentThread, content. Optional: attachments, mentions, notifyAllGroupMembers.
| Parameter | Type | Description |
|---|---|---|
content * | string | Comment text content |
isParentThread * | boolean | Whether the parent is a thread (true) or a single post (false) |
parentId * | string | ID of the parent post or comment |
platform * | string | Social media platform (e.g., 'facebook', 'instagram') |
attachments | array | URLs of media attachments (images, videos) |
mentions | array | List of user IDs or handles to mention |
notifyAllGroupMembers | boolean | Whether to notify all group members of this comment |
ghl_list_social_comments
List comments for one or more social media posts. Required fields: platform, originIds. Optional: fromDate, toDate, sortBy, search, skip, limit, parentId.
| Parameter | Type | Description |
|---|---|---|
originIds * | array | Array of post/origin IDs to fetch comments for |
platform * | string | Social media platform (e.g., 'facebook', 'instagram') |
fromDate | string | Filter comments from this date (ISO format) |
limit | number | Max results to return |
parentId | string | Filter to comments on a specific parent post/comment |
search | string | Search query to filter comments by text |
skip | number | Number of results to skip (pagination) |
sortBy | string | Sort order for comments (e.g., 'date', 'likes') |
toDate | string | Filter comments until this date (ISO format) |
ghl_like_social_comment
Like a social media comment. Required fields: platform, id. Supported platforms for like/unlike: facebook, linkedin, community, tiktok, bluesky (instagram is NOT supported for liking/unliking, though it is supported for creating/listing comments).
| Parameter | Type | Description |
|---|---|---|
id * | string | The comment ID to like |
platform * | string | Social media platform that supports liking comments (e.g., 'facebook', 'linkedin', 'community', 'tiktok', 'bluesky' — instagram is not supported) |
ghl_unlike_social_comment
Unlike a social media comment. Required fields: platform, id. Supported platforms for like/unlike: facebook, linkedin, community, tiktok, bluesky (instagram is NOT supported for liking/unliking, though it is supported for creating/listing comments).
| Parameter | Type | Description |
|---|---|---|
id * | string | The comment ID to unlike |
platform * | string | Social media platform that supports unliking comments (e.g., 'facebook', 'linkedin', 'community', 'tiktok', 'bluesky' — instagram is not supported) |
ghl_start_social_oauth
Step 1 of 3 in the OAuth account-connection flow: start OAuth for a social platform. This returns a URL meant to be opened in a browser window (not called via a plain HTTP client) so the user can authenticate with the platform; the OAuth window then posts back an accountId used for Step 2 (ghl_get_social_oauth_accounts) and Step 3 (ghl_connect_social_oauth_account). Required: platform, userId. Optional: page, reconnect. Not to be confused with ghl_set_social_accounts, which associates accounts with an already-uploaded CSV import job, not the OAuth flow.
| Parameter | Type | Description |
|---|---|---|
platform * | string | Social platform to start OAuth for (bluesky is not supported and will error) |
userId * | string | The user ID initiating the OAuth flow |
page | string | Page context to return to after OAuth completes |
reconnect | string | Account ID(s) being reconnected, if this is a reconnect flow |
ghl_get_social_oauth_accounts
Step 2 of 3 in the OAuth account-connection flow: after the user completes OAuth (ghl_start_social_oauth), list the pages/channels/locations available to connect for the given platform and accountId returned by Step 1. Use the result to pick the account/page to connect via ghl_connect_social_oauth_account (Step 3). Required: platform, accountId. Optional: search.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | The accountId returned from Step 1 (ghl_start_social_oauth) |
platform * | string | Social platform |
search | string | Search query to filter available accounts/pages |
ghl_connect_social_oauth_account
Step 3 of 3 in the OAuth account-connection flow: connect the account/page selected in Step 2 (ghl_get_social_oauth_accounts) to this location. The upstream request body is a `oneOf` of 8 platform-specific DTOs, selected by the `platform` path param — required fields differ per platform: - facebook: type, originId, name, avatar (all required) - instagram: pageId (required only). originId/name/avatar optional. - google: location, account (both required, nested objects) - pinterest: originId (required only). name/avatar/verified/username/websiteUrl/companyId/type/originAccountType opti…
| Parameter | Type | Description |
|---|---|---|
accountId * | string | The accountId returned from Step 1 to attach |
platform * | string | Social platform |
account | object | REQUIRED for google: Google Business Profile account object |
avatar | string | Avatar/profile image URL |
companyId | string | Pinterest company/business ID (pinterest only) |
location | object | REQUIRED for google: Google Business Profile location object |
name | string | Display name of the account/page being connected |
originAccountType | string | Pinterest origin account type (pinterest only) |
originId | string | Platform-native ID of the page/channel/account being connected (all platforms except google) |
pageId | string | REQUIRED for instagram: the linked Facebook Page ID |
type | string | Account type, e.g. 'page' (facebook/linkedin/tiktok/youtube/threads/pinterest) |
urn | string | REQUIRED for linkedin: the LinkedIn URN, e.g. 'urn:li:organization:12345' |
username | string | Platform username/handle (pinterest/tiktok/youtube) |
verified | boolean | Verified badge flag (pinterest/tiktok/youtube) |
websiteUrl | string | Account website URL (pinterest only) |
ghl_delete_social_account
Delete a connected social media account (and remove it from its group). Required: id. Optional: companyId, userId.
| Parameter | Type | Description |
|---|---|---|
id * | string | The connected account ID to delete |
companyId | string | Company ID (agency-level context) |
userId | string | User ID performing the deletion |
ghl_set_social_accounts
Associate connected social accounts with an already-uploaded CSV bulk-import job (the CSV upload itself is a separate flow, not covered by this tool) so the platform knows which accounts to publish the CSV's posts to. This is NOT the OAuth account-connection flow — use ghl_start_social_oauth / ghl_get_social_oauth_accounts / ghl_connect_social_oauth_account to connect a new account. Required: accountIds, filePath, rowsCount, fileName, userId. Optional: approver, csvFileType.
| Parameter | Type | Description |
|---|---|---|
accountIds * | array | Connected account IDs to publish the CSV's posts to |
fileName * | string | Name of the uploaded CSV file |
filePath * | string | Path of the already-uploaded CSV file |
rowsCount * | number | Number of rows in the uploaded CSV |
userId * | string | User ID performing the import |
approver | string | User ID required to approve posts from this import |
csvFileType | string | CSV file type/template identifier |
ghl_get_social_categories
List social media categories for this location, with optional search and pagination. Optional: searchText, limit, skip.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results to return |
searchText | string | Search query to filter categories |
skip | number | Number of results to skip (pagination) |
ghl_get_social_category
Get a single social media category by ID. Required: id.
| Parameter | Type | Description |
|---|---|---|
id * | string | The category ID |
ghl_get_social_tags
List social media tags for this location, with optional search and pagination. Optional: searchText, limit, skip.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results to return |
searchText | string | Search query to filter tags |
skip | number | Number of results to skip (pagination) |
ghl_get_social_tags_by_ids
Get multiple social media tags by their IDs. Required: tagIds.
| Parameter | Type | Description |
|---|---|---|
tagIds * | array | Tag IDs to fetch |
ghl_upload_social_csv
Step 1 of the CSV bulk-import flow: upload a CSV file of social media posts for this location. Takes raw CSV text content (not a file path — this server has no filesystem access to a client's local files) and a filename; sends it upstream as a multipart/form-data request with a binary `file` field. After upload, use ghl_get_social_csv_upload_status / ghl_get_social_csv_post to inspect the parsed rows, then ghl_finalize_social_csv to commit the import. Required: csvContent, filename.
| Parameter | Type | Description |
|---|---|---|
csvContent * | string | Raw CSV file content (not a file path) |
filename * | string | Filename to report for the uploaded CSV, e.g. 'posts.csv' |
ghl_get_social_csv_upload_status
List CSV bulk-import jobs (uploads) for this location, with pagination and filters. Required: userId. Optional: skip, limit, includeUsers, isFromTemplate.
| Parameter | Type | Description |
|---|---|---|
userId * | string | User ID to filter CSV uploads by |
includeUsers | boolean | Include uploader user details in the response |
isFromTemplate | boolean | Filter to uploads created from a template |
limit | number | Max results to return |
skip | number | Number of results to skip (pagination) |
ghl_get_social_csv_post
Get the parsed rows/posts of a single CSV bulk-import job by ID, with pagination. Required: id. Optional: skip, limit.
| Parameter | Type | Description |
|---|---|---|
id * | string | The CSV upload job ID |
limit | number | Max results to return |
skip | number | Number of results to skip (pagination) |
ghl_finalize_social_csv
Finalize (commit) a CSV bulk-import job, scheduling/publishing its parsed posts. Required: id, userId.
| Parameter | Type | Description |
|---|---|---|
id * | string | The CSV upload job ID to finalize |
userId * | string | User ID finalizing the import |
ghl_delete_social_csv
Delete a CSV bulk-import job entirely (all its parsed posts). Required: id.
| Parameter | Type | Description |
|---|---|---|
id * | string | The CSV upload job ID to delete |
ghl_delete_social_csv_post
Delete a single post row from a CSV bulk-import job (without deleting the whole job). Required: csvId, postId.
| Parameter | Type | Description |
|---|---|---|
csvId * | string | The CSV upload job ID |
postId * | string | The post row ID within the CSV job to delete |
ghl_bulk_delete_social_posts
Delete multiple social media posts by ID in a single request. Optional: postIds. Passing an empty array or omitting postIds entirely is presumed a no-op upstream.
| Parameter | Type | Description |
|---|---|---|
postIds | array | Post IDs to delete |
ghl_get_social_post
Get a single social media post by ID. Required: id.
| Parameter | Type | Description |
|---|---|---|
id * | string | The post ID |
ghl_update_social_post
Update an existing social media post (content, schedule, status, media, platform-specific details, etc). This PUT endpoint is a full-document replace (CreatePostDTO), so omitted optional fields may clear existing values upstream — pass through previously-set fields you want to preserve. Required: id, type, accountIds, userId. Optional: summary, media, status, scheduleDate, selectedBestTime, createdBy, followUpComment, ogTagsDetails, postApprovalDetails, scheduleTimeUpdated, tags, categoryId, applyWatermark, tiktokPostDetails, gmbPostDetails, linkedinPostDetails, pinterestPostDetails, faceboo…
| Parameter | Type | Description |
|---|---|---|
accountIds * | array | Connected social account IDs to publish to |
id * | string | The post ID to update |
type * | string | Post type: post, story, or reel |
userId * | string | User ID performing the update |
applyWatermark | boolean | Apply watermark to media in this post (images only) |
categoryId | string | Category ID to attach to the post |
createdBy | string | User ID of the post's original creator (MongoDB ObjectId) |
facebookPostDetails | object | Facebook-specific post configuration (FacebookPostSchema) |
followUpComment | string | Follow-up comment to post immediately after the main post (Facebook, Instagram, LinkedIn, YouTube only) |
gmbPostDetails | object | Google Business Profile-specific post configuration (GMBPostSchema) |
instagramPostDetails | object | Instagram-specific post configuration (InstagramPostSchema) |
linkedinPostDetails | object | LinkedIn-specific post configuration (LinkedinPostSchema) |
media | array | Media attachments for the post |
ogTagsDetails | object | Open Graph tags metadata (OgTagsSchema) — e.g. metaImage, metaLink, ogTitle, ogDescription |
pinterestPostDetails | object | Pinterest-specific post configuration (PinterestPostSchema) |
postApprovalDetails | object | Post approval workflow details (PostApprovalSchema) — e.g. approver, approvalStatus |
scheduleDate | string | ISO 8601 scheduled publish time (required if status is scheduled or in_review) |
scheduleTimeUpdated | boolean | Flag indicating the schedule datetime was manually updated (for tracking rescheduled posts) |
selectedBestTime | string | Selected best-time slot for scheduling (ISO 8601) |
status | string | Post status |
summary | string | Post content/caption text |
tags | array | Tag IDs to attach to the post |
tiktokPostDetails | object | TikTok-specific post configuration (TiktokPostSchema) |
youtubePostDetails | object | YouTube-specific post configuration (YoutubePostSchema) |
ghl_get_social_statistics
Get engagement/analytics statistics for connected social accounts, optionally filtered by platform and date range (defaults to the last 7 days vs. the prior 7 days if no currentRange is given). Required: profileIds (1-100 account IDs, from the profileId field of ghl_get_social_accounts). Optional: platforms, currentRange, prevRange (prevRange only applies when currentRange is also given).
| Parameter | Type | Description |
|---|---|---|
profileIds * | array | 1-100 connected social account IDs (profileId from the accounts API) to fetch analytics for |
currentRange | object | Custom date range for the current period (defaults to last 7 days if omitted) |
platforms | array | Filter by platform(s); defaults to all platforms if omitted |
prevRange | object | Comparison date range; only used when currentRange is also given |
ghl_get_facebook_ad_accounts
List Facebook ad accounts connected to a location. Optional filters: type, next (pagination cursor), fetchAll, limit.
| Parameter | Type | Description |
|---|---|---|
fetchAll | string | Whether to fetch all ad accounts |
limit | string | Max number of results to return |
next | string | Pagination cursor for the next page |
type | string | Filter by ad account type |
ghl_get_facebook_ad_account
Get a single Facebook ad account by ID. Required fields: adAccountId. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
adAccountId * | string | The Facebook ad account ID |
isDraft | boolean | Whether to fetch the draft version |
ghl_delete_facebook_ad_account
Delete a Facebook ad account. Required fields: adAccountId.
| Parameter | Type | Description |
|---|---|---|
adAccountId * | string | The Facebook ad account ID to delete |
ghl_create_facebook_integration
Create a Facebook ad-publishing integration for a location. Required fields: pageId. Optional: adAccountId.
| Parameter | Type | Description |
|---|---|---|
pageId * | string | The Facebook page ID to integrate |
adAccountId | string | The Facebook ad account ID to link |
ghl_get_facebook_integration
Get the Facebook ad-publishing integration for a location. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
isDraft | boolean | Whether to fetch the draft version |
ghl_delete_facebook_integration
Delete the Facebook ad-publishing integration for a location.
ghl_get_facebook_me
Get the Facebook identity (user/page) associated with the location's ad-publishing integration. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
isDraft | boolean | Whether to fetch the draft version |
ghl_get_facebook_entity
List Facebook ad entities (campaigns, ad sets, or ads). Required fields: type (AD_MANAGER, INTEGRATION), entityType (CAMPAIGN, ADSET, AD). Optional: next, fetchAll, campaignId, adSetId, searchId, selectedAdAccountId.
| Parameter | Type | Description |
|---|---|---|
entityType * | string | The entity level to list |
type * | string | The Facebook connection type |
adSetId | string | Filter ads by ad set ID |
campaignId | string | Filter ad sets/ads by campaign ID |
fetchAll | string | Whether to fetch all entities |
next | string | Pagination cursor for the next page |
searchId | string | Filter by search ID |
selectedAdAccountId | string | The selected ad account ID |
ghl_get_facebook_pages
List Facebook pages available to a location. Optional: fetchExisting.
| Parameter | Type | Description |
|---|---|---|
fetchExisting | string | Whether to include already-connected pages |
ghl_delete_facebook_page
Disconnect a Facebook page from a location. Required fields: pageId.
| Parameter | Type | Description |
|---|---|---|
pageId * | string | The Facebook page ID to disconnect |
ghl_set_default_facebook_page
Set the default Facebook page for a location. Required fields: pageId. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
pageId * | string | The Facebook page ID to set as default |
isDraft | boolean | Whether to apply this to the draft version |
ghl_get_facebook_page_forms
List lead forms for a Facebook page. Required fields: pageId. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
pageId * | string | The Facebook page ID |
isDraft | boolean | Whether to fetch the draft version |
ghl_create_facebook_page_form
Create a Facebook lead form on a page. Required fields: pageId, type (MORE_VOLUME, HIGHER_INTENT), name, questions, privacyPolicyLink, thankYouPage. Optional: questionPageHeadline, privacyPolicyText, greetingCard, customDisclaimer, isDraft, draftFormId, locale.
| Parameter | Type | Description |
|---|---|---|
name * | string | The lead form name |
pageId * | string | The Facebook page ID to create the form on |
privacyPolicyLink * | string | Privacy policy URL |
questions * | array | List of questions displayed on the lead form |
thankYouPage * | object | Thank you page configuration |
type * | string | The lead form type |
customDisclaimer | object | Custom disclaimer configuration |
draftFormId | string | Draft form ID |
greetingCard | object | Greeting card configuration |
isDraft | boolean | If the form is a draft, set to true |
locale | string | Locale, e.g. EN_US |
privacyPolicyText | string | Privacy policy text |
questionPageHeadline | string | Question page headline |
ghl_get_facebook_page_instagram_accounts
List Instagram accounts linked to a Facebook page. Required fields: pageId. Optional: type (INTEGRATION, AD_MANAGER).
| Parameter | Type | Description |
|---|---|---|
pageId * | string | The Facebook page ID |
type | string | Filter by connection type |
ghl_get_facebook_campaign
Get a single Facebook campaign by ID. Required fields: campaignId. Optional: fields, source.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | The Facebook campaign ID |
fields | string | Comma-separated list of fields to return |
source | string | Campaign data source |
ghl_upsert_facebook_campaign
Create or update a Facebook campaign. Pass id to update an existing campaign, or omit it to create a new one. Optional: name, objective (OUTCOME_LEADS, OUTCOME_TRAFFIC, OUTCOME_ENGAGEMENT, OUTCOME_SALES), specialAdCategories, source.
| Parameter | Type | Description |
|---|---|---|
id | string | Campaign ID — provide to update, omit to create |
name | string | Campaign name |
objective | string | Campaign objective |
source | string | Campaign data source |
specialAdCategories | array | Special ad categories |
ghl_delete_facebook_campaign
Delete a Facebook campaign. Required fields: campaignId.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | The Facebook campaign ID to delete |
ghl_duplicate_facebook_campaign
Duplicate a Facebook campaign. Required fields: campaignId.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | The Facebook campaign ID to duplicate |
ghl_pause_facebook_campaign
Pause a Facebook campaign. Required fields: campaignId.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | The Facebook campaign ID to pause |
ghl_publish_facebook_campaign
Publish a Facebook campaign. Required fields: campaignId.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | The Facebook campaign ID to publish |
ghl_get_facebook_campaign_publishing_progress
Get the publishing progress of a Facebook campaign. Required fields: campaignId. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | The Facebook campaign ID |
isDraft | boolean | Whether to fetch the draft version |
ghl_resume_facebook_campaign
Resume a paused Facebook campaign. Required fields: campaignId.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | The Facebook campaign ID to resume |
ghl_upsert_facebook_adset
Create or update a Facebook ad set. Pass id to update an existing ad set, or omit it to create a new one. Required fields: campaignId. Optional: name, pageId, instagramActorId, messagingPlatforms (WHATSAPP, MESSENGER, INSTAGRAM_DIRECT), whatsappNumber, audience, budget, conversionLocation, customEventType, pixelId.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | The parent campaign ID |
audience | object | Targeting audience configuration (geo-locations, locales, placements, custom audiences) |
budget | object | Ad set budget configuration |
conversionLocation | string | Conversion location |
customEventType | string | Custom event type |
id | string | Ad set ID — provide to update, omit to create |
instagramActorId | string | Instagram actor ID |
messagingPlatforms | array | Messaging platforms |
name | string | Ad set name |
pageId | string | Facebook page ID |
pixelId | string | Conversion pixel ID |
whatsappNumber | string | WhatsApp phone number |
ghl_delete_facebook_adset
Delete a Facebook ad set. Required fields: adSetId.
| Parameter | Type | Description |
|---|---|---|
adSetId * | string | The Facebook ad set ID to delete |
ghl_duplicate_facebook_adset
Duplicate a Facebook ad set. Required fields: adSetId.
| Parameter | Type | Description |
|---|---|---|
adSetId * | string | The Facebook ad set ID to duplicate |
ghl_pause_facebook_adset
Pause a Facebook ad set. Required fields: adSetId.
| Parameter | Type | Description |
|---|---|---|
adSetId * | string | The Facebook ad set ID to pause |
ghl_resume_facebook_adset
Resume a paused Facebook ad set. Required fields: adSetId.
| Parameter | Type | Description |
|---|---|---|
adSetId * | string | The Facebook ad set ID to resume |
ghl_upsert_facebook_ad
Create or update a Facebook ad. Pass id to update an existing ad, or omit it to create a new one. Required fields: campaignId, adsetId. Optional: name, primaryText, headline, description, imageUrl, mediaType (SINGLE, CAROUSEL), media, multiAdvertiserAds, cta, conversationFormId, destinationLink, destinationFormId.
| Parameter | Type | Description |
|---|---|---|
adsetId * | string | The parent ad set ID |
campaignId * | string | The parent campaign ID |
conversationFormId | string | Conversation form ID |
cta | string | Call to action type |
description | string | Ad description text |
destinationFormId | string | Destination form ID |
destinationLink | string | Destination link URL |
headline | string | Ad headline text |
id | string | Ad ID — provide to update, omit to create |
imageUrl | string | Ad image URL |
media | array | Media items (images or videos) attached to the ad creative |
mediaType | string | Ad media type |
multiAdvertiserAds | boolean | Enable multi-advertiser ads |
name | string | Ad name |
primaryText | string | Ad primary text |
ghl_delete_facebook_ad
Delete a Facebook ad. Required fields: adId.
| Parameter | Type | Description |
|---|---|---|
adId * | string | The Facebook ad ID to delete |
ghl_duplicate_facebook_ad
Duplicate a Facebook ad. Required fields: adId.
| Parameter | Type | Description |
|---|---|---|
adId * | string | The Facebook ad ID to duplicate |
ghl_pause_facebook_ad
Pause a Facebook ad. Required fields: adId.
| Parameter | Type | Description |
|---|---|---|
adId * | string | The Facebook ad ID to pause |
ghl_resume_facebook_ad
Resume a paused Facebook ad. Required fields: adId.
| Parameter | Type | Description |
|---|---|---|
adId * | string | The Facebook ad ID to resume |
ghl_get_facebook_custom_audiences
Get Facebook custom audiences for a location. Required fields: type, adAccountId. Optional: source.
| Parameter | Type | Description |
|---|---|---|
adAccountId * | string | Facebook ad account ID |
type * | string | Custom audience type filter |
source | string | Audience data source |
ghl_delete_facebook_custom_audience
Delete a Facebook custom audience. Required fields: audienceId. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
audienceId * | string | The Facebook custom audience ID to delete |
isDraft | boolean | Whether to delete the draft version |
ghl_update_facebook_custom_audience
Update a Facebook custom audience's name and description. Required fields: audienceId, name. Optional: description.
| Parameter | Type | Description |
|---|---|---|
audienceId * | string | The Facebook custom audience ID to update |
name * | string | Audience name |
description | string | Audience description |
ghl_get_facebook_custom_audience
Get a single Facebook custom audience by ID. Required fields: audienceId. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
audienceId * | string | The Facebook custom audience ID |
isDraft | boolean | Whether to fetch the draft version |
ghl_add_facebook_custom_audience_member
Add a contact to a Facebook custom audience. Required fields: audienceId, contactId. Optional: fbAdAccountId.
| Parameter | Type | Description |
|---|---|---|
audienceId * | string | The Facebook custom audience ID |
contactId * | string | The contact ID to add to the audience |
fbAdAccountId | string | Facebook ad account ID |
ghl_remove_facebook_custom_audience_member
Remove a contact from a Facebook custom audience. Required fields: audienceId, contactId. Optional: fbAdAccountId.
| Parameter | Type | Description |
|---|---|---|
audienceId * | string | The Facebook custom audience ID |
contactId * | string | The contact ID to remove from the audience |
fbAdAccountId | string | Facebook ad account ID |
ghl_batch_update_facebook_custom_audience_members
Batch add or remove members of a Facebook custom audience via CSV, smartlists, or a dynamic audience. Required fields: audienceId, operationType. Optional: csvPath, smartlistIds, dynamicAudience.
| Parameter | Type | Description |
|---|---|---|
audienceId * | string | The Facebook custom audience ID |
operationType * | string | Batch operation type (e.g. ADD, REMOVE) |
csvPath | string | CSV file path containing the members to update |
dynamicAudience | string | Dynamic audience flag (spec models this as a string, e.g. "true") |
smartlistIds | array | Smartlist IDs to source members from |
ghl_get_facebook_pixels
Get Facebook conversion pixels for a location. Optional: channel, pageId, igUserId.
| Parameter | Type | Description |
|---|---|---|
channel | string | Channel filter |
igUserId | string | Instagram user ID filter |
pageId | string | Facebook page ID filter |
ghl_upsert_facebook_pixel
Create or update a Facebook conversion pixel. Pass conversionPixelId to update an existing pixel, or omit it to create a new one. Required fields: type. Optional: name, igUserId.
| Parameter | Type | Description |
|---|---|---|
type * | string | Pixel event type (e.g. LEAD_EVENT) |
conversionPixelId | string | Conversion pixel ID — provide to update, omit to create |
igUserId | string | Instagram user ID |
name | string | Pixel name |
ghl_get_facebook_conversation_forms
Get Facebook conversation forms for a location. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
isDraft | boolean | Whether to fetch draft versions |
ghl_create_facebook_conversation_form
Create a Facebook conversation form. Required fields: name, text, questions (array of {question, response?}).
| Parameter | Type | Description |
|---|---|---|
name * | string | Conversation form name |
questions * | array | Quick-reply questions shown in the welcome message |
text * | string | Welcome message text |
ghl_get_facebook_lead_form
Get a single Facebook lead form by ID. Required fields: leadFormId. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
leadFormId * | string | The Facebook lead form ID |
isDraft | boolean | Whether to fetch the draft version |
ghl_get_facebook_reporting
Get Facebook ad reporting data with aggregation. Required fields: fields (array), groupBy, startDate, endDate, type.
| Parameter | Type | Description |
|---|---|---|
endDate * | string | End date for the report (YYYY-MM-DD format) |
fields * | array | Fields to include in the report |
groupBy * | string | Group results by time period |
startDate * | string | Start date for the report (YYYY-MM-DD format) |
type * | string | Report type |
ghl_get_facebook_campaign_reporting
Get reporting data for a specific Facebook campaign. Required fields: campaignId, startDate, endDate.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | Facebook campaign ID |
endDate * | string | End date for the report (YYYY-MM-DD format) |
startDate * | string | Start date for the report (YYYY-MM-DD format) |
ghl_get_facebook_reporting_list
Get a list of Facebook reporting data (campaigns, ad sets, or ads). Required fields: listType, startDate, endDate, type. Optional: campaignId.
| Parameter | Type | Description |
|---|---|---|
endDate * | string | End date for the report (YYYY-MM-DD format) |
listType * | string | List type (e.g. CAMPAIGNS, ADSETS, ADS) |
startDate * | string | Start date for the report (YYYY-MM-DD format) |
type * | string | Report type |
campaignId | string | Filter by campaign ID |
ghl_search_facebook_targeting
Search Facebook targeting options (interests, behaviors, demographics). Required fields: type, query. Optional: locationId, searchType.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query string |
type * | string | Targeting type (e.g. INTERESTS, BEHAVIORS, DEMOGRAPHICS) |
locationId | string | Location ID (defaults to config location if not provided) |
searchType | string | Search type (e.g. KEYWORD) |
ghl_get_google_ad_accounts
List Google ad accounts connected to a location. Optional filter: type.
| Parameter | Type | Description |
|---|---|---|
type | string | Filter by ad account type |
ghl_get_google_ad_account
Get a single Google ad account by ID. Required fields: adAccountId. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
adAccountId * | string | The Google ad account ID |
isDraft | boolean | Whether to fetch the draft version |
ghl_delete_google_ad_account
Delete a Google ad account. Required fields: adAccountId.
| Parameter | Type | Description |
|---|---|---|
adAccountId * | string | The Google ad account ID to delete |
ghl_create_google_integration
Create a Google ad-publishing integration for a location. Required fields: adAccountId, mccId.
| Parameter | Type | Description |
|---|---|---|
adAccountId * | string | The Google ad account ID to link |
mccId * | string | The Google MCC (My Client Center) ID |
ghl_get_google_integration
Get the Google ad-publishing integration for a location. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
isDraft | boolean | Whether to fetch the draft version |
ghl_get_google_me
Get the Google identity associated with the location's ad-publishing integration. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
isDraft | boolean | Whether to fetch the draft version |
ghl_get_google_entity
List Google ad entities (campaigns, ad groups, or ads). Required fields: type (AD_MANAGER, INTEGRATION), entityType (CAMPAIGN, ADGROUP, AD). Optional: campaignId, adGroupId, searchId, startDate, endDate, selectedAdAccountId.
| Parameter | Type | Description |
|---|---|---|
entityType * | string | The entity level to list |
type * | string | The Google connection type |
adGroupId | string | Filter ads by ad group ID |
campaignId | string | Filter ad groups/ads by campaign ID |
endDate | string | End date filter (YYYY-MM-DD format) |
searchId | string | Filter by search ID |
selectedAdAccountId | string | The selected ad account ID |
startDate | string | Start date filter (YYYY-MM-DD format) |
ghl_upsert_google_campaign
Create or update a Google Ads campaign. Pass id to update an existing campaign, or omit it to create a new one. Required fields: name, advertisingChannelType (SEARCH, DISCOVERY, DISPLAY, HOTEL, LOCAL, MULTI_CHANNEL, PERFORMANCE_MAX, DEMAND_GEN). Optional: advertisingChannelSubType (DEMAND_GEN), goalType (WEBSITE_TRAFFIC, LEAD), budget, audience, networkSettings, biddingStrategy, assets, isEuPoliticalAds, adGroups, campaignGoal, adSchedule, publishingStatus (DRAFT, SCHEDULED, PUBLISHED, PUBLISHING, FAILED, IN_REVIEW, PAUSED, ARCHIVED, WITH_ISSUES, REJECTED), googleAdAccountId, unpublishedChange…
| Parameter | Type | Description |
|---|---|---|
advertisingChannelType * | string | Advertising channel type |
name * | string | Campaign name |
adGroups | array | Ad groups within the campaign |
adSchedule | array | Ad schedule entries |
advancedOptions | object | Advanced campaign options |
advertisingChannelSubType | string | Advertising channel sub type |
assets | object | Campaign-level assets configuration |
audience | object | Targeting audience configuration |
biddingStrategy | object | Bidding strategy configuration |
budget | object | Campaign budget configuration |
campaignGoal | object | Campaign goal configuration |
goalType | string | Campaign goal type |
googleAdAccountId | string | Google ad account ID |
googleCampaignId | string | Google's own campaign ID |
id | string | Campaign ID — provide to update, omit to create |
isEuPoliticalAds | boolean | Whether this is an EU political ad |
maximumCpc | number | Maximum cost-per-click bid |
networkSettings | object | Network settings configuration |
publishingStatus | string | Publishing status |
source | string | Campaign data source |
unpublishedChanges | boolean | Whether there are unpublished changes |
ghl_get_google_campaign
Get a single Google Ads campaign by ID. Required fields: adId. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
adId * | string | The Google ad/campaign ID |
isDraft | boolean | Whether to fetch the draft version |
ghl_publish_google_campaign
Publish a Google Ads campaign and push it live. Required fields: adId.
| Parameter | Type | Description |
|---|---|---|
adId * | string | The Google ad/campaign ID to publish |
ghl_get_google_assets
List Google Ads creative assets. Required fields: type (CALL, SITELINK, LEAD_FORM, IMAGE, TEXT). Optional: id, advertiserOnly.
| Parameter | Type | Description |
|---|---|---|
type * | string | Asset type to list |
advertiserOnly | string | Whether to only return advertiser-owned assets (e.g. "true") |
id | string | Filter by a specific asset ID |
ghl_upsert_google_assets
Create or update a Google Ads creative asset. Required fields: type (CALL, SITELINK, LEAD_FORM), payload (shape depends on type — CallAssetPayload for CALL, SitelinkAssetPayload for SITELINK, LeadFormAssetPayload for LEAD_FORM). Include a resourceName inside payload to update an existing asset, or omit it to create a new one.
| Parameter | Type | Description |
|---|---|---|
payload * | object | Asset payload — shape depends on type. Include resourceName to update an existing asset. |
type * | string | Asset type to create or update |
ghl_get_google_keyword_ideas
Get Google Ads keyword ideas for a target URL. Required fields: url. Optional: languageCode, locations, keywords, isDraft.
| Parameter | Type | Description |
|---|---|---|
url * | string | Target URL to generate keyword ideas for |
isDraft | boolean | Whether to fetch the draft version |
keywords | array | Seed keywords |
languageCode | string | Language code (e.g. en) |
locations | array | Target locations |
ghl_upsert_google_audience
Create or update a Google Ads audience. Pass resourceName to update an existing audience, or omit it to create a new one. Required fields: name. Optional: dimensions, exclusionDimension.
| Parameter | Type | Description |
|---|---|---|
name * | string | Audience name |
dimensions | object | Audience dimensions |
exclusionDimension | object | Exclusion dimensions |
resourceName | string | Google Ads resource name — provide to update, omit to create |
ghl_get_google_audiences
List Google Ads audiences for the location. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
isDraft | boolean | Whether to fetch draft versions |
ghl_get_google_audience
Get a single Google Ads audience by ID. Required fields: audienceId. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
audienceId * | string | The Google Ads audience ID |
isDraft | boolean | Whether to fetch the draft version |
ghl_get_google_segments
List Google Ads segments for the location. Optional: type.
| Parameter | Type | Description |
|---|---|---|
type | string | Filter by segment type |
ghl_upsert_google_segment
Create or update a Google Ads segment. Pass id in the body to update an existing segment, or omit it to create a new one. Required fields: type (CUSTOM_SEGMENTS, WEBSITE_VISITOR, CUSTOMER_MATCH, LOOKALIKE), name. Optional: description, members, status, id, membershipStatus, ruleBasedUserList, membershipLifeSpan, seedUserListIds, countryCodes, expansionLevel (BALANCED, BROAD, NARROW).
| Parameter | Type | Description |
|---|---|---|
name * | string | Segment name |
type * | string | Segment type |
countryCodes | array | Country codes |
description | string | Segment description |
expansionLevel | string | Lookalike expansion level |
id | string | Segment ID — provide to update, omit to create |
members | array | Segment members |
membershipLifeSpan | number | Membership life span in days |
membershipStatus | string | Membership status |
ruleBasedUserList | object | Rule-based user list config |
seedUserListIds | array | Seed user list IDs |
status | string | Segment status |
ghl_create_google_offline_user_list_job
Create a Google Ads offline user list upload job. Optional: smartListIds, csvPath, userListId, isDynamic.
| Parameter | Type | Description |
|---|---|---|
csvPath | string | Path to a CSV file of offline users |
isDynamic | boolean | Whether the list updates dynamically |
smartListIds | array | Smart list IDs to include |
userListId | string | Target user list ID |
ghl_delete_google_segment
Delete a Google Ads segment. Required fields: segmentId, type (CUSTOM_SEGMENTS, DATA_SEGMENTS).
| Parameter | Type | Description |
|---|---|---|
segmentId * | string | The Google Ads segment ID |
type * | string | Segment type |
ghl_get_google_segment
Get a single Google Ads segment by ID. Required fields: segmentId, type (CUSTOM_SEGMENTS, DATA_SEGMENTS).
| Parameter | Type | Description |
|---|---|---|
segmentId * | string | The Google Ads segment ID |
type * | string | Segment type |
ghl_get_google_conversions
List Google Ads conversion actions for the location. Optional: type (AD_MANAGER, AD_WORDS), conversionType, category, startDate, endDate.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by conversion category |
conversionType | string | Filter by conversion type |
endDate | string | Filter end date |
startDate | string | Filter start date |
type | string | Conversion source type |
ghl_upsert_google_conversion
Create or update a Google Ads conversion action. Pass conversionId to update an existing conversion, or omit it to create a new one. Required fields: name, type (UPLOAD_CLICKS, UPLOAD_CALLS, WEBPAGE, LEAD_FORM_SUBMIT), category, valueSettings, countingType (ONE_PER_CLICK, MANY_PER_CLICK), attributionModel (GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN, GOOGLE_ADS_LAST_CLICK), clickThroughWindow.
| Parameter | Type | Description |
|---|---|---|
attributionModel * | string | Attribution model |
category * | string | Conversion category |
clickThroughWindow * | number | Click-through conversion window in days |
countingType * | string | Conversion counting type |
name * | string | Conversion action name |
type * | string | Conversion action type |
valueSettings * | object | Value settings that control how monetary value is attributed to conversions |
conversionId | string | Conversion ID — provide to update, omit to create |
ghl_get_google_conversion
Get a single Google Ads conversion action by ID. Required fields: conversionId. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
conversionId * | string | The Google Ads conversion action ID |
isDraft | boolean | Whether to fetch the draft version |
ghl_delete_google_conversion
Delete a Google Ads conversion action. Required fields: conversionId. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
conversionId * | string | The Google Ads conversion action ID |
isDraft | boolean | Whether to target the draft version |
ghl_get_google_conversion_goals
List Google Ads conversion goals for the location. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
isDraft | boolean | Whether to fetch draft versions |
ghl_get_google_target_interests
Search Google Ads target interest categories. Required fields: type (AFFINITY, IN_MARKET), advertisingChannelType.
| Parameter | Type | Description |
|---|---|---|
advertisingChannelType * | string | Advertising channel type to search interests for |
type * | string | Target interest type |
ghl_get_google_reporting
Get Google Ads reporting data with aggregation. Required fields: fields (array), startDate, endDate, type. Optional: groupBy.
| Parameter | Type | Description |
|---|---|---|
endDate * | string | End date for the report (YYYY-MM-DD format) |
fields * | array | Fields to include in the report |
startDate * | string | Start date for the report (YYYY-MM-DD format) |
type * | string | Report type |
groupBy | string | Group results by time period |
ghl_get_google_campaign_reporting
Get reporting data for a specific Google Ads campaign. Required fields: campaignId, startDate, endDate.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | Google Ads campaign ID |
endDate * | string | End date for the report (YYYY-MM-DD format) |
startDate * | string | Start date for the report (YYYY-MM-DD format) |
ghl_get_google_reporting_list
Get a list of Google Ads reporting data (e.g. campaigns). Required fields: listType, startDate, endDate, type. Optional: campaignId.
| Parameter | Type | Description |
|---|---|---|
endDate * | string | End date for the report (YYYY-MM-DD format) |
listType * | string | List type (e.g. campaigns) |
startDate * | string | Start date for the report (YYYY-MM-DD format) |
type * | string | Report type |
campaignId | string | Filter by campaign ID |
ghl_search_google_targeting
Search Google Ads targeting options (e.g. geolocation). Required fields: type. Optional: query.
| Parameter | Type | Description |
|---|---|---|
type * | string | Targeting type (e.g. geolocation) |
query | string | Search query string |
ghl_get_linkedin_ad_account
Get a connected LinkedIn ad account. Required fields: adAccountId.
| Parameter | Type | Description |
|---|---|---|
adAccountId * | string | The LinkedIn ad account ID |
ghl_delete_linkedin_ad_account
Delete a connected LinkedIn ad account. Required fields: adAccountId.
| Parameter | Type | Description |
|---|---|---|
adAccountId * | string | The LinkedIn ad account ID to delete |
ghl_get_linkedin_ad_accounts
List connected LinkedIn ad accounts for the location. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
isDraft | boolean | Whether to fetch draft versions |
ghl_create_linkedin_integration
Create a LinkedIn ad account integration for the location. Required fields: adAccountId, adAccountName, currencyCode, organizationId.
| Parameter | Type | Description |
|---|---|---|
adAccountId * | string | LinkedIn ad account ID |
adAccountName * | string | LinkedIn ad account name |
currencyCode * | string | Ad account currency code (e.g. USD) |
organizationId * | string | LinkedIn organization ID |
ghl_get_linkedin_integration
Get the LinkedIn ad account integration for the location. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
isDraft | boolean | Whether to fetch the draft version |
ghl_get_linkedin_me
Get the authenticated LinkedIn member profile for the location's integration.
ghl_upsert_linkedin_campaign
Create or update a LinkedIn ad campaign group. Pass adCampaignGroupId to update an existing campaign group, or omit it to create a new one. Optional: name, objectiveType (LEAD_GENERATION, WEBSITE_VISIT), adBudgetOptimization (MAXIMUM_DELIVERY, COST_CAP), budget, adCampaigns, linkedInAdAccountId, publishingStatus (DRAFT, SCHEDULED, PUBLISHED, PUBLISHING, FAILED, IN_REVIEW, PAUSED, ARCHIVED, WITH_ISSUES, REJECTED), meta.
| Parameter | Type | Description |
|---|---|---|
adBudgetOptimization | string | Ad budget optimization mode |
adCampaignGroupId | string | LinkedIn campaign group resource ID — provide to update, omit to create |
adCampaigns | array | Child ad campaigns (permissive — see AdCampaignDTO for full shape) |
budget | object | Campaign group budget |
linkedInAdAccountId | string | LinkedIn ad account identifier |
meta | object | Additional metadata |
name | string | Campaign group name |
objectiveType | string | Campaign group objective |
publishingStatus | string | Publishing status |
ghl_get_linkedin_campaign
Get a single LinkedIn ad campaign group by ID. Required fields: adId. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
adId * | string | The LinkedIn ad (campaign group) ID |
isDraft | boolean | Whether to fetch the draft version |
ghl_publish_linkedin_campaign
Publish a LinkedIn ad campaign group to LinkedIn. Required fields: adId.
| Parameter | Type | Description |
|---|---|---|
adId * | string | The LinkedIn ad (campaign group) ID to publish |
ghl_update_linkedin_ad_status
Update the status of a LinkedIn ad entity. Required fields: adId, operationType (PAUSED, ARCHIVED, RESUME), type (adGroup, adCampaign, ad). Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
adId * | string | The LinkedIn ad entity ID |
operationType * | string | Status operation to apply |
type * | string | Entity type the status update targets |
isDraft | boolean | Whether to target the draft version |
ghl_create_linkedin_lead_form
Create a LinkedIn lead-gen form for an ad account. Required fields: accountId, owner, creationLocale, name, state (PUBLISHED), content. Optional: hiddenFields, isDraft.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | The LinkedIn ad account ID to create the form under |
content * | object | Form content (permissive — see LeadFormContentDTO for full shape) |
creationLocale * | object | Creation locale |
name * | string | Form name |
owner * | object | Form owner |
state * | string | Form state |
hiddenFields | array | Hidden fields |
isDraft | boolean | Whether to create as a draft |
ghl_get_linkedin_lead_forms
List LinkedIn lead-gen forms for an ad account. Required fields: accountId. Optional: isDraft.
| Parameter | Type | Description |
|---|---|---|
accountId * | string | The LinkedIn ad account ID |
isDraft | boolean | Whether to fetch draft versions |
ghl_get_linkedin_reporting
Get LinkedIn ad reporting analytics. Required fields: startDate, endDate. Optional: pivot (ACCOUNT, CAMPAIGN, CAMPAIGN_GROUP, CREATIVE), groupBy (day, month, year), entityUrns, fields.
| Parameter | Type | Description |
|---|---|---|
endDate * | string | End date in yyyy-mm-dd format |
startDate * | string | Start date in yyyy-mm-dd format |
entityUrns | string | Comma-separated list of entity URNs |
fields | array | Reporting fields to include |
groupBy | string | Time granularity for analytics |
pivot | string | Analytics pivot type |
ghl_get_linkedin_campaign_group_reporting
Get LinkedIn ad reporting analytics for a specific campaign group. Required fields: campaignGroupId, startDate, endDate. Optional: fields.
| Parameter | Type | Description |
|---|---|---|
campaignGroupId * | string | The LinkedIn campaign group ID |
endDate * | string | End date in yyyy-mm-dd format |
startDate * | string | Start date in yyyy-mm-dd format |
fields | array | Reporting fields to include |
ghl_get_linkedin_reporting_list
Get a LinkedIn reporting list for a campaign within a campaign group. Required fields: listType, campaignId, campaignGroupId, startDate, endDate. Optional: fields.
| Parameter | Type | Description |
|---|---|---|
campaignGroupId * | string | The LinkedIn campaign group ID |
campaignId * | string | The LinkedIn campaign ID |
endDate * | string | End date in yyyy-mm-dd format |
listType * | string | List type (e.g. campaigns) |
startDate * | string | Start date in yyyy-mm-dd format |
fields | array | Reporting fields to include |
ghl_search_linkedin_targeting
Search LinkedIn targeting facets (e.g. locations, industries, job titles). Required fields: facet. Optional: query, q.
| Parameter | Type | Description |
|---|---|---|
facet * | string | Targeting facet to search (e.g. locations) |
q | string | Query parameter |
query | string | Search query |
ghl_create_space
Create a new Project space. Spaces are the top level of the Projects hierarchy (Space > Folder > List > Task).
| Parameter | Type | Description |
|---|---|---|
name * | string | Space name |
color | string | Space color swatch |
isPrivate | boolean | Whether the space is private |
userIds | array | User IDs to give access to the space |
ghl_get_spaces
List all Project spaces in the account.
ghl_get_space
Get a single Project space by ID.
| Parameter | Type | Description |
|---|---|---|
spaceId * | string | Space ID |
ghl_update_space
Update a Project space's name, color, privacy or member list. Only the fields provided are changed.
| Parameter | Type | Description |
|---|---|---|
spaceId * | string | Space ID |
color | string | New space color swatch |
isPrivate | boolean | Whether the space is private |
name | string | New space name |
userIds | array | User IDs to give access to the space |
ghl_delete_space
Permanently delete a Project space.
| Parameter | Type | Description |
|---|---|---|
spaceId * | string | Space ID |
ghl_get_space_users
List the users who have access to a Project space.
| Parameter | Type | Description |
|---|---|---|
spaceId * | string | Space ID |
limit | number | Maximum members to return (max 50) |
skip | number | Number of members to skip (pagination) |
ghl_revoke_space_member
Remove a user's access to a Project space.
| Parameter | Type | Description |
|---|---|---|
spaceId * | string | Space ID |
userId * | string | User ID to remove from the space |
ghl_get_folders
List the folders in a Project space (paginated).
| Parameter | Type | Description |
|---|---|---|
spaceId * | string | Space ID |
anchorId | string | Folder ID to anchor pagination on |
cursor | string | Pagination cursor |
limit | number | Maximum folders to return (1-100, default 20) |
ghl_create_folder
Create a new folder inside a Project space. Folders sit between a space and its lists.
| Parameter | Type | Description |
|---|---|---|
name * | string | Folder name |
spaceId * | string | Space ID to create the folder in |
color | string | Folder color swatch |
isPrivate | boolean | Whether the folder is private |
userIds | array | User IDs to give access to the folder |
ghl_get_folder
Get a single Project folder by ID.
| Parameter | Type | Description |
|---|---|---|
folderId * | string | Folder ID |
ghl_update_folder
Update a Project folder's name, color, privacy or member list. Only the fields provided are changed.
| Parameter | Type | Description |
|---|---|---|
folderId * | string | Folder ID |
color | string | New folder color swatch |
isPrivate | boolean | Whether the folder is private |
name | string | New folder name |
userIds | array | User IDs to give access to the folder |
ghl_delete_folder
Permanently delete a Project folder.
| Parameter | Type | Description |
|---|---|---|
folderId * | string | Folder ID |
ghl_get_folder_users
List the users who have access to a Project folder.
| Parameter | Type | Description |
|---|---|---|
folderId * | string | Folder ID |
limit | number | Maximum members to return (1-50, default 50) |
skip | number | Number of members to skip (pagination) |
ghl_revoke_folder_member
Remove a user's access to a Project folder.
| Parameter | Type | Description |
|---|---|---|
folderId * | string | Folder ID |
userId * | string | User ID to remove from the folder |
ghl_get_lists_in_space
List the lists sitting directly in a Project space (paginated).
| Parameter | Type | Description |
|---|---|---|
spaceId * | string | Space ID |
anchorId | string | List ID to anchor pagination on |
cursor | string | Pagination cursor |
limit | number | Maximum lists to return (1-100, default 20) |
ghl_create_list_in_space
Create a new list directly inside a Project space.
| Parameter | Type | Description |
|---|---|---|
name * | string | List name |
spaceId * | string | Space ID to create the list in |
color | string | List color swatch |
isPrivate | boolean | Whether the list is private |
userIds | array | User IDs to give access to the list |
ghl_get_lists_in_folder
List the lists inside a Project folder (paginated).
| Parameter | Type | Description |
|---|---|---|
folderId * | string | Folder ID |
anchorId | string | List ID to anchor pagination on |
cursor | string | Pagination cursor |
limit | number | Maximum lists to return (1-100, default 20) |
ghl_create_list_in_folder
Create a new list inside a Project folder.
| Parameter | Type | Description |
|---|---|---|
folderId * | string | Folder ID to create the list in |
name * | string | List name |
color | string | List color swatch |
isPrivate | boolean | Whether the list is private |
userIds | array | User IDs to give access to the list |
ghl_get_list
Get a single Project list by ID.
| Parameter | Type | Description |
|---|---|---|
listId * | string | List ID |
ghl_update_list
Update a Project list's name, color, privacy or member list. Only the fields provided are changed.
| Parameter | Type | Description |
|---|---|---|
listId * | string | List ID |
color | string | New list color swatch |
isPrivate | boolean | Whether the list is private |
name | string | New list name |
userIds | array | User IDs to give access to the list |
ghl_delete_list
Permanently delete a Project list.
| Parameter | Type | Description |
|---|---|---|
listId * | string | List ID |
ghl_get_list_users
List the users who have access to a Project list (paginated, max 50 per page).
| Parameter | Type | Description |
|---|---|---|
listId * | string | List ID |
limit | number | Maximum members to return (1-50, default 50) |
skip | number | Number of members to skip (pagination, default 0) |
ghl_revoke_list_member
Remove a user's access to a Project list.
| Parameter | Type | Description |
|---|---|---|
listId * | string | List ID |
userId * | string | User ID to remove from the list |
ghl_get_space_statuses
Get the status groups and statuses configured for a Project space.
| Parameter | Type | Description |
|---|---|---|
spaceId * | string | Space ID |
ghl_update_space_statuses
Replaces the entire status set for this space — omitted groups or statuses are removed. Pass the complete groups array you want the space to have.
| Parameter | Type | Description |
|---|---|---|
groups * | array | Complete array of status groups (with their nested statuses) for the space. Sent verbatim as the full replacement. |
spaceId * | string | Space ID |
ghl_get_list_statuses
Get the status groups and statuses configured for a Project list.
| Parameter | Type | Description |
|---|---|---|
listId * | string | List ID |
ghl_get_tasks
List the tasks in a Project list (paginated).
| Parameter | Type | Description |
|---|---|---|
listId * | string | List ID |
limit | number | Maximum tasks to return (1-100) |
searchAfter | string | Opaque pagination cursor from a previous response |
ghl_create_task
Create a new task in a Project list.
| Parameter | Type | Description |
|---|---|---|
dueDate * | string | Task due date (ISO 8601) |
listId * | string | List ID to create the task in |
title * | string | Task title |
assignees | array | User IDs assigned to the task (API limit: max 1 assignee) |
body | string | Task description/body |
businessId | string | Business ID to associate with the task |
contactId | string | Contact ID to associate with the task |
customFields | object | Custom field values keyed by field ID |
parentTaskId | string | Parent task ID, if this is a subtask |
priority | number | Task priority (1-4) |
startDate | string | Task start date (ISO 8601) |
status | string | Task status |
ghl_get_task
Get a single Project task by ID.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID |
ghl_update_task
Update a Project task. Only the fields provided are changed.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID |
assignees | array | User IDs assigned to the task (API limit: max 1 assignee) |
body | string | Task description/body |
businessId | string | Business ID to associate with the task |
contactId | string | Contact ID to associate with the task |
customFields | object | Custom field values keyed by field ID |
dueDate | string | Task due date (ISO 8601) |
parentTaskId | string | Parent task ID, if this is a subtask |
priority | number | Task priority (1-4) |
startDate | string | Task start date (ISO 8601) |
status | string | Task status |
title | string | Task title |
ghl_delete_task
Permanently delete a Project task.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID |
ghl_search_tasks
Search Project tasks across lists with filters, sorting and a free-text query.
| Parameter | Type | Description |
|---|---|---|
limit * | number | Maximum tasks to return (1-100) |
filters | array | Filter group(s) to apply (nested shape per GHL API) |
listIds | array | Restrict search to these list IDs (max 10) |
query | string | Free-text search query (max 75 characters) |
sort | array | Sort directive(s) to apply (nested shape per GHL API) |
subtaskViewMode | string | How subtasks are represented in results |
ghl_get_tasks_by_ids
Fetch multiple Project tasks in a single call by their IDs.
| Parameter | Type | Description |
|---|---|---|
ids * | array | Task IDs to fetch (1-100 items) |
ghl_get_task_lists
List the Project lists a task currently belongs to.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID |
ghl_add_task_to_list
Add an existing task to an additional Project list.
| Parameter | Type | Description |
|---|---|---|
listId * | string | List ID to add the task to |
taskId * | string | Task ID |
ghl_remove_task_from_list
Remove a task from a Project list.
| Parameter | Type | Description |
|---|---|---|
listId * | string | List ID to remove the task from |
taskId * | string | Task ID |
ghl_move_task_home_list
Move a task's home (primary) list to a different Project list.
| Parameter | Type | Description |
|---|---|---|
listId * | string | List ID to set as the task's new home list |
taskId * | string | Task ID |
ghl_get_task_comments
List the comments on a Project task (paginated). `skip` must be a multiple of `limit`.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID |
limit | number | Maximum comments to return (1-100, default 50) |
skip | number | Number of comments to skip (default 0). Must be a multiple of limit. |
ghl_create_task_comment
Add a comment to a Project task. Optionally reply to a comment or mention users.
| Parameter | Type | Description |
|---|---|---|
body * | string | Comment text (max 32000 characters) |
taskId * | string | Task ID |
mentionedUserIds | array | User IDs to mention in the comment |
parentCommentId | string | ID of the comment this one replies to, if it is a reply |
ghl_update_task_comment
Update the text (and mentions) of a comment on a Project task.
| Parameter | Type | Description |
|---|---|---|
body * | string | Comment text (max 32000 characters) |
commentId * | string | Comment ID |
taskId * | string | Task ID |
mentionedUserIds | array | User IDs to mention in the comment |
ghl_delete_task_comment
Delete a comment from a Project task.
| Parameter | Type | Description |
|---|---|---|
commentId * | string | Comment ID |
taskId * | string | Task ID |
ghl_create_recurring_task
Create a recurring Project task. Tasks are generated on the schedule defined by rruleOptions.
| Parameter | Type | Description |
|---|---|---|
rruleOptions * | object | Recurrence rule options (RFC 5545 RRULE fields, e.g. freq, interval, byday) |
title * | string | Title of the recurring task |
contactIds | array | Contact IDs associated with the task |
description | string | Description of the recurring task |
ignoreTaskCreation | boolean | When true, the recurrence is saved without generating tasks |
owners | array | User IDs of the task owners |
ghl_get_recurring_task
Get a recurring Project task by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Recurring task ID |
ghl_update_recurring_task
Update a recurring Project task. Only the fields you provide are changed.
| Parameter | Type | Description |
|---|---|---|
id * | string | Recurring task ID |
contactIds | array | Contact IDs associated with the task |
description | string | Description of the recurring task |
ignoreTaskCreation | boolean | When true, the recurrence is saved without generating tasks |
owners | array | User IDs of the task owners |
rruleOptions | object | Recurrence rule options (RFC 5545 RRULE fields, e.g. freq, interval, byday) |
title | string | Title of the recurring task |
ghl_delete_recurring_task
Delete a recurring Project task by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Recurring task ID |