Connectors / AI · HTTP Connector
HeyGen integration and API
Create a video, create an avatar and generate speech in HeyGen, and start a workflow when HeyGen sends “Avatar video succeeded”.
What can you do with HeyGen on Tray.ai?
HeyGen is an AI video platform that creates videos presented by digital avatars, clones voices, and translates videos into other languages with lip sync. Tray.ai connects to HeyGen through the HTTP Connector, so your workflows can call the HeyGen API alongside the rest of your stack.
- When HeyGen sends “Avatar video succeeded”, share the video link with the requester in your team chat.
- Generate a video from a template for each new customer and send it through your email marketing tool.
- Upload the translated video to your learning platform when HeyGen sends “Video translation succeeded”.
- When HeyGen sends “Avatar video failed”, open a task for the content team in your project management tool.
- Connects through
- HTTP Connector
- Authentication
- An API key in a request header
- Base URL
- https://api.heygen.com
Set it up
Connect HeyGen to Tray.ai
Each step uses HeyGen's own API details, from its documentation.
Save HeyGen's API key
Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.
Point the HTTP Client at the API
Add an HTTP Client step and use https://api.heygen.com as the base URL. Or paste a cURL example from HeyGen's API docs, and Tray.ai fills in the method, URL, and headers.
Start with “Get a video”
It's one of 16 documented actions, under Videos. The response comes back as data the next step can map into your other apps.
Start workflows from HeyGen events
Give HeyGen the URL of a Tray.ai webhook trigger. “Avatar video succeeded” can then start a workflow, and so can 4 other events.
Workflows to build with HeyGen
Connect HeyGen with HubSpot, Google Drive and Slack
Each one uses actions and events from HeyGen's own API documentation.
Create HeyGen videos for new HubSpot list members
When
A contact is added to a list in HubSpot
Then
- Generate a video from a template with the contact's name
- Save the video link to the contact in HubSpot
With HubSpot
Save finished HeyGen videos to Google Drive
When
Avatar video succeeded
Then
- Get a video
- Save the video file to the marketing folder in Google Drive
With Google Drive
Alert the video team when a HeyGen video fails
When
Avatar video failed
Then
- Get a video
- Post the error to the video team channel in Slack
With Slack
Apps you can build on HeyGen data
Internal tools your team can build with an AI assistant, each one using HeyGen calls from its API documentation.
Training video request queue
Lists templates and lets a team request a video from one, then tracks its status.
Video translation tracker
Lists videos and their translation batches so localization can see what is ready.
Give your AI agents HeyGen tools
Build an MCP server on HeyGen in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works
- Create a video
- Create an avatar
- List voices
- Create a video translation
- List templates
- Get a video
- List videos
- Delete a video
What the HeyGen API covers
5 resources and 16 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.
Videos
- Create a video
- Get a video
- List videos
- Delete a video
- Generate a video from a template
Avatars
- Create an avatar
- List avatar groups
- List avatar looks
- Delete an avatar group
Voices
- List voices
- Get a voice
- Generate speech
Video translations
- Create a video translation
- Get a translation batch
Templates
- List templates
- Get a template
Events HeyGen can send to a Tray.ai webhook trigger
- Avatar video succeeded
- Avatar video failed
- Video translation succeeded
- Photo avatar generation succeeded
- Video agent succeeded
Checked against HeyGen's own documentation on 2026-10-22
How Tray.ai makes this work
HeyGen plugs into the whole Tray.ai platform
Tray iPaaS
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn moreTray Helix agents
Agents in the apps your teams run on Tray Helix that read, write, and act in HeyGen, with a person's approval on any tool you choose.
Learn moreAgent Gateway for MCP
Expose HeyGen actions as governed MCP tools: observable, rate-limited and authenticated.
Learn moreTray Helix
Build apps on HeyGen data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn moreMore AI apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every ai connector →
Frequently asked questions
What can a Tray.ai workflow do in HeyGen?
The HeyGen API documents 16 actions across 5 resources (Videos, Avatars, Voices, Video translations, Templates). For example: Create a video; Create an avatar; List voices. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with HeyGen?
The HeyGen API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Which HeyGen events can start a Tray.ai workflow?
HeyGen sends 5 events to a webhook URL, for example: Avatar video succeeded; Avatar video failed; Video translation succeeded; Photo avatar generation succeeded; Video agent succeeded. A Tray.ai webhook trigger receives them and starts a workflow.
See HeyGen working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks. Someone from our team will be in touch soon.