Discussions

Ask a Question
Back to All

Method not allowed with template api v2

Hello. I have a problem with the template api v2 endpoint.

I have a trial token and the api returns a "405 method not allowed".

This is my request

`curl --location 'https://api.heygen.com/v2/template/generate' \
--header 'X-Api-Key: <my api key>' \
--header 'Content-Type: application/json' \
--data '{
"test": true,
"caption": false,
"template_id": "my template id",
"title": "this is a test",
"variables": {
"text": {
"name": "text",
"type": "text",
"properties": {
	"content": "ceci est un text de template",
"voice_id": null
}
},
"date":{
"name": "text",
"type": "text",
"properties": {
	"content": "04/03/2024",
"voice_id": null
}
}
}
}'