Why do I get an invalid content-type error when using the Dashboard API?