Cannot login to REST API

I am following the example in the docs and cannot login.

curl -X POST ‘https://api.tawk.to/v1/property.list
-u API_KEY:
-H “Content-Type: application/json”

Replacing API_KEY with my Key from the rest api keys under my profile.

I am running this directly in linux, the response I get is:
{“ok”:false,“error”:“validation_error”,“message”:“body”}

Any ideas?

Hi @MatthewS ,

Thanks for reaching out to us. Can you please share a screenshot of it? so we can check on this thoroughly.

Looks like an issue with the documentation.

This authentication example used property list, which needs the body parameters adding (missing in the above image), hence the error.

When I reached this section further down in the docs, with the correct body parameters then it works fine.

Might be better to use agent me in the first example?