Discussions

Ask a Question
Back to all

webhook/endpoint.add 401 error

Hello,

Im getting a 401 when trying to register a callback endpoint:

Array
(
[0] => x-api-key: YWYxOW......NTQ5OA
[1] => Content-Type: application/json
)

payload
Array
(
[url] => https://mydomain.com/heygen_webhook.php
[events] => Array
(
[0] => avatar_video.success
[1] => avatar_video.fail
)

)

URL Called=https://api.heygen.com/v1/webhook/endpoint.add

The API key works, as we're using it to create avatars already, but the endpoint reigstration give us a:
Unauthorized (HTTP 401)

Thanks