Hey Deepgram team,
I'm trying to connect to the Deepgram WebSocket API for real-time transcription, but I keep getting a 401 Unauthorized error. Here's what I've tried so far:
1οΈβ£ Verified my API Key β curl -X GET "https://api.deepgram.com/v1/projects" -H "Authorization: Token MY_API_KEY" β Returns my project, so the key is valid.
2οΈβ£ Created a new API key with Admin/Owner permissions and ensured Real-time Transcription & Streaming Access are enabled.
3οΈβ£ Tested WebSocket connection using wscat & Python, but both return:
websockets.exceptions.InvalidStatus: server rejected WebSocket connection: HTTP 401
4οΈβ£ Tried both US and EU endpoints (wss://api.deepgram.com/v1/listen and wss://eu.deepgram.com/v1/listen).
5οΈβ£ Checked my Deepgram billing plan β I have sufficient credits and am on the Pay As You Go plan.
6οΈβ£ Confirmed no typos in API key & that it has streaming access.
Still, no luck! What am I missing? Any help would be greatly appreciated! π
Thanks in advance! π