To get the Power-Automate data like all environment variables using REST API
Initially, I registered Microsoft Entra ID Single Tenant application:

Added Power Automate API permission and Granted Admin Consent:

As I generated access token using client credentials with below parameteres:
POST https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token
Content-Type: application/x-www-form-urlencoded
client_id: <application-id>
client_secret: <client-secret>
scope:https://service.flow.microsoft.com/.default
grant_type: authorization_code
Response:

GET https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments?api-version=2016-11-01"
Response:

By using client credentials, you were to fetch enviorments but you were not able to get the flows as it is not supported.
To get the flows need to generate access token using delegated type flow like authorization_code flow.
Using delegated type, authorization_code flow which requires user-interaction.
To get code, I ran below authorization request in browser:
https://login.microsoftonline.com/<tenant_id>/oauth2/v2.0/authorize?
client_id=<client_id>
&response_type=code
&redirect_uri=https://jwt.ms
&response_mode=query
scope:https://service.flow.microsoft.com/.default
&state=12345

After successfully creating authorization_code, Generated access token using below parameters:
GET https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token
Content-Type: application/x-www-form-urlencoded
client_id: <application-id>
client_secret: <client-secret>
scope:https://service.flow.microsoft.com/.default
grant_type: authorization_code
code: <authorization_code generated from browser>
redirect_uri: <REDIRECT_URI

Now use same access token to get the flow:
GET https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments/<enviornement-name>/flows?api-version=2016-11-01"

Reference:
SO Thread by me
Power-Automate