Discussions

Ask a Question
Back to All

Unable to send API key over websocket.

When connecting to the URL obtained from "https://dialpad.com/api/v2/websockets" with websocket,
"You are connected without a valid token, please send your api key for verification" is returned.
(in the onmessage event)

So I just send the API_KEY that I used to get the websocket URL, but
It returns "The api key is not valid or does not have access to this subscription." and the session is closed.

In what format should I send the API_KEY?

(I read "https://developers.dialpad.com/reference" but didn't find anything relevant.
Where is the usage written?)