Skip to main content
POST
Create Template from Video

Authorizations

x-api-key
string
header
required

HeyGen API key. Obtain from your HeyGen dashboard.

Headers

Idempotency-Key
string

Optional client-supplied key for safely retrying mutations. Subsequent calls within 24 hours that share this key replay the original response — even if the request body differs slightly (a warning is logged). A retry that arrives while the original is still in flight gets a 409 request_in_progress. Keys must be 1–255 characters from [A-Za-z0-9_:.-]; a UUID is a safe default. Scope is per-endpoint and per-resource: the same key on a different route or path parameter is independent.

Required string length: 1 - 255
Pattern: ^[A-Za-z0-9_\-:.]{1,255}$

Body

application/json

Request body for POST /v3/templates.

video_id
string
required

ID of a video in your workspace to turn into a template. The video must have been generated with POST /v3/videos or saved in the HeyGen editor; its draft becomes the template's starting point.

Minimum string length: 1
Example:

"7c1f0b2e3d4a4f5e8a9b0c1d2e3f4a5b"

name
string | null

Template name. Defaults to the source video's title.

Required string length: 1 - 255
Example:

"Q4 outreach"

Response

Created.

data
TemplateDetailV3 · object

Template detail including its variable schema, scenes, and bindable elements.