Resthook integration

Guideflow allows Guideflow users to create hooks to be notified about events.

Each flow can have multiple hooks, each for a specific event. You can create, list, and delete hooks.

Hooks management API

To use Hooks API, you must generate an API key in your Guideflow account. You can do it in Settings -> API Keys Section of your workspace.

Pass your API key in Api-Authorization header.

{
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Api-Authorization': api_key
}

Create hook

POST https://app.guideflow.com/v1/user/hooks

Body

{
  flowId: number,
  event: "first-interaction" | "lead-created" | "slide-viewed" | "external-link-clicked" | "completed" | "end-session",
  targetUrl: string
}

Response

Where targetUrl is the url where you want to receive events, event is the name of the event you want to subscribe to and flowId is the id of the flow you want to subscribe to.

List hooks

GET https://app.guideflow.com/v1/hooks

Response

Delete hook

DELETE https://app.guideflow.com/v1/hooks/:id

Response

Getting list of Guideflows

GET https://app.guideflow.com/v1/flow/byWorkspace

Pass your API key in Api-Authorization header.

Response


List of supported events

first-interaction Triggers when a user opens a guideflow in the player.

Schema
Example

lead-created Triggers when a user fills in the form or uses a custom link with pre-defined variables.

Schema
Example

slide-viewed Triggers when the user has viewed a step inside a guideflow.

Schema
Example

external-link-clicked Triggers when a user clicks an external link, usually at the final popup.

Schema
Example

completed Triggers when the user has reached the end of a guideflow.

Schema
Example

end-session Triggers when the user closes or leaves a guideflow (i.e., closes page).

Schema
Example

Last updated