How do I get the projectTemplateKey for jira

I’ve developed a custom project template plug-in, but I don’t know how to create it through the API.Mainly because I don’t know how to get projectTemplateKey. I didn’t mention how to get projectTemplateKey of the project in the help document. Did I miss something