From the Template manager page, to export a template, hover with the mouse on the template you would like to export.
On the bottom right part of the tumbnail, click the Download template icon to trigger the download of the template.
The downloaded file will have the .safi.json extension.