Disconnect GoHighLevel
Disconnect the GoHighLevel CRM integration from a call flow.
DELETE
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-idstringrequiredWorkspace identifier for the API. The call flow must belong to this workspace (or one of its sub-workspaces).
Query Parameters
pathwayIdstringrequiredThe _id of the call flow to disconnect GoHighLevel from.
Response Fields
successbooleantrue when the integration was disconnected.
Errors
| Status | Body | When |
|---|---|---|
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