Discussions

Ask a Question
Back to All

How to use development multiple environments

I want to test in multiple environments (dev and QA) and realised that I will need to reuse our HeyGen API key. This means that I need to register multiple Webhook endpoints. Each environment will have their own secret produced by the webhook API.

If we start scaling in production (imagine thousands of calls), that means that all the requests to production will be hitting my dev and QA as well. That will start getting expensive for no good reason.

Is there a way to include the endpoint_id in my requests to https://api.heygen.com/v2/video/generate so that your servers won't duplicate your webhook results? Or if we have a paid account, do we have access to multiple API keys so that we can split out the environments?