API Get list command error

Hey Guys,

I just wanted to to an API request. It looks like following:

curl --request GET
–url website/client/v4/accounts/account_identifier/stream
–header ‘Content-Type: application/json’
-H “Authorization: Bearer <api_token>”
-d ‘{“status”:“error”}’

This works actually fine, I get a list of thousand stream files but I do not get only files with status: error
I assume, anything with the “Status” command seems to be wrong.

Anyone here how is able to help?

The -d data parameter is not valid for GET commands. Data is only passed to POST commands. Try using a query parameter such as ?status=error or adding -G to the command and it should create the query parameters from the -d attribute.