How to Integrate Sitejet Builder in Your Customer Portal

Last modified: December 18, 2024


Overview

Many hosting partners find it difficult to compete with other hosting companies that provide cloud-based website builders. Sitejet is our solution to cloud-based website builders. Sitejet will help partners elevate their hosting platform as a customer-friendly website builder and the best part is that it’s already available to use in cPanel & WHM®.

This article explains how to provide access to the Sitejet interface directly from your customer portal.This gives your users easy access to a simple website building process without using multiple interfaces. To do this, you’ll need to use the cPanel & WHM UAPI. Before you begin, we recommend you learn more about using the cPanel & WHM UAPI by reading the documentation. You might also find the cPanel & WHM Guide to Authentication useful.

Provide a streamlined website builder experience with Sitejet

The following steps need to be followed exactly when setting up the customer in your customer portal. You will need a cPanel user to run the API calls to create a Sitejet account.

Create the Sitejet account with the create_sitejet_account API.

This API generates a token that will link the cPanel user and the Sitejet account. This should only be implemented one time for a cPanel account. To learn more about how to configure this API, read our Generate a Sitejet API key documentation.


Create the website ID for the domain with the create_website API.

After you create the Sitejet account, use this API to create the website ID for the domain. To learn more about how to configure this API, read our Create Sitejet domain ID documentation.


This API will provide the link you should use to redirect your customer to Sitejet Builder, allowing the customer to create or edit their website within your customer portal. When the user clicks Publish, they should be redirected back to your panel and the website publication begins. To learn more about how to configure this API, read our Return Sitejet SSO URL documentation.


Publish the website with the start_publish_sitejet API.

Clicking Publish in the Sitejet builder does two things:

  1. Sends the user back to the control panel.
  2. Generates the HTML that the user designed in SiteJet and sends that content to the control panel. The control panel accepts the files and unpacks them to a folder. That folder is generally the document root for the web server. Learn more about how to configure the publication process in the Publish Sitejet domain documentation.

Implementation examples

WHMCS has integrated Sitejet in this manner. You can see an example of their customer portal below.

WHMCS Sitejet integration

Additional Documentation