Skip to main content
Create a folder, then pass its folder_id when you generate. The output lands in that folder in the HeyGen web app. A key scoped only to translations:write can place translations in a folder, but cannot create or read one.

Create a folder

Response

Put content in it

Pass folder_id on any of these:
The folder must be in your workspace, not in the trash, and writable by you. Otherwise the request returns 404 before anything is created. Existing folders from the HeyGen app’s Assets library are also accepted as a folder_id, and come back from GET /v3/folders/{folder_id} with type: "asset". The Assets library view lists only assets, so a video or translation placed there may not show up in it. POST /v3/folders cannot create these folders, and they cannot hold other folders, so they are never a valid parent_id.

Check a folder

GET /v3/folders/{folder_id} confirms a stored id still exists. Trashed folders return is_trash: true. Any other id (deleted, another workspace’s, or not a folder) returns 404.
Folder names can repeat, and the API never matches by name. Store the ids you get back, and send an Idempotency-Key so a retry returns the same folder.