The TM1 REST API is not enabled by default, you need to update your tm1s.cfg on your TM1 server with the following parameter: