See attached picture (although Dutch);
Click the sharing icon (red square)
You need the API-URL as selected with the black square. It contains all the info you need, including the TOKEN (No it is not the same token as you use for logging)
Device name is the name as selected in the bottom red square.
Hope this helps.
@hangy Could you post the (anonymized) configuration.yaml section you are using. I suspect something is wrong there.