To access HeyGen's API and perform operations, you must authenticate and authorize your requests using the HTTP
X-Api-Key header. API tokens are provided to you when you are in a HeyGen Enterprise account.
Follow these steps to obtain your API token:
Ensure that you have a HeyGen Enterprise account. If not, you can still explore the API using a Trial Token.
Navigate to Your Space in the top left corner of the HeyGen interface. From the dropdown menu, select Space Settings. Your API token will be displayed under the API tab. This token will be used to authenticate your API requests.
Activate a trial token for testing purposes in your API settings. This allows experimentation with the HeyGen API. See below about how to activate your trial token:
KEEP TOKEN SECRET AND SAFE
Keep the API token secret and safe. Anyone with access to your API Key can make API requests on your behalf. If you suspect that your token has been compromised, please send an email to [email protected] and it can be deactivated or reset.