# Replace placeholders and run
CLIENT_ID="REPLACE-ME" #This is the client ID. No quotes needed.
CLIENT_SECRET="REPLACE-ME" #This is the client secret. No quotes needed.
SCOPE="REPLACE-ME" #This is the scope (looks like url). No quotes needed.
SUB_KEY="REPLACE-ME" #This is the subscription key. No quotes needed.
ORG=REPLACE-ME #This is the organization number. No quotes needed.

ACCESS_TOKEN=$(curl -s -X POST https://id.talenom.com/api/b2b/oauth2/v1.0/token \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials&client_id=$CLIENT_ID&client_secret=$CLIENT_SECRET&scope=$SCOPE" \
  | jq -r .access_token)

curl -v "https://apim.talenom.com/organization/v1/organization-info/$ORG" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Ocp-Apim-Subscription-Key: $SUB_KEY"