Somehow spaces end up before “to” and “from” and that appears to be causing the issue. I have now resolved it.
The original problem appears to be that you can’t specify a from without a to date. These are provided as query parameters, so the JSON reference in the documentation is wrong.