API Question Re: GET specific object

apikey/deviceid shown below are disposable

Hello, I’m somewhat new to APIs in general. I’m unsure if this question leads to a possibility or is just totally outrageous.

When working with the Syncthing REST API, I make a request like the following:

curl -X GET -H "X-API-Key: V6wVfebeXZaCUXFQb3A6HmdLaFNvzmE2" http://127.0.0.1:8384/rest/config/devices

…and I get a response like this:

[
  {
    "deviceID": "IFVLC3K-E5K7DKY-47REC5M-67K7OUE-MGEFX6R-DG6LA5E-4HE7GPD-DN5UUAB",
    "name": "foobar_plus",
    "addresses": [
      "dynamic"
    ],
...

I realize I can use a tool like jq to extract deviceID but I’m wondering if there’s payload or header trick I’m unaware of that would do it.

In psuedocode (my imaginary world). It might look something like this:

curl -X GET -H "X-API-Key: V6wVfebeXZaCUXFQb3A6HmdLaFNvzmE2" -H "X-GET-Object: { deviceID }" http://127.0.0.1:8384/rest/config/devices

…with the response being:

IFVLC3K-E5K7DKY-47REC5M-67K7OUE-MGEFX6R-DG6LA5E-4HE7GPD-DN5UUAB

There is not, you get the whole object and can filter it as you like after the fact.