you can add minimal param in query string which should return less fields, but I am not aware of a way which would allow you to return just listed fields at the moment.
@mzagmajster can you explain the exact param you need to add in query? I have a post open from a long time ago on this as all I really want to get on a query is the contact id and as mentioned above it gives back all custom fields
Hi, according to this docs here: < Mautic Developer Documentation >, there is minimal parameter, although I see that the numbered of returned fields is still high. I would call it like this: https://<root-api-url>/api/contacts?minimal=1
So I went ahead and wrote a small script that will just extract the contact ID. Still not the best as you are still getting the entire payload back, but you are able to extract just what you want, here is the example and it can be modified to your required needs:
This one works at server? So this could be called by api? or in top of this we should write an API? Would be great for a set of PR with this new features…
My workaround was to filter after server request and store that on redis…