Skip to main content
In this tutorial you will fetch your API keys, create a business, add a customer to it, and open an embed for that business in your browser.

Fetch your API keys

Log into dashboard.pocketflows.com and navigate to the API Keys tab. If you don’t have credentials yet, reach out to us team@pocketflows.com! Pocketflows provides different environments for development and production, and you can toggle between them by using the “Test Mode” toggle at the top right corner of your dashboard. All API endpoints are authenticated using Basic HTTP authentication. Pass the project_id and secret_key as username and password in Basic HTTP authentication.

Create your first business

A Pocketflows business usually maps to one of your SMB customers. For example, if you’re Toasté, a vertical SaaS company for restaurants, a Pocketflows business object would map to one of your restaurant customers. Create it with the sync endpoint, passing the identifier your own system uses for the business as external_id. Syncing again with the same external_id updates this business instead of creating a second one.
The response is the business. Save its id, which you’ll use as the business_id in the next steps.

Create a customer within the business

A Pocketflows customer refers to one of your customer’s customers. Continuing the Toasté example, a diner at one of the restaurants that uses Toasté would be a Pocketflows customer. Use your own email address, so the messages you send later reach you.

Create an embed

A Pocketflows embed is a URL that you can add directly inside your existing application so that your customers can create marketing without leaving your platform. To create an embed:
This will return a URL of your embedded marketing flow, which you can open in your browser of choice. This embed is exactly what your restaurant customer Test Business would be able to see! Now you can create a campaign, trigger, customers, and more via our pre-built marketing flows! You can try sending yourself any of the pre-built campaigns.

Next steps