Retrieve a Custom SharePoint 2013 Web Template ID with CSOM or REST
Question details
Find the custom web template identifier and name for a SharePoint Server 2013 site using CSOM or REST.

- Product
- SharePoint Server 2013
- Device & OS
- not provided
- Scenario
- A console application queries a SharePoint site and needs its custom template identifier in the form {GUID}#CustomName.
- Observed behavior
- The application receives a base web template name, such as BLANKINTERNET, rather than the expected custom template identifier and name.
Identify the exact site URL and record the CSOM property or REST endpoint your application queries. Ask a site collection administrator for access to the Solutions gallery if you need to inspect the custom template package.
Check the Base Template and Inspect the Custom Template Package
Use the returned site properties and the Solutions gallery to investigate the template used for provisioning.
A base web template name such as BLANKINTERNET is not necessarily the custom template identifier used when the site was created. These checks can help identify the template, but they do not guarantee that the original {GUID}#CustomName value can be recovered from the site.
In your console application, load the target Web object's WebTemplate and Configuration properties through CSOM, or inspect the corresponding properties through REST. Record both values and confirm that the request targets the intended site URL.
Open the site collection's Site Settings page and select Solutions under Web Designer Galleries. Look for the custom site template package and check its name and activation status.
Check the site-creation script, configuration, or deployment documentation for the template identifier passed when the site was created. Compare that value with the package found in the Solutions gallery.
If the original identifier is still unclear, post the site properties, provisioning details, and relevant CSOM or REST request on Microsoft Q&A with the SharePoint tag. Remove credentials and other sensitive details before posting.

Document Your SharePoint Template Investigation in WPS Office
WPS Office is a free, lightweight alternative for documenting your investigation and sharing results in familiar Office formats. Its familiar interface makes it easy to move existing documents and spreadsheets, but it does not retrieve SharePoint template IDs or fix SharePoint APIs.

Frequently Asked Questions
Why does WebTemplate return BLANKINTERNET instead of my custom template name?
WebTemplate can report the site's base template name rather than the custom identifier used during provisioning. Check the Configuration property and the original site-creation records for more context.
Where can I find a saved site template package in SharePoint 2013?
On the site collection's Site Settings page, select Solutions under Web Designer Galleries. Access depends on your permissions, and the package's presence does not by itself establish that it created a particular site.
Can I reconstruct the custom template ID from WebTemplate and Configuration?
Do not assume those properties are enough to reconstruct the original {GUID}#CustomName value. Check the provisioning script or deployment documentation, or ask the site collection administrator for the original template details.
Where can I get help with a SharePoint 2013 CSOM or REST query?
Post your request and the returned properties on Microsoft Q&A using the SharePoint tag. Include the SharePoint version and the relevant code or REST request, while removing credentials and sensitive site information.




