The templates are stored in your sendgrid account. Once you log in, using the left navigational bar, click on Templates > Transactional. There you’ll see options to create a template. Once you create a template, the ID will be just to the right of the title.