Authorization error on notification API request


#1

Hi,
I am trying to call the POST /public/notification/webhook with the access-token obtained from my account and the device-id obtained from the GET /public/person/:id response, but I am seeing this error: {“errors”:[{“message”:“The client is not authorized.”}]}

Do I need some specific permission to be able to create a subscription for the notification ?

Thank you.
Vidya.


#2

I am seeing the above mentioned issue for all device API’s as well. But the “Person” and GET /public/notification/webhook_event_type work fine. Is there something I am missing?


#4

Hi @vvhomeuser-
Sounds like there may be an issue on our side… Let me check with our engineering team and see if they have an idea of what is going on! I’ll get back to you.
McKynzee :rachio:


#5

Hi McKynzee,
It seems like I had issues on my end. There were some hidden characters in the access-token I was sending. It is now working again! Thank you very much for your response!


#6

@vvhomeuser Glad to hear you were able to get it working! Let me know if you have any other issues.