Device Inventory API: Search by tags

Hi there,

I’m trying to use the device inventory API on our self-hosted open source instance (https://example-instance/api/management/v1/inventory/devices?Tag=00999) to look for a device with a specific tag value, however for some reason it returns a blank array. There is a device in a group that contains this tag, and the tag is filterable as an “attribute”, as it’s displayed under attributes when I query the device ID, and is shown as such when I query https://example-instance/api/management/v2/inventory/filters/attributes.

Any idea where I could be going wrong here?

You need to add scope to the query - try https://example-instance/api/management/v1/inventory/devices?tags/Tag=00999

1 Like

That worked! Thanks for your help! :smile: