Trillet AI logo

Disconnect GoHighLevel

Disconnect the GoHighLevel CRM integration from a call flow.

DELETEhttps://api.trillet.ai/v1/api/crm/disconnect

Removes the stored GoHighLevel tokens from the call flow and turns the integration off. It also turns off GoHighLevel calendar booking and clears the selected calendar, so reconnecting later means setting booking up again.

If the call flow has an unpublished draft open in the editor, the change is saved to the draft only. Live calls keep the old setting until the draft is published.

Headers

x-workspace-idstringrequired

Workspace identifier for the API. The call flow must belong to this workspace (or one of its sub-workspaces).

Query Parameters

pathwayIdstringrequired

The _id of the call flow to disconnect GoHighLevel from.

Response Fields

successboolean

true when the integration was disconnected.

Errors

StatusBodyWhen
400{"error": "pathwayId query parameter is required"}No pathwayId
400{"error": "Invalid pathwayId"}pathwayId isn't a valid ID
403{"error": "You do not have access to this workspace."}You aren't a member of the x-workspace-id workspace
403{"error": "Pathway does not belong to this workspace."}The flow belongs to another workspace
404{"error": "Pathway not found"}No call flow with that ID
500{"error": "..."}The disconnect failed
{
  "success": true
}

Last updated on