{"error":"Unauthorized","status":401,"message":"Invalid OAuth token"}

If you get a 401 means the token has expired or is not valid

If the token is expired or not valid then you need to get a new token from the user

The authentication documentation is here: