boardme
Search…
Flow
Learn everything about the boardme Flow API.

Overview

boardme allows you programmatic access to Flows. The API calls help you gain fine-grained control over your user onboarding process.
To use the API you need to have boardme installed into your website or application!
If you are using the API within your JavaScript codebase, make sure boardme is imported before your application code!
In your application code, you can find boardme on the window object. It is in the global scope.
1
// To store it you could do:
2
const boardme = window.boardme;
3
​
4
// To use it within TypeScript projects could could do:
5
declare const boardme: any;
6
​
7
// It is a good idea to play it safe when importing external packages.
8
// A quick check before using the API is good practice!
9
boardme && boardme.apiCall();
Copied!
NPM package is available for improved development experience. Check it out here.

Using the NPM Package

You can add boardme to your project by executing the command below in your terminal.
1
npm install boardme --save
Copied!
Once installed, you can import it into your JavaScript or TypeScript code base and start using the API. The autocomplete should help you find the methods you are looking for.
If you are using the boardme API through the installed package, all your calls will be handled gracefully and you don't have to worry about a script import error crashing your application.

boardme.renderFlow();

You can display flows programmatically by calling this API method. When calling it you have to pass in the unique identifier of the Flow as a string.

Arguments

    flowIdentifier - unique identifier of the Flow as a string.

Example

1
const flowIdentifier = "aa5d7d44-132e7-4029-8b1a-e44ff75701eg";
2
​
3
boardme.renderFlow( flowIdentifier );
Copied!
​

boardme.clear();

You can clear all the onboarding artifacts (Flows, Guides) rendered on the screen by calling this API method.

Example

1
boardme.clear();
Copied!
​
Last modified 10mo ago