Unable to Retrieve OAuth Client Credentials Token (Invalid ClientID)

You omitted a -X POST so you made a GET request instead of a POST request.

So

curl -X POST https://id.twitch.tv/oauth2/token?client_id=MYCID&client_secret=MYSECRET&grant_type=client_credentials

So no need to pass as -d variables here really

So that’ll fix you for getting a Client Credentials token but as dist notes, this doesn’t work for subscriptions data, unless your ClientID is an Extension and the streamer has that extension installed with Subscription Permissions enabled

The endpoint docs:

Notes the authentication requirements