Discussions
Retrieve Avatar Details API returns Internal Error - Forbidden
about 1 month ago by Florent Remis
Hello,
I'm trying to use the avatar details API and getting an error.
Here's how I'm doing it:
import requests
headers = {"accept": "application/json", "x-api-key": "xxx"}
avatar_id = "Abigail_expressive_2024112501"
url = f"https://api.heygen.com/v2/avatar/{avatar_id}/details"
response = requests.get(url, headers=headers)
print(response.text)
And here's what I'm getting:
{"data":null,"error":{"code":"internal_error","message":"forbidden"}}
Please note that I'm able to use the List All Avatars API without an issue, using the same api key.
Any idea what's happening?
Thank you!