I am trying to send fcm message to specific topic by using cURL command but it says error like
{ "error": { "code": 401, "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", "status": "UNAUTHENTICATED" } }
I used server key from firebase console
I followed this FCM Documentation
How to resolve this 401 error.

