Tago API listing devices with filter

Tago API listing devices with filter

Hi all,

I'm doing an external integration for a client, so I'm using the Rest API documentation, specificially the GET method for https://api.tago.io/device.

I need to retrieve and filter all the devices with a specific tag (on this case, the tag is
[{"key": "company_id","value": "client_company_id"}])

However, reading the documentation (https://api.docs.tago.io/#4bddfdcf-6d84-4a89-b045-f940f1853091) does not provide a good example of how to use the filter. I can retrive individual ids by using filter[id] = ${device.id} but I couldnt make it work for filter[tags]. Any ideas?

(As a workaround, I retrieve all my devices and then I filter them out by searching each tag using native NodeJS tools, but maybe it's not the best approach).