# Return available Site Publisher templates This function lists available templates for cPanel's Site Publisher feature. * If you call this function as the or user, the function lists the user's templates. * If you call this function as a reseller, the function lists the user's templates the reseller's templates. * If you call this function as a cPanel user, the function's output depends on the account's owner: * If the user owns the account, the function only lists the user's templates. * If a reseller owns the account, the function lists the user's templates that reseller's templates. The template directory's location depends on whether the user or a reseller owns the template: * — The user's templates. * — A reseller's templates, where represents the reseller's username. * — cPanel-provided templates. When you disable the Web Server role, the system this function. Endpoint: GET /SiteTemplates/list_site_templates Version: 11.134.0.5 Security: BasicAuth ## Response 200 fields (application/json): - `apiversion` (integer) The version of the API. Example: 3 - `func` (string) The name of the method called. Example: "list_site_templates" - `module` (string) The name of the module called. Example: "SiteTemplates" - `result` (object) - `result.data` (array) - `result.data.meta` (object) A set of data that gives information on the template. - `result.data.meta.fields` (array) This array of objects shows the information for each field the user can add input in the template. - `result.data.meta.fields.id` (string) The template's ID. Example: "fullName" - `result.data.meta.fields.label` (string) The template's label. Example: "Full Name" - `result.data.meta.fields.placeholder` (string) A string that temporarily takes the place of the final data. Example: "Your Name" - `result.data.meta.fields.type` (string) The template's type. * * * * * * * * Enum: "color", "datetime-local", "email", "Medical", "tel", "text", "textarea", "url" - `result.data.meta.information` (object) An object that provides basic template information. - `result.data.meta.information.date` (string) The template's add date. Example: "2020-06-30T00:00:00.000Z" - `result.data.meta.information.description` (string) A string describing the template. Example: "Single page 'About Me' site" - `result.data.meta.information.id` (string) A template name. Example: "about_me" - `result.data.meta.information.name` (string) The template's name. Example: "About Me" - `result.data.meta.information.preview_image_path` (string) The preview directory path. Example: "/preview.png" - `result.data.path` (string) The template directory path. The template directory's location depends on whether the user or a reseller owns the template. Example: "/usr/local/cpanel/3rdparty/share/site_templates" - `result.data.preview` (integer) Whether the template includes a preview image. * - The template directory contains a file. * - The template directory does contain a file. The cPanel interface will display a placeholder image for this template. Enum: 0, 1 - `result.data.template` (string) The template's name. This is the name of a directory that contains a template information file and exists within one of the following directories: * — The user's templates. * — A reseller's templates, where represents the reseller's username. * — cPanel-provided templates. The template directory's location depends on whether the user or a reseller owns the template. Example: "about_me" - `result.errors` (array,null) List of errors if the API failed. - `result.messages` (array,null) List of messages generated by the API. - `result.metadata` (object) - `result.metadata.transformed` (integer) Post-processing may have transformed the data. Enum: 1 - `result.status` (integer) * - Success. * - Failed. Check the field for more details. Enum: 0, 1 - `result.warnings` (array,null) List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.