Make sure api token and url are available