Here is a step by step guide on how you can offer your own custom Brizy templates to your users via an API integration:
Step 1. Create a new workspace in your white label Brizy dashboard
Login into your Brizy cloud white label account and create a new Workspace where your custom templates will be created.
Step 2. Create your custom templates
Create your custom templates within Brizy as you would any other Brizy website. You can use all the tools inside Brizy to create a multi-page website as simple or complex as you like. These templates will be duplicated in your users accounts when they choose to start with one of the templates.
Step 3. Create a listing of your custom templates in your product / dashboard
Create a listing of your custom templates inside your website / product / dashboard from where your users will get the option to choose the one they want installed.
For inspiration, here is how this listing looks like inside the Brizy Cloud dashboard:
You can also check it live on our website - https://www.brizy.io/templates
Step 4. Add preview links on your custom templates
Your custom templates listing will need to have a preview link for each pre-made website. This link will allow your users to check out a preview of the website and decide if that is the template they want to start with.
Step 5. Create a cloning link via API: https://your-app.host/layouts/{Project.id}
Your templates need to have a cloning link (for each template) such as when the user clicks this link, that specific template will be cloned in their account.
Step 6. Clone the template into the client's workspace
On your backend, use this endpoint: https://your-app.host/layouts/{Project.id}
to clone the project into the client’s workspace. More on projects here in the Projects API Docs
and the API Explorer.
API Explorer: https://[your-white-label-dashboard-domain]/api/doc/v2#post--api-{version}-projects-{project}-duplicates (to access the correct link please replace [your-white-label-dashboard-domain] with the domain you gave us in the on-boarding process for your White Label setup)
Step 7. Authorise the project in Cloud
Authorise the newly created Project.uid
in Cloud via Single SignOn (SSO). Here is more about how SSO works: Single SignOn (SSO)