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 theproject_id and secret_key as username and password in Basic HTTP
authentication.
Create your first business
A Pocketflowsbusiness 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.
id, which you’ll use as the
business_id in the next steps.
Create a customer within the business
A Pocketflowscustomer 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: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
- Sync businesses and customers to mirror all the records in your own system, in batches, and keep them current.
- Render an embed in your application to put this URL in front of your customers.
- Let businesses build segments from your data so they can target the right customers.
- Send messages when something happens in your product to power automated messages.
- Read Businesses, customers, and embeds for how these objects relate to each other.