Discussions

Ask a Question
Back to All

Realtime - New Session return 400

I am trying call reqeust

curl --request POST
--url https://api.heygen.com/v2/realtime/new
--header 'accept: application/json'
--header 'content-type: application/json'
--header 'x-api-key: '
--data '
{
"avatar": {
"avatar_type": "photar",
"photar_id": "05"
},
"voice": {
"voice_id": "8cd"
},
"dimension": {
"width": 640,
"height": 450
}
}

And returning the error

{
"error": {
"code": "invalid_parameter",
"message": "Key: 'NewSessionRequest.SpaceId' Error:Field validation for 'SpaceId' failed on the 'required' tag\nKey: 'NewSessionRequest.Quality' Error:Field validation for 'Quality' failed on the 'required' tag"
}
}

Where do I set these parameters?