404 Error using v2/template.generate API

Getting 404 “resource not found” when calling https://api.heygen.com/v2/template.generate. Template ID: f71bfd41838b429aa25126a68f5db800. Template has {{script}} variables set up for all scenes. API key works fine.

Already tried:

Switching from v3/video/generate to v2/template.generate endpoint
Adding {{script}} variables to all template scenes in HeyGen editor

JSON body I’m sending:
json{
“template_id”: “f71bfd…”,
“variables”: {
“script”: “my text here”
}
}
What’s the correct endpoint and JSON format to generate HeyGen videos from templates via API?

According to the documentation you need to call the following path:
https://api.heygen.com/v2/template/{template_id}/generate

Documentation with cURL examples:

Pro tip: When creating a HTTP request node, you can populate the nodes settings with a cURL command via the “Import cURL” button.