API Formatting returning specific fields

I’m trying to get the messages from a searchID. I can do this fine. Its the part where I’m trying to specify which fields. In the api browser I enter:

“fields_in_order”: [

But where do I specify this in my actual api request?

Graylog 5.1 introduces a new Search Scripting API which should help with simplifying how you can query graylog via API. Give that page a read and let me know if you have any questions.