Building a Python script to pull queue metrics every hour. The docs show both Client Credentials and Authorization Code flows. Since this is a headless server process with no human login, does it make sense to use Authorization Code? Or should I stick to Client Credentials? I tried Client Credentials first, but the token seems to lack permissions for some analytics endpoints. Here’s the request payload:
POST /oauth/token
{
"grant_type": "client_credentials",
"client_id": "my_id",
"client_secret": "my_secret"
}
Am I missing a scope or is this the wrong flow entirely?