I am integrating Amazon Photos with my app. I have generated the API key and everything was working until a week back. Now when I am trying to fetch the endpoints, I am getting 403.
Request cURL:
curl 'https://cdws.us-east-1.amazonaws.com/drive/v1/account/endpoint' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer Atza|IwEBIDpoYJg1Qyf8v7VepulvXlD9bq9dsEplMHU73y0_GacbmwxAUiY9RGNotZYmIA8ekGTMO9secMMmjNfEk9aJ1EWtFMnJ44c56bIJJJTunQYCLL-A3iBVmpuEq4wwNiE6PMXDDYx0nRWMQ4VDWe9TP6mFFJoS_Qkic6nu20rFlTUeT8rv8JnJc3lU6ueRYmry8RhyMI2qH6TEVNKbLzooihoio_3RnZceCpo8OOVyiwo7DtMY_2xwYnPk8gmfLeo6SWTm02GcxqD6WBOoh4jfqZU-qZefaAmt6_9RBrzLqAJ_k4_LvCZcFNvAKJqUu89dWGmEU3-z0RD4Sv8OoAkfGO1Dppgf3ju_rq3YjqboBmh1DedaLWlGPp8F4UpkQnhon-lUPIXAXwdy4cQ_XxhEfNsV' \
-H 'X-Api-Key: AmOo9yKYZNL5wylR1TtGLjfV5W9wOGGa' \
-H 'Host: cdws.us-east-1.amazonaws.com' \
-H 'Connection: Keep-Alive' \
-H 'User-Agent: okhttp/4.12.0' \
--proxy http://localhost:9090
Response:
{
"message": "Insufficient permissions granted for operation: getEndpoint"
}
Can someone please help me here?