curl --request POST "${TOMO_IDV_BASE_URL%/}/v1/oauth2/token" \
  --fail-with-body \
  --header 'Tomo-API-Version: 1.4' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'grant_type=client_credentials' \
  --data-urlencode \
    'client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer' \
  --data-urlencode 'client_assertion=<SIGNED_CLIENT_ASSERTION>' \
  --data-urlencode 'scope=idv.read' \
  --data-urlencode "resource=${TOMO_IDV_BASE_URL%/}/v1/idv"
