The problem was at the header content. So, instead of
headers={"Content-Type":"application/json", "Authorization": f"Bearer {access_token}"
I moved the headers from the httpx "client" declaration to outside and replaced it by this:
headers={"Accept":"*/*", "Token": f"Bearer {access_token}"
i only figured this out when I was looking at the token endpoint curl request being genarated at the token app swagger. That was the reason behind the 401 response and utimately the json error