You can use Retrieve a template endpoint to pull information on a template. In particular, you may use it to find out the variables available for customisation.

Language