# Sitejet

The Sitejet module for UAPI.

## Add an existing Sitejet API token.

 - [GET /Sitejet/add_api_token](https://api.docs.cpanel.net/specifications/cpanel.openapi/sitejet/add_sitejet_api_token.md): This function adds an existing Sitejet API token to a cPanel user.

Note:

You can create a Sitejet API token with the Sitejet:create_account function.

## Return Domain Availability

 - [GET /Sitejet/can_create_domains](https://api.docs.cpanel.net/specifications/cpanel.openapi/sitejet/can_create_domains.md): This function returns whether a cPanel account can create new subdomains or addon domains.

Note:

Creating a new addon domain is dependent on the creation of subdomains. If the cPanel account has reached its limit for subdomains, you cannot create a new addon domain, even if the limit for addon domains has not been reached.

## Generate a Sitejet API key.

 - [GET /Sitejet/create_account](https://api.docs.cpanel.net/specifications/cpanel.openapi/sitejet/create_sitejet_account.md): This function creates a Sitejet API token for a cPanel account.

## Create a restore point.

 - [GET /Sitejet/create_restore_point](https://api.docs.cpanel.net/specifications/cpanel.openapi/sitejet/create_restore_point.md): This function creates a restore point for a domain's document root and removes the domain's files.

## Create Sitejet domain ID

 - [GET /Sitejet/create_website](https://api.docs.cpanel.net/specifications/cpanel.openapi/sitejet/create_sitejet_website.md): This function creates a Sitejet ID for the specified domain.

Note:

A unique Sitejet ID is assigned to each domain on the cPanel account.

## Return Sitejet domains

 - [GET /Sitejet/get_all_user_sitejet_info](https://api.docs.cpanel.net/specifications/cpanel.openapi/sitejet/get_all_user_sitejet_info.md): This function returns the Sitejet domains' information for the cPanel account.

## Return Sitejet API token

 - [GET /Sitejet/get_api_token](https://api.docs.cpanel.net/specifications/cpanel.openapi/sitejet/get_sitejet_api_token.md): This function returns the cPanel account's Sitejet API token.

## Return Sitejet preview URL

 - [GET /Sitejet/get_preview_url](https://api.docs.cpanel.net/specifications/cpanel.openapi/sitejet/get_sitejet_preview_url.md): This function returns a Sitejet website's preview URL.

## Return Sitejet SSO URL

 - [GET /Sitejet/get_sso_link](https://api.docs.cpanel.net/specifications/cpanel.openapi/sitejet/get_sitejet_sso_link.md): This function returns a Sitejet website's SSO URL.

## Restore a domain from the restore point.

 - [GET /Sitejet/restore_document_root](https://api.docs.cpanel.net/specifications/cpanel.openapi/sitejet/restore_document_root.md): This function reverts a document root to the restore point.

## Publish Sitejet domain

 - [GET /Sitejet/start_publish](https://api.docs.cpanel.net/specifications/cpanel.openapi/sitejet/start_publish_sitejet.md): This function publishes a domain's Sitejet website.

## Return Sitejet templates (deprecated)

 - [GET /Sitejet/get_templates](https://api.docs.cpanel.net/specifications/cpanel.openapi/sitejet/get_sitejet_templates.md): This function fetches the list of available Sitejet templates.

## Update Sitejet template (deprecated)

 - [GET /Sitejet/set_template](https://api.docs.cpanel.net/specifications/cpanel.openapi/sitejet/set_sitejet_template.md): This function sets a Sitejet website's template.

