Public API key from app returns 401 Unauthorized

Hi,

The public API key displayed in my Rachio mobile app under Account is being rejected with HTTP 401 Unauthorized. I’m trying to connect my Rachio controller to Home Assistant, but I also reproduced the problem directly outside Home Assistant:

GET https://api.rach.io/1/public/person/info
Authorization: Bearer [API key copied from the Rachio app]

The response is HTTP 401. I signed out of the Rachio app, signed back in, and copied the key again. The displayed key did not change and the request still returns 401.

I contacted Rachio Support, provided my controller serial number privately so they could verify ownership, and they directed me to post here for API help.

Is there a way for someone at Rachio to regenerate or repair the public API token associated with my account? I have intentionally not posted the key here.

Thanks!

Thanks. That is equivalent to the request I tested—the API key is sent as a Bearer token to /person/info (without braces), and it still returns HTTP 401. Adding the Content-Type header does not change the result. Since signing out and back into the app also leaves the same non-working key in place, this appears to be a server-side token issue. Is there a way for Rachio staff to regenerate or repair the token for my account?

Update: Potro’s command worked exactly as posted. The API token is valid, and I was wrong in my previous reply to insist the request was equivalent and that this was a server-side token issue. I also successfully added the Rachio integration to Home Assistant, and it discovered the controller and entities correctly. Thanks for the help, and sorry for the incorrect pushback.