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"

…and I get a response like this:

    "name": "foobar_plus",
    "addresses": [

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 }"

…with the response being:


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