Discussions
curl command in windows CMD (BAT ) File
When I try the CURL command in the web test area, it works fine.
When I try this exact same command (which your tech folks say looks good) it comes back "unauthorized"
Here is the command (with APIKEY redacted)
curl --request POST --url https://api.heygen.com/v1/streaming.new --header 'accept: application/json' --header 'content-type: application/json' --header 'x-api-key: ' --data ' { "quality": "medium", "voice": { "rate": 1 }, "video_encoding": "VP8", "disable_idle_timeout": false, "version": "v2", "stt_settings": { "provider": "deepgram", "confidence": 0.55 }, "activity_idle_timeout": 120 } '
Literally the same command which works on the test area of the web site.
Is there something special I have to do with windows bat files to make CURL work.