I’m not sure what your complete curl command looks like, but try this:
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET https://foro.denki.es/users/system.json
Since this isn’t a protected endpoint you don’t need the api_key and api_username, but they should still work.