gohighlevel-php-sdk

Working with Funnels

Funnel

The Funnel class is a resource for managing sales funnels and their pages. It lets you list funnels, retrieve details about their pages, count pages, and access the Redirect sub-resource.


list(string $locationId, array $params = []): array|string

This method retrieves a list of all funnels within a specified location.


pages(string $funnelId, string $locationId, int $limit, int $offset, array $params = []): array|string

Retrieves a paginated list of pages for a specific funnel.


countPages(string $funnelId, string $locationId, array $params = []): array|string

Counts the total number of pages in a specific funnel.


redirect(): RedirectContract

Returns an instance of the Redirect resource for managing funnel redirects.


Redirect

The Redirect class is a sub-resource of Funnel that provides methods to create, update, list, and delete URL redirects.


create(array $params): array|string

Creates a new URL redirect.


update(string $id, array $params): array|string

Updates an existing redirect by its ID.


list(string $locationId, array $params = []): array|string

Retrieves a list of all redirects for a specific location.


delete(string $id, string $locationId): array|string

Deletes a specific redirect.