Discussions

Ask a Question
Back to All

websocket returns "The api key is not valid" again.

I have inquired before.
(https://developers.dialpad.com/discuss/6344fa67e0ffd30077a0ca9b)

Also now returns "The api key is not valid".
The only difference from last time is that the license has been changed from "Talk" to "Contact Center".
I recreated the APIKEY.
The key is valid because 1.2. is successful.
What is wrong?


Test code and results (partially hidden)
----(for browser)


----result
ws:{"id":"..0544","signature":{},"websocket_url":"wss://platform-websockets.uw.r.appspot.com/connections/..0544/{event_type}/{event_id}"}
call:{"call_states":["ringing"],"enabled":true,"group_calls_only":false,"id":"..3520","websocket":{"id":"..0544","signature":{},"websocket_url":"wss://platform-websockets.uw.r.appspot.com/connections/..0544/{event_type}/{event_id}"}}
connect:wss://platform-websockets.uw.r.appspot.com/connections/..0544/call/..3520
open!
message[1]You are connected without a valid token, please send your api key for verification
send:..sgVd
message[2]The api key is not valid or does not have access to this subscription.
close!