How to get an inventory field from all devices (via API?)

I am looking for a way to get the external IP of all my accepted devices.
I see that the device inventory API is only for writing and not reading fields:

Is there a way to do it programmatically?

I’m not sure I’m following:

curl -X GET \
  -H 'Accept: application/json' \
  -H "Authorization: Bearer ${JWT}" | jq '.[] | .attributes | .[] | select(.name == "ipv4_eth0")'

Works just fine

Apologies for the confusion… under Device API (Mender API docs) there are only only PUT/PATCH verbs which is what I was looking into.
Before posting the question, I searched again to paste the link to the API and got the link to the management section without reading it…
Thank you for this, although this brings only the first result. Is this just a matter of parsing with jq ?

I apologize, I figured it was a typo from your end.

But you want to use the device-side API to query the inventory for the server?
Why not just use the management API? It is still available.

And, the request should be able to give you every device, I would be more suspicious of the jq filter I wrote up tbh.

You can also filter directly using the parameters listed here:

I hope this is the question you’re really asking, if not feel free to correct me again.